sunrpc: Always obtain AF_INET addresses from NSS [BZ #20964]
[platform/upstream/glibc.git] / ChangeLog
1 2016-12-27  Florian Weimer  <fweimer@redhat.com>
2
3         [BZ #20964]
4         sunrpc: Always obtain AF_INET addresses from NSS.
5         * include/rpc/rpc.h (__libc_rpc_gethostbyname): Declare.
6         * sunrpc/rpc_gethostbyname.c: New file.
7         * sunrpc/Makefile (routines): Add it.
8         * sunrpc/clnt_gen.c (clnt_create): Use __libc_rpc_gethostbyname.
9         * sunrpc/clnt_simp.c (callrpc): Likewise.
10         * sunrpc/getrpcport.c (getrpcport): Likewise.
11
12 2016-12-27  Florian Weimer  <fweimer@redhat.com>
13
14         * sunrpc/rpcinfo.c: Remove.
15         * sunrpc/Makefile: Remove comments referring to rpcinfo.
16
17 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18
19         [BZ# 19387]
20         * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
21         addition.
22         * string/test-memchr.c (do_test): Remove alignment limitation.
23         (test_main): Add test that trigger BZ# 19387.
24
25 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
26
27         [BZ #7065]
28         Enable stack protectore if requested by ./configure.
29         * Makeconfig (+stack-protector): New variable.
30         (+cflags): Use it.
31
32 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
33
34         [BZ #7065]
35         * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector).
36         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c:
37         (__rt_sigreturn_stub): Use inhibit_stack_protector.
38         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
39         (__rt_sigreturn_stub, __sigreturn_stub): Likewise.
40
41 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
42
43         [BZ #7065]
44         * login/Makefile (pt_chown-cflags): Remove.
45         * nscd/Makefile (CFLAGS-nscd): Likewise.
46         * resolv/Makefile (CFLAGS-libresolv): Likewise.
47
48 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
49
50         [BZ #7065]
51         * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
52         non-libc-linking testcase.
53
54 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
55             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
56             Florian Weimer  <fweimer@redhat.com>
57
58         [BZ #7065]
59         PLT avoidance for __stack_chk_fail*.
60         * debug/Makefile (CFLAGS-stack_chk_fail.c)
61         (CFLAGS-stack_chk_fail_local.c): Build without stack protector.
62         * debug/stack_chk_fail.c (__stack_chk_fail): Add
63         __stack_chk_fail_local alias.
64         * sysdeps/generic/symbol-hacks.h [IS_IN (libc)]
65         (__stack_chk_fail): Turn into hidden reference to
66         __stack_chk_fail_local.
67
68 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
69
70         [BZ #7065]
71         * configure.ac: Add check for unsupported stack-protection level.
72         (libc_cv_predef_stack_protector): Remove.
73         (no_ssp): New variable.
74         (STACK_PROTECTOR_LEVEL): Set to zero when --disable-stack-protector.
75         (stack_protector): Set to -fno-stack-protector similarly.
76         (libc_cv_ld_gnu_indirect_function): Use no_ssp.
77         (libc_cv_asm_set_directive): Likewise.
78         (libc_cv_protected_data): Likewise.
79         (libc_cv_z_combreloc): Likewise.
80         (libc_cv_hashstyle): Likewise.
81         (libc_cv_has_glob_dat): Likewise.
82         (libc_cv_output_format): Likewise.
83         (libc_cv_output_format): Likewise.
84         (libc_cv_ehdr_start): Likewise.
85         * aclocal.m4 (LIBC_TRY_LINK_STATIC): Likewise.
86         (LIBC_LINKER_FEATURE): Likewise.
87         (LIBC_COMPILER_BUILTIN_INLINED): Likewise.
88
89 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
90
91         [BZ #7065]
92         * elf/Makefile (dummy-stack-chk-fail): New.
93         (librtld.map): Use it.
94
95 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
96
97         [BZ #7065]
98         Compile the dynamic linker without stack protection.
99         * elf/Makefile (elide-stack-protector): New.
100         (CFLAGS-.os): Use it, eliding $(all-rtld-routines).
101         (CFLAGS-.o, CFLAGS-.op): Likewise, but for $(elide-routines.os).
102         * elf/rtld-Rules (rtld-CFLAGS): Add $(no-stack-protector).
103         * sysdeps/i386/Makefile (rtld-CFLAGS): Use +=, not =.
104
105 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
106
107         [BZ #7065]
108         * config.make.in (have-ssp, no-stack-protector): New.
109         * csu/Makefile (CFLAGS-.o, CFLAGS-.op, CFLAGS-.os): Use it.
110         * misc/Makefile (CFLAGS-sbrk.o): Likewise.
111         (CFLAGS-sbrk.op): Likewise.
112         (CFLAGS-brk.o): Likewise.
113         (CFLAGS-brk.op): Likewise.
114         * string/Makefile (CFLAGS-memcpy.c): Likewise.
115         (CFLAGS-wordcopy.c): Likewise.
116
117 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
118
119         [BZ #7065]
120         * configure.ac (HAVE_CC_NO_STACK_PROTECTOR): Define.
121         * config.h.in (HAVE_CC_NO_STACK_PROTECTOR): New macro.
122         * include/libc-symbols.h (inhibit_stack_protector): New macro.
123         (__ifunc_resolver): Use it.
124         * elf/ifuncdep2.c (foo1_ifunc, foo2_ifunc, foo3_ifunc): Apply
125         inhibit_stack_protector.
126         * elf/ifuncmain6pie.c (foo_ifunc): Likewise.
127         * elf/ifuncmain7.c (foo_ifunc): Likewise.
128         * elf/ifuncmod1.c (foo_ifunc, foo_hidden_ifunc)
129         (foo_protected_ifunc): Likewise.
130         * elf/ifuncmod5.c (foo_ifunc, foo_hidden_ifunc)
131         (foo_protected_ifunc): Likewise.
132         * sysdeps/generic/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
133         * sysdeps/nacl/nacl_interface_query.c
134         (nacl_interface_query_ifunc): Likewise.
135         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
136         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
137         Likewise.
138         * sysdeps/x86_64/ifuncmod8.c (foo_ifunc): Likewise.
139         * sysdeps/unix/make-syscalls.sh: Apply inhibit_stack_protector to
140         the generated vDSO syscall resolver.
141
142 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
143             Florian Weimer  <fweimer@redhat.com>
144
145         [BZ #7065]
146         Initialize the stack guard earlier when linking statically.
147         * sysdeps/generic/ldsodefs.h (__libc_setup_tls)
148         (__pthread_initialize_minimal): Declare.
149         * csu/libc-start.c (__pthread_initialize_minimal): Remove
150         declaration.
151         (LIBC_START_MAIN): Call __libc_setup_tls early and directly.  Move
152         stack canary and apply_irel initialization up.  Call
153         __pthread_initialize_minimal only if linked in.
154         * csu/libc-tls.c (__libc_setup_tls): Replace arguments with their
155         constant values.
156         (__pthread_initialize_minimal): Remove.
157         * nptl/nptl-init.c (__libc_setup_tls): Remove declaration.
158         (__pthread_initialize_minimal_internal): Do not call
159         __libc_setup_tls.
160
161 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
162
163         [BZ #7065]
164         * configure.ac (libc_cv_ssp): Move up.
165         (libc_cv_ssp_strong): Likewise.
166         (libc_cv_ssp_all): New.
167         (stack_protector): Augment, adding -fstack-protector-all.
168         (no_stack_protector): New.
169         (STACK_PROTECTOR_LEVEL): New.
170         (AC_ARG_ENABLE(stack-protector)): New configure flag.
171         * manual/install.texi (--enable-stack-protector): Document it.
172         * config.h.in (STACK_PROTECTOR_LEVEL): New macro.
173
174 2016-12-24  Carlos O'Donell  <carlos@redhat.com>
175
176         * README.pretty-printers: Must specify CPPFLAGS-* also.
177         * nptl/Makefile (CPPFLAGS-test-mutexattr-printers.c): Define.
178         (CPPFLAGS-test-mutex-printers.c): Define.
179         (CPPFLAGS-test-condattr-printers.c): Define.
180         (CPPFLAGS-test-cond-printers.c): Define.
181         (CPPFLAGS-test-rwlockattr-printers.c): Define.
182         (CPPFLAGS-test-rwlock-printers.c): Define.
183
184         * nss/Makefile [ifeq (yes,$(have-thread-library))]
185         (tests): Add tst-cancel-getpwuid_r.
186         * nss/tst-cancel-getpwuid_r.c: New file.
187
188         [BZ #11941]
189         * elf/dl-close.c (_dl_close): Take dl_load_lock to examine map.
190         Remove assert (map->l_init_called); if DF_1_NODELETE is set.
191         * elf/Makefile [ifeq (yes,$(build-shared))] (tests): Add
192         tst-nodelete-dlclose.
193         (modules-names): Add tst-nodelete-dlclose-dso and
194         tst-nodelete-dlclose-plugin.
195         ($(objpfx)tst-nodelete-dlclose-dso.so): Define.
196         ($(objpfx)tst-nodelete-dlclose-plugin.so): Define.
197         ($(objpfx)tst-nodelete-dlclose): Define.
198         ($(objpfx)tst-nodelete-dlclose.out): Define.
199
200 2016-12-23  Florian Weimer  <fweimer@redhat.com>
201
202         * scripts/test_printers_common.py: Log GDB output in case of
203         Python detection failure.
204
205 2016-12-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
206
207         * configure.ac: Check for python3 or python.
208         * configure: Regenerated.
209         * config.make.in (PYTHON): New variable.
210         * benchtests/Makefile: Don't define PYTHON.
211         (bench): Define target only if PYTHON was defined.
212         * Rules: Don't define PYTHON.
213         Define pretty printer targets only if PYTHON was defined.
214         (tests-printers): Add to tests-unsupported if PYTHON is not
215         found.
216         (python-flags, python-invoke): Remove.
217         (tests-printers-out): Use PYTHON instead of python-invoke.
218
219 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
220
221         [BZ #20978]
222         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
223         Compare name == NULL, not name != NULL.
224
225         * manual/texinfo.tex: Update to version 2016-09-18.18 with
226         trailing whitespace removed.
227         * scripts/config.guess: Update to version 2016-10-02.
228         * scripts/config.sub: Update to version 2016-11-19.
229         * scripts/install-sh: Update to version 2016-01-11.22.
230         * scripts/mkinstalldirs: Update to version 2016-01-11.22.
231         * scripts/move-if-change: Update to version 2016-01-11 22:04.
232
233 2015-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
234
235         * benchtests/bench-strsep.c (oldstrsep): Add old implementation.
236         (do_one_test) Restore original string so iteration works.
237         * string/string-inlines.c (do_test): Create better input strings.
238         (test_main) Reduce number of testruns.
239         * string/string-inlines.c (__old_strsep_1c): New function.
240         (__old_strsep_2c): Likewise.
241         (__old_strsep_3c): Likewise.
242         * string/strsep.c (__strsep): Remove case of small delim string.
243         Call strcspn directly rather than strpbrk.
244         * string/bits/string2.h (__strsep): Remove define.
245         (__strsep_1c): Remove.
246         (__strsep_2c): Remove.
247         (__strsep_3c): Remove.
248         (strsep): Remove.
249         * sysdeps/unix/sysv/linux/internal_statvfs.c
250         (__statvfs_getflags): Rename to __strsep.
251
252 2016-12-21  Florian Weimer  <fweimer@redhat.com>
253
254         * csu/libc-tls.c (_dl_tls_setup): Remove.
255         * elf/dl-tls.c (_dl_tls_setup): Likewise.
256         * elf/Versions (GLIBC_PRIVATE): Remove _dl_tls_setup.
257         * sysdeps/generic/ldsodefs.h (_dl_tls_setup): Remove declaration.
258
259 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
260
261         [BZ #7065]
262         * sysdeps/x86_64/Makefile [$(subdir) = elf]
263         (CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
264
265 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
266             Florian Weimer  <fweimer@redhat.com>
267
268         [BZ #7065]
269         * csu/Makefile (tests): Empty assignment and document it.
270         (tests-static): Remove.
271         * csu/tst-empty.c: Move to...
272         * misc/tst-empty.c: ... here.  Switch to new test driver.
273         * csu/tst-atomic.c: Move to...
274         * misc/tst-atomic.c: ... here.  Switch to new test driver.
275         * csu/tst-atomic-long.c: Move to...
276         * misc/tst-atomic-long.c: ... here.
277         * misc/Makefile (tests): Add tst-empty, tst-atomic,
278         tst-atomic-long.
279         (tests-static): Add tst-empty.
280
281 2016-12-21  Rical Jasan  <ricaljasan@pacific.net>
282
283         * manual/nss.texi: Change incorrect @vtable to @table.
284         * manual/arith.texi: Convert @tables of variables to @vtables
285         and remove unnecessary indexing.
286         * manual/filesys.texi: Likewise.
287         * manual/llio.texi: Likewise.
288         * manual/memory.texi: Likewise.
289         * manual/process.texi: Likewise.
290         * manual/resource.texi: Likewise.
291         * manual/search.texi: Likewise.
292         * manual/signal.texi: Likewise.
293         * manual/socket.texi: Likewise.
294         * manual/stdio.texi: Likewise.
295         * manual/sysinfo.texi: Likewise.
296         * manual/syslog.texi: Likewise.
297         * manual/terminal.texi: Likewise.
298         * manual/time.texi: Likewise.
299         * manual/users.texi: Likewise.
300
301 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
302
303         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
304         (roundeven): New declaration.
305         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (roundeven): New
306         macro.
307         * math/Versions (roundeven): New libm symbol at version
308         GLIBC_2.25.
309         (roundevenf): Likewise.
310         (roundevenl): Likewise.
311         * math/Makefile (libm-calls): Add s_roundevenF.
312         * math/libm-test.inc (roundeven_test_data): New array.
313         (roundeven_test): New function.
314         (main): Call roundeven_test.
315         * math/test-tgmath.c (NCALLS): Increase to 134.
316         (F(compile_test)): Call roundeven.
317         (F(roundeven)): New function.
318         * manual/arith.texi (Rounding Functions): Document roundeven,
319         roundevenf and roundevenl.
320         * manual/libm-err-tab.pl (@all_functions): Add roundeven.
321         * include/math.h (roundeven): Use libm_hidden_proto.
322         * sysdeps/ieee754/dbl-64/s_roundeven.c: New file.
323         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Likewise.
324         * sysdeps/ieee754/flt-32/s_roundevenf.c: Likewise.
325         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Likewise.
326         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c: Likewise.
327         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Likewise.
328         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
329         roundeven.
330         (CFLAGS-nldbl-roundeven.c): New variable.
331         * sysdeps/ieee754/ldbl-opt/nldbl-roundeven.c: New file.
332         * sysdeps/nacl/libm.abilist: Update.
333         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
334         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
335         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
336         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
337         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
338         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
339         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
340         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
341         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
342         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
343         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
344         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
346         Likewise.
347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
348         Likewise.
349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
350         Likewise.
351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
352         Likewise.
353         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
354         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
355         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
356         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
357         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
358         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
359         Likewise.
360         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
361         Likewise.
362         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
363         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
364         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
365
366 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
367
368         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): Add
369         preprocessor indentation inside #if.
370
371 2016-12-20  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
372
373         * math/libm-test.inc (fmt_ftostr): New function.
374         (print_float, check_float_internal): Replace some uses of
375         FTOSTR with uses of fmt_ftostr.
376         (print_max_error, print_complex_max_error, print_function_ulps)
377         (print_complex_function_ulps): Remove uses of the macros
378         PRINTF_EXPR, PRINTF_NEXPR, and PRINTF_XEXPR.
379         * math/test-double.h (FTOSTR): Define to strfromd.
380         (PRINTF_EXPR): Delete.
381         (PRINTF_XEXPR): Likewise.
382         (PRINTF_NEXPR): Likewise.
383         * math/test-float.h (FTOSTR): Define to strfromf.
384         (PRINTF_EXPR): Delete.
385         (PRINTF_XEXPR): Likewise.
386         (PRINTF_NEXPR): Likewise.
387         * math/test-ldouble.h (FTOSTR): Define to strfroml.
388         (PRINTF_EXPR): Delete.
389         (PRINTF_XEXPR): Likewise.
390         (PRINTF_NEXPR): Likewise.
391
392 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
393
394         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
395         (__lll_unlock_elision, lll_unlock_elision): Add adapt_count argument.
396         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
397         (__lll_lock_elision): Decrement adapt_count while unlocking
398         instead of before locking.
399         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
400         (__lll_trylock_elision): Likewise.
401         * sysdeps/unix/sysv/linux/s390/elision-unlock.c:
402         (__lll_unlock_elision): Likewise.
403
404 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
405
406         * sysdeps/unix/sysv/linux/s390/htm.h(__libc_tbegin_retry): New macro.
407         * sysdeps/unix/sysv/linux/s390/elision-lock.c (__lll_lock_elision):
408         Use __libc_tbegin_retry macro.
409
410 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
411
412         * sysdeps/unix/sysv/linux/s390/Makefile (elision-CFLAGS):
413         Add -msoft-float.
414         * sysdeps/unix/sysv/linux/s390/htm.h: New File.
415         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
416         Use __libc_t* transaction macros instead of __builtin_t*.
417         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
418         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
419
420 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
421
422         * sysdeps/unix/sysv/linux/s390/elision-lock.c
423         (__lll_lock_elision): Use atomics to load / store adapt_count.
424         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
425         (__lll_trylock_elision): Likewise.
426
427 2016-12-20  Florian Weimer  <fweimer@redhat.com>
428
429         Do not require memset elimination in explicit_bzero test.
430         * string/tst-xbzero-opt.c (prepare_test_buffer): Force inlining.
431         (enum test_expectation): Add NO_EXPECTATIONS.
432         (subtests): NO_EXPECTATIONS for ordinary clear.
433         (check_test_buffer): Handle NO_EXPECTATIONS.
434         * string/Makefile (CFLAGS-tst-xbzero-opt.c): Compile with -O3.
435
436 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
437
438         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
439         (fmaxmag): New declaration.
440         (fminmag): Likewise.
441         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (fmaxmag): New
442         macro.
443         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fminmag): Likewise.
444         * math/Versions (fmaxmag): New libm symbol at version GLIBC_2.25.
445         (fmaxmagf): Likewise.
446         (fmaxmagl): Likewise.
447         (fminmag): Likewise.
448         (fminmagf): Likewise.
449         (fminmagl): Likewise.
450         * math/Makefile (gen-libm-calls): Add s_fmaxmagF and s_fminmagF.
451         * math/s_fmaxmag_template.c: New file.
452         * math/s_fminmag_template.c: Likewise.
453         * math/libm-test.inc (fmaxmag_test_data): New array.
454         (fmaxmag_test): New function.
455         (fminmag_test_data): New array.
456         (fminmag_test): New function.
457         (main): Call fmaxmag_test and fminmag_test.
458         * math/test-tgmath.c (NCALLS): Increase to 132.
459         (F(compile_test)): Call fmaxmag and fminmag.
460         (F(fminmag)): New function.
461         (F(fmaxmag)): Likewise.
462         * manual/arith.texi (Misc FP Arithmetic): Document fminmag,
463         fminmagf, fminmagl, fmaxmag, fmaxmagf and fmaxmagl.
464         * manual/libm-err-tab.pl (@all_functions): Add fmaxmag and
465         fminmag.
466         * sysdeps/ieee754/ldbl-opt/nldbl-fmaxmag.c: New file.
467         * sysdeps/ieee754/ldbl-opt/nldbl-fminmag.c: Likewise.
468         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
469         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
470         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmaxmag
471         and fminmag.
472         (CFLAGS-nldbl-fmaxmag.c): New variable.
473         (CFLAGS-nldbl-fminmag.c): Likewise.
474         * sysdeps/nacl/libm.abilist: Update.
475         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
476         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
477         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
478         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
479         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
480         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
481         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
482         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
483         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
484         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
485         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
486         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
488         Likewise.
489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
490         Likewise.
491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
492         Likewise.
493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
494         Likewise.
495         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
496         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
497         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
498         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
499         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
500         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
501         Likewise.
502         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
503         Likewise.
504         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
505         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
506         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
507
508 2016-12-19  Torvald Riegel  <triegel@redhat.com>
509
510         [BZ #20973]
511         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Fix lost
512         wake-up in robust mutexes.
513         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
514
515 2016-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
516
517         * benchtests/Makefile (bench-math): Add fminf and fmaxf.
518         (CFLAGS-bench-fmaxf.c): New rule.
519         (CFLAGS-bench-fminf.c): Likewise.
520         * benchtests/fmaxf-inputs: New file.
521         * benchtests/fminf-inputs: Likewise.
522
523         * benchtests/Makefile (bench-math): Add fmin and fmax.
524         (CFLAGS-bench-fmax.c): New rule.
525         (CFLAGS-bench-fmin.c): Likewise.
526         * benchtests/fmax-inputs: New file.
527         * benchtests/fmin-inputs: Likewise.
528
529         * benchtests/bench-string.h (TEST_FUNCTION): Use name without
530         parenthesis.
531         (CMDLINE_PROCESS): Define using function instead of macro.
532         * benchtests/bench-memccpy.c: Include <support/test-driver.c> instead
533         of test-skeleton.
534         * benchtests/bench-memchr.c: Likewise.
535         * benchtests/bench-memcmp.c: Likewise.
536         * benchtests/bench-memcpy-large.c: Likewise.
537         * benchtests/bench-memcpy.c: Likewise.
538         * benchtests/bench-memmem.c: Likewise.
539         * benchtests/bench-memmove-large.c: Likewise.
540         * benchtests/bench-memmove.c: Likewise.
541         * benchtests/bench-memset-large.c: Likewise.
542         * benchtests/bench-memset.c: Likewise.
543         * benchtests/bench-rawmemchr.c: Likewise.
544         * benchtests/bench-strcasecmp.c: Likewise.
545         * benchtests/bench-strcasestr.c: Likewise.
546         * benchtests/bench-strcat.c: Likewise.
547         * benchtests/bench-strchr.c: Likewise.
548         * benchtests/bench-strcmp.c: Likewise.
549         * benchtests/bench-strcpy.c: Likewise.
550         * benchtests/bench-strcpy_chk.c: Likewise.
551         * benchtests/bench-strlen.c: Likewise.
552         * benchtests/bench-strncasecmp.c: Likewise.
553         * benchtests/bench-strncmp.c: Likewise.
554         * benchtests/bench-strncpy.c: Likewise.
555         * benchtests/bench-strnlen.c: Likewise.
556         * benchtests/bench-strpbrk.c: Likewise.
557         * benchtests/bench-strrchr.c: Likewise.
558         * benchtests/bench-strsep.c: Likewise.
559         * benchtests/bench-strspn.c: Likewise.
560         * benchtests/bench-strstr.c: Likewise.
561         * benchtests/bench-strtok.c: Likewise.
562
563 2016-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
564
565         * sysdeps/x86/cpu-features.c (get_common_indeces): Add
566         stepping identification.
567         (init_cpu_features): Add handle of Haswell.
568
569 2016-11-25  Jim Meyering  <meyering@fb.com>
570
571         [BZ #20386]
572         Let gcc detect assert(a = 1) errors.
573         * assert/assert.h (assert) Rewrite, retaining the old definintion
574         when required, but otherwise putting the expression as-is in an "if"
575         expression (hence, with no added parentheses) within a statement
576         expression.
577
578 2016-12-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
579
580         * benchtests/Makefile (binaries-benchset): Depend on libsupport
581         DSO.
582
583 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
584
585         * Rules (python-flags, python-invoke): New.
586         ($(test-printers-out)): Use $(python-flags).
587
588 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
589
590         * manual/arith.texi (Math Error Reporting): Document that sNaN
591         arguments are not considered domain errors.
592
593 2016-12-16  Zack Weinberg <zackw@panix.com>
594             Florian Weimer <fweimer@redhat.com>
595             Nick Mathewson <nickm@torproject.org>
596
597         * string/explicit_bzero.c: New routine.
598         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
599         * string/Makefile (routines, strop-tests, tests): Add them.
600         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
601         * string/string.h [__USE_MISC]: Declare explicit_bzero.
602
603         * debug/explicit_bzero_chk.c: New routine.
604         * debug/Makefile (routines): Add it.
605         * debug/tst-chk1.c: Test fortification of explicit_bzero.
606         * string/bits/string3.h: Fortify explicit_bzero.
607
608         * manual/string.texi: Document explicit_bzero.
609         * NEWS: Mention addition of explicit_bzero.
610
611         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
612         data before returning, using explicit_bzero.
613         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
614         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
615         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
616
617         * include/string.h: Redirect internal uses of explicit_bzero
618         to __explicit_bzero_chk[_internal].
619         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
620         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
621         * sysdeps/arm/nacl/libc.abilist
622         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
623         * sysdeps/unix/sysv/linux/alpha/libc.abilist
624         * sysdeps/unix/sysv/linux/arm/libc.abilist
625         * sysdeps/unix/sysv/linux/hppa/libc.abilist
626         * sysdeps/unix/sysv/linux/i386/libc.abilist
627         * sysdeps/unix/sysv/linux/ia64/libc.abilist
628         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
629         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
630         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
631         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
632         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
633         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
634         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
635         * sysdeps/unix/sysv/linux/nios2/libc.abilist
636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
640         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
641         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
642         * sysdeps/unix/sysv/linux/sh/libc.abilist
643         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
644         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
645         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
646         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
647         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
648         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
649         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
650         Add entries for explicit_bzero and __explicit_bzero_chk.
651
652 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
653
654         * math/fenv.h
655         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
656         (FE_SNANS_ALWAYS_SIGNAL): New macro.
657         * math/test-fe-snans-always-signal.c: New file.
658         * math/Makefile (tests): Add test-fe-snans-always-signal.
659         (CFLAGS-test-fe-snans-always-signal.c): New variable.
660         * manual/arith.texi (Infinity and NaN): Document
661         FE_SNANS_ALWAYS_SIGNAL.
662
663 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
664
665         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
666         bracket.
667
668 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
669
670         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
671         before calling execv.
672
673 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
674
675         [BZ# 20971]
676         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
677         overflow in pointer addition.
678         * string/test-memchr.c (do_test): Add an argument to pass as
679         the size on memchr.
680         (test_main): Add check for SIZE_MAX.
681
682 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
683
684         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
685         (libm-calls): Add w_scalblnF.
686         * math/w_scalbln.c: Remove.
687         * math/w_scalblnf.c: Likewise.
688         * math/w_scalblnl.c: Likewise.
689         * math/w_scalbln_template.c: New file with type-generic
690         implementation based on math/w_scalbln.c.
691         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
692         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
693
694 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
695
696         [BZ #20947]
697         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
698         either is a signaling NaN.
699         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
700         follow fmaxl more closely.
701         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
702         when either is a signaling NaN.
703         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
704         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
705         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
706         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
707         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
708         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
709         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
710         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
711         (fmin_test_data): Likewise.
712
713 2016-12-15  Andreas Schwab  <schwab@suse.de>
714
715         * support/support_test_main.c (support_test_main): Don't shadow
716         file-local variable test_pid.
717
718 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
719
720         [BZ #20947]
721         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
722         either is a signaling NaN.
723         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
724
725 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
726
727         [BZ #20947]
728         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
729         when either is a signaling NaN.
730         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
731
732         * bits/long-double.h: New file.
733         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
734         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
735         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
736         * sysdeps/mips/bits/long-double.h: Likewise.
737         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
738         * math/Makefile (headers): Add bits/long-double.h.
739         * misc/sys/cdefs.h: Include <bits/long-double.h>.
740         * stdlib/strtold.c: Include <bits/long-double.h> instead of
741         <bits/wordsize.h>.
742         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
743         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
744         * math/math.h: Do not include <bits/mathdef.h>.
745         * sysdeps/aarch64/bits/mathdef.h: Remove file.
746         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
747         inclusion.
748         * sysdeps/ia64/bits/mathdef.h: Remove file.
749         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
750         * sysdeps/mips/bits/mathdef.h: Likewise.
751         * sysdeps/powerpc/bits/mathdef.h: Likewise.
752         * sysdeps/s390/bits/mathdef.h: Likewise.
753         * sysdeps/sparc/bits/mathdef.h: Likewise.
754         * sysdeps/x86/bits/mathdef.h: Likewise.
755         * sysdeps/s390/s390-32/bits/wordsize.h
756         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
757         conditional code.
758         * sysdeps/s390/s390-64/bits/wordsize.h
759         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
760         Likewise.
761         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
762         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
763         Likewise.
764         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
765         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
766         Likewise.
767         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
768         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
769         Likewise.
770
771         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
772         <linux/falloc.h>.
773         (FALLOC_FL_KEEP_SIZE): Remove.
774         (FALLOC_FL_PUNCH_HOLE): Likewise.
775         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
776         (FALLOC_FL_ZERO_RANGE): Likewise.
777
778 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
779
780         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
781
782 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
783
784         * sysdeps/unix/sysv/linux/renameat.c: New file.
785         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
786
787         * sysdeps/unix/sysv/linux/rename.c: New file.
788         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
789
790 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
791
792         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
793         * string/strtok.c (strtok): Change to tailcall __strtok_r.
794         * string/strtok_r.c (__strtok_r): Optimize for performance.
795         * string/string-inlines.c (__old_strtok_r_1c): New function.
796         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
797
798 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
799
800         * math/Makefile (gen-libm-calls): Add w_log1pF.
801         (libm-calls): Remove w_log1pF.
802         * math/w_log1p.c: Remove.
803         * math/w_log1pf.c: Likewise.
804         * math/w_log1pl.c: Likewise.
805         * math/w_log1p_template.c: New file with type-generic
806         implementation based on math/w_log1p.c.
807         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
808         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
809
810 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
811
812         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
813
814 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
815
816         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
817         kernel version to 4.9.
818
819 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
820
821         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
822         ($(inst_libdir)/libm.a): Fix rule to create the target only.
823
824 2016-12-13  Andreas Schwab  <schwab@suse.de>
825
826         * sysdeps/powerpc/dl-procinfo.c: Don't define
827         _dl_powerpc_platforms.
828         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
829         constants instead of referencing _dl_powerpc_platforms.
830         (_dl_platform_string): Remove.
831
832 2016-12-13  Florian Weimer  <fweimer@redhat.com>
833
834         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
835
836 2016-12-13  Florian Weimer  <fweimer@redhat.com>
837
838         * Rules (binaries-shared-tests, binaries-pie-tests)
839         (binaries-static-tests): Link with $(link-extra-libs-tests).
840         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
841         Remove $(link-extra-libs-tests).
842
843 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
844
845         * sysdeps/powerpc/powerpc64/multiarch/Makefile
846         (sysdep_routines): Add strncmp_power9.
847         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
848         (strncmp): Add __strncmp_power9 to list of strncmp functions.
849         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
850         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
851         (strncmp): Add __strncmp_power9 to ifunc list.
852         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
853
854 2016-12-12  Florian Weimer  <fweimer@redhat.com>
855
856         [BZ #17252]
857         Add getentropy, getrandom.
858         * stdlib/sys/random.h: New file.
859         (headers): Add it.
860         * stdlib/Makefile (routines): Add getentropy, getrandom.
861         (tests): Add tst-getrandom.
862         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
863         * stdlib/getentropy.c: New file.
864         * stdlib/getrandom.c: Likewise.
865         * stdlib/tst-getrandom.c: Likewise.
866         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
867         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
868         * manual/crypt.texi (Unpredictable Bytes): New section.
869         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
870         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
871         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
872         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
873         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
874         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
875         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
876         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
877         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
878         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
879         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
880         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
881         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
882         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
883         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
884         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
886         Likewise.
887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
888         Likewise.
889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
891         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
892         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
893         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
894         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
895         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
896         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
897         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
898         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
899         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
900         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
901
902 2016-12-10  Florian Weimer  <fweimer@redhat.com>
903
904         [BZ #20956]
905         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
906         as additional compiler barriers.
907         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
908         (fn2, do_test): Declare with external linkage.
909         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
910         (do_test): Declare with external linkage.
911         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
912         (do_test): Declare with external linkage.
913         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
914         (do_test): Declare with external linkage.
915
916 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
917
918         * support/support_test_main.c (support_test_main): Use correct
919         timeout.
920
921 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
922             Florian Weimer  <fweimer@redhat.com>
923
924         [BZ #16421]
925         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
926         and __u6_addr32 members.
927         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
928         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
929         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
930         Use __u6_addr32.
931         * inet/tst-checks.c: Use <support/test-driver.c>
932         * inet/tst-checks-posix.c: New file.
933         * inet/Makefile (tests): Add it.
934         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
935
936 2016-12-09  Florian Weimer  <fweimer@redhat.com>
937
938         New subdirectory support for build and test infrastructure.
939         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
940         setting install-lib.
941         * Makeconfig (link-extra-libs-tests): Define.
942         (+link-pie-tests, +link-static-tests, +link-tests): Use
943         link-extra-libs-tests.
944         (rpath-dirs, all-subdirs): Add support.
945         (built-modules): Add libsupport.
946         (libsupport): Define.
947         * support: New directory.
948         * support/Makefile: New file.
949         * support/check.c: Likewise.
950         * support/check.h: Likewise.
951         * support/delayed_exit.c: Likewise.
952         * support/ignore_stderr.c: Likewise.
953         * support/oom_error.c: Likewise.
954         * support/set_fortify_handler.c: Likewise.
955         * support/support.h: Likewise.
956         * support/temp_file-internal.h: Likewise.
957         * support/temp_file.c: Likewise.
958         * support/test-driver.c: Likewise.
959         * support/test-driver.h: Likewise.
960         * support/test_main.c: Likewise.
961         * support/write_message.c: Likewise.
962         * support/xasprintf.c: Likewise.
963         * support/xcalloc.c: Likewise.
964         * support/xmalloc.c: Likewise.
965         * support/xpthread_barrier_destroy.c: Likewise.
966         * support/xpthread_barrier_init.c: Likewise.
967         * support/xpthread_barrier_wait.c: Likewise.
968         * support/xpthread_cancel.c: Likewise.
969         * support/xpthread_check_return.c: Likewise.
970         * support/xpthread_cond_wait.c: Likewise.
971         * support/xpthread_create.c: Likewise.
972         * support/xpthread_detach.c: Likewise.
973         * support/xpthread_join.c: Likewise.
974         * support/xpthread_mutex_lock.c: Likewise.
975         * support/xpthread_mutex_unlock.c: Likewise.
976         * support/xpthread_sigmask.c: Likewise.
977         * support/xpthread_spin_lock.c: Likewise.
978         * support/xpthread_spin_unlock.c: Likewise.
979         * support/xrealloc.c: Likweise.
980         * support/xsignal.h: Likewise.
981         * support/xthread.h: Likewise.
982         * support_tempfile.h: Likewise.
983         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
984         (TEST_DATA_LIMIT): Remove unused macro.
985         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
986         <support/check.h>.
987         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
988         (ignore_stderr, set_fortify_handler): Remove.  Now in
989         <support/support.h>.
990         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
991         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
992         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
993         (xpthread_join): Remove.  Now in <support/xthread.h>.
994         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
995         Introduce legacy wrappers.
996         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
997         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
998         (write_message): Remove.
999         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
1000         test-skeleton.c.
1001         * io/test-open-tmpfile: Likewise.
1002         * io/tst-posix_fallocate-common.c: Likewise.
1003         * libio/tst-fseek.c: Likewise.
1004         * malloc/tst-malloc-backtrace.c: Likewise.
1005         * malloc/tst-malloc-fork-deadlock.c: Likewise.
1006         * malloc/tst-malloc-thread-exit.c: Likewise.
1007         * nptl/tst-cancel7.c: Likewise.
1008         * nptl/tst-cleanup0.c: Likewise.
1009         * posix/tst-posix_fadvise-common.c: Likewise.
1010         * rt/tst-shm.c: Likewise.
1011         * time/bug-getdate1.c: Likewise.
1012         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
1013         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
1014         * elf/Makefile (tst-piemod1.so): Link against libsupport.
1015
1016 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
1017
1018         * Rules [$(run-built-tests) != no] (tests-expected): Add
1019         $(tests-printers).
1020         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
1021
1022 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
1023
1024         [BZ #20539]
1025         * math/Makefile (install-lib-ldscripts): Add libm.a.
1026         (install_subdir): Remove.
1027         (install-others): Add.
1028         ($(inst_libdir)/libm.a): Add rule for installation as
1029         linker script.
1030         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
1031
1032 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
1033
1034         * INSTALL: Regenerated.
1035         * Makeconfig: Add comments and whitespace to make the control flow
1036         clearer.
1037         (+link-printers-tests, +link-pie-printers-tests,
1038         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
1039         built-rtld-LDFLAGS, link-libc-rpath,
1040         link-libc-tests-after-rpath-link,
1041         link-libc-printers-tests): New.
1042         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
1043         link-libc-tests): Use the new variables as required.
1044         * Makerules ($(py-const)): New rule.
1045         generated: Add $(py-const).
1046         * README.pretty-printers: New file.
1047         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
1048         (others): Depend on $(py-const).
1049         (tests): Depend on $(tests-printers-programs) or
1050         $(tests-printers-out),
1051         as required.  Pass $(tests-printers) to merge-test-results.sh.
1052         * manual/install.texi: Add requirements for testing the pretty
1053         printers.
1054         * nptl/Makefile (gen-py-const-headers, pretty-printers,
1055         tests-printers, CFLAGS-test-mutexattr-printers.c
1056         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
1057         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
1058         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
1059         * nptl/nptl-printers.py: New file.
1060         * nptl/nptl_lock_constants.pysym: Likewise.
1061         * nptl/test-cond-printers.c: Likewise.
1062         * nptl/test-cond-printers.py: Likewise.
1063         * nptl/test-condattr-printers.c: Likewise.
1064         * nptl/test-condattr-printers.py: Likewise.
1065         * nptl/test-mutex-printers.c: Likewise.
1066         * nptl/test-mutex-printers.py: Likewise.
1067         * nptl/test-mutexattr-printers.c: Likewise.
1068         * nptl/test-mutexattr-printers.py: Likewise.
1069         * nptl/test-rwlock-printers.c: Likewise.
1070         * nptl/test-rwlock-printers.py: Likewise.
1071         * nptl/test-rwlockattr-printers.c: Likewise.
1072         * nptl/test-rwlockattr-printers.py: Likewise.
1073         * scripts/gen-py-const.awk: Likewise.
1074         * scripts/test_printers_common.py: Likewise.
1075         * scripts/test_printers_exceptions.py: Likewise.
1076
1077 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
1078
1079         * scripts/build-many-glibcs.py (Context.__init__): Take strip
1080         argument.
1081         (Glibc.build_glibc): Strip installed shared libraries if
1082         requested.
1083         (get_parser): Add --strip option.
1084         (main): Update Context call.
1085
1086 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1087             Dominik Vogt  <vogt@linux.vnet.ibm.com>
1088
1089         [BZ #20847]
1090         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
1091         array bounds for else branch.
1092         (__execvpe): Style fixes.
1093         * posix/tst-vfork3.c (run_script): New function.
1094         (create_script): Likewise.
1095         (do_test): Use run_script internal function.
1096         (do_prepare): Use create_script internal function.
1097
1098 2016-12-07  Andreas Schwab  <schwab@suse.de>
1099
1100         * sysdeps/unix/sysv/linux/x86/elision-conf.h
1101         (__elision_available): Don't declare.
1102         * sysdeps/unix/sysv/linux/x86/elision-conf.c
1103         (__elision_available): Don't define.
1104         (elision_init): Don't set __elision_available.
1105
1106 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
1107
1108         [BZ #20940]
1109         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
1110         return Inf for arguments Inf and sNaN.
1111         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
1112         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
1113         Likewise.
1114         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
1115         Likewise.
1116         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
1117         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
1118         for arguments Inf and sNaN.  When returning a NaN, compute it by
1119         arithmetic on the arguments.
1120         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
1121         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
1122         arguments.
1123
1124 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
1125
1126         [BZ #20916]
1127         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
1128         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
1129         to compute result.
1130         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1131         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
1132
1133 2016-12-05  Torvald Riegel  <triegel@redhat.com>
1134
1135         * include/atomic.h (__atomic_check_size_ls): New.
1136         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
1137         atomic_store_release): Use it.
1138         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
1139         (elision_adapt, ELIDE_LOCK): Use atomics.
1140         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
1141         atomics and improve code comments.
1142         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
1143         (__lll_trylock_elision): Likewise.
1144
1145 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1146
1147         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
1148         programs.
1149
1150 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
1151
1152         [BZ #20916]
1153         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
1154         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
1155         arguments to compute result.
1156         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
1157         1 for arguments (sNaN, 0) or (1, sNaN).
1158         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
1159         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
1160
1161         [BZ #20919]
1162         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
1163         NaN first argument when raised to power 0.
1164         * math/w_pow.c (__pow): Do not check for NaN or zero results from
1165         raising to power zero.
1166         * math/w_powf.c (__powf): Likewise.
1167         * math/w_powl.c (__powl): Likewise.
1168         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
1169         pow (0, 0) or pow (NaN, 0).
1170
1171 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
1172
1173         [BZ #20918]
1174         * configure.ac: Test for static NSS cryptographic libraries and set
1175         libc_cv_static_nss_crypt.
1176         * configure: Regenerate.
1177         * config.make.in (static-nss-crypt): Define.
1178         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
1179         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
1180         (CFLAGS-tst-linkall-static.c): Define.
1181         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
1182         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
1183         ($(objpfx)tst-linkall-static): Define.
1184         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
1185         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
1186
1187 2016-12-02  Florian Weimer  <fweimer@redhat.com>
1188
1189         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
1190         (one-hundred, tst-tls-many-dynamic-modules): Define.
1191         (modules-names): Add $(tst-tls-many-dynamic-modules).
1192         (tst-tls-manydynamic%mod.os): Build with special preprocessor
1193         macros.
1194         (tst-tls-manydynamic): Link against libdl, libpthread.
1195         (tst-tls-manydynamic.out): The test needs the test modules at run
1196         time.
1197         * elf/tst-tls-manydynamic.c: New file.
1198         * elf/tst-tls-manydynamic.h: Likewise.
1199         * elf/tst-tls-manydynamicmod.c: Likewise.
1200
1201 2016-12-02  Florian Weimer  <fweimer@redhat.com>
1202
1203         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
1204         (TLS_DTV_UNALLOCATED): Add.
1205         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
1206         offsets.
1207
1208 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
1209
1210         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1211
1212 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
1213
1214         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
1215         Add -fno-optimize-sibling-calls.
1216
1217 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
1218
1219         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
1220         New declaration.
1221         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
1222         macro.
1223         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
1224         New macro.
1225         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
1226         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
1227         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
1228         (llogbf): Likewise.
1229         (llogbl): Likewise.
1230         * math/Makefile (gen-libm-calls): Add w_llogbF.
1231         (tests): Add test-fp-llogb-constants.
1232         * math/w_llogb_template.c: New file.  Based on
1233         math/w_ilogb_template.c.
1234         * math/libm-test.inc (llogb_test_data): New array.
1235         (llogb_test): New function.
1236         (main): Call llogb_test.
1237         * math/test-fp-llogb-constants.c: New file.  Based on
1238         math/test-fp-ilogb-constants.c.
1239         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
1240         (do_test): Call check_return_llogb.
1241         * math/test-tgmath.c (NCALLS): Increase to 126.
1242         (F(compile_test)): Call llogb.
1243         (F(llogb)): New function.
1244         * manual/math.texi (Exponents and Logarithms): Document llogb,
1245         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
1246         * manual/libm-err-tab.pl (@all_functions): Add llogb.
1247         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
1248         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
1249         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
1250         (CFLAGS-nldbl-llogb.c): New variable.
1251         * sysdeps/nacl/libm.abilist: Update.
1252         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1253         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1254         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1255         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1256         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1257         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1258         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1259         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1260         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1261         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1262         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1263         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1265         Likewise.
1266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1267         Likewise.
1268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1269         Likewise.
1270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1271         Likewise.
1272         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1273         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1274         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1275         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1276         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1277         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1278         Likewise.
1279         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1280         Likewise.
1281         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1282         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1283         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1284
1285 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
1286
1287         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
1288         _Float128 instead of long double.
1289         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
1290
1291         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
1292         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
1293         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
1294         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
1295         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
1296         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
1297         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
1298         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
1299         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
1300         Likewise.
1301
1302 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1303
1304         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
1305         Remove redirection to __strrchr_ppc.
1306
1307 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1308
1309         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1310         (sysdep_routines): Add strcmp_power9.
1311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1312         (strcmp): Add __strcmp_power9 to list of strcmp functions.
1313         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
1314         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
1315         (strcmp): Add __strcmp_power9 to ifunc list.
1316         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
1317
1318 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
1319
1320         * bits/fp-logb.h: New file.
1321         * sysdeps/ia64/bits/fp-logb.h: Likewise.
1322         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
1323         * sysdeps/x86/bits/fp-logb.h: Likewise.
1324         * math/Makefile (headers): Add bits/fp-logb.h.
1325         * math/math.h: Include <bits/fp-logb.h>.
1326         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
1327         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
1328         * bits/mathdef.h (FP_ILOGB0): Remove.
1329         (FP_ILOGBNAN): Likewise.
1330         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
1331         (FP_ILOGBNAN): Likewise.
1332         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
1333         (FP_ILOGBNAN): Likewise.
1334         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
1335         (FP_ILOGBNAN): Likewise.
1336         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
1337         (FP_ILOGBNAN): Likewise.
1338         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
1339         (FP_ILOGBNAN): Likewise.
1340         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
1341         (FP_ILOGBNAN): Likewise.
1342         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
1343         (FP_ILOGBNAN): Likewise.
1344         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
1345         (FP_ILOGBNAN): Likewise.
1346         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
1347         (FP_ILOGBNAN): Likewise.
1348
1349         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
1350         time module.
1351         (Context.__init__): Initialize self.logsdir_old.
1352         (Context.run_builds): Handle bot action.
1353         (Context.bot_cycle): Copy logs directory before running builds.
1354         (Context.bot_run_self): Take argument for whether to check
1355         subprocess result.  Flush stdout before running subprocess.
1356         (Context.bot): New function.
1357         (get_parser): Allow bot action.
1358
1359 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
1360
1361         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
1362         Import email.mime.text, email.utils and smtplib modules.
1363         (Context.__init__): Initialize self.bot_config_json.
1364         (Context.run_builds): Handle bot-cycle action.
1365         (Context.load_bot_config_json): New function.
1366         (Context.part_build_old): Likewise.
1367         (Context.bot_cycle): Likewise.
1368         (Context.bot_build_mail): Likewise.
1369         (Context.bot_run_self): Likewise.
1370         (get_parser): Allow bot-cycle action.
1371
1372 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1373
1374         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
1375         Remove redirection to __stpcpy_ppc.
1376
1377 2016-11-30  Florian Weimer  <fweimer@redhat.com>
1378
1379         Remove __libc_memalign from ld.so because it is unused.
1380         * elf/dl-minimal.c: Update comment on the malloc implementation.
1381         (malloc): Renamed from __libc_memalign, replacing the original
1382         malloc implementation.  Replace the align parameter with
1383         MALLOC_ALIGNMENT.
1384         * elf/Versions (ld): Update comment and remove __libc_memalign.
1385         * sysdeps/nacl/ld.abilist: Likewise.
1386         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
1387         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
1388         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
1389         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
1390         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
1391         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
1392         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
1393         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
1394         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
1395         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
1396         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
1397         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
1398         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
1399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
1400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
1401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
1402         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
1403         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
1404         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
1405         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
1406         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
1407         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
1408         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
1409         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
1410         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
1411         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
1412         * sysdeps/generic/localplt.data (ld.so): Likewise.
1413         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
1414         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
1415         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
1416         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
1417         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
1418         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
1419         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
1420         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
1421         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
1422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
1423         (ld.so): Likewise.
1424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
1425         (ld.so): Likewise.
1426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
1427         Likewise.
1428         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
1429         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
1430         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
1431         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
1432         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
1433
1434 2016-11-30  Florian Weimer  <fweimer@redhat.com>
1435
1436         [BZ #16628]
1437         Implement _dl_catch_error, _dl_signal_error in libc.so.
1438         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
1439         (catch_hook): Define as thread-local or regular variable,
1440         depending on DL_ERROR_BOOTSTRAP.
1441         (CATCH_HOOK): Remove.
1442         (dl_signal_error, _dl_catch_error): Use
1443         catch_hook.  Add hidden definition for libc.
1444         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
1445         for DL_ERROR_BOOTSTRAP only.
1446         * elf/dl-error.c: New file.
1447         * elf/dl-error-minimal.c: Likewise.
1448         * elf/tst-latepthread.c: Likewise.
1449         * elf/tst-latepthreadmod.c: Likewise.
1450         * elf/Makefile (routines): Add dl-error.
1451         (dl-routines): Remove dl-error.
1452         (rtld-routines): Add dl-error-minimal.
1453         [build-shared] (tests): Add tst-latepthread.
1454         (module-names): Add tst-latepthreadmod.
1455         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
1456         symbol.
1457         (tst-latepthreadmod.so): Link against libpthread.
1458         (tst-latepthread): Link against libdbl.
1459         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
1460         _dl_catch_error.
1461         [ld] (GLIBC_PRIVATE): Likewise.
1462         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
1463         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
1464         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
1465         directly.
1466         * elf/dl-tsd.c: Remove file.
1467         * elf/rtld.c (_rtld_global_ro): Remove initializers for
1468         _dl_catch_error, _dl_signal_error.
1469         (_dl_initial_error_catch_tsd): Remove definition.
1470         (do_preload): Remove initialization of dl_error_catch_tsd.
1471         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
1472         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
1473         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
1474         * dlfcn/dlopen.c (dlopen_doit): Likewise.
1475         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
1476         set dl_error_catch_tsd.
1477         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1478         _dl_error_catch_tsd member.
1479         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
1480         members.
1481         (_dl_initial_error_catch_tsd): Remove declaration.
1482         (_dl_dprintf): Provide definition for use outside of ld.so.
1483         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
1484         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
1485         prototype for libc.
1486         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
1487         _dl_catch_error.
1488         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
1489         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
1490         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
1491         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
1492         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
1493         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
1494         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
1495         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
1496         Likewise.
1497         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
1498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
1499         (ld.so): Likewise.
1500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
1501         (ld.so): Likewise.
1502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
1503         Likewise.
1504         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
1505         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
1506         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
1507         Likewise.
1508         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
1509         Likewise.
1510         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
1511
1512 2016-11-30  Florian Weimer  <fweimer@redhat.com>
1513
1514         [BZ #4099]
1515         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
1516         _IO_BUFSIZ (8192).
1517
1518 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
1519
1520         * PROJECTS: Remove file.
1521
1522 2016-11-29  Florian Weimer  <fweimer@redhat.com>
1523
1524         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
1525
1526 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
1527             Steve Ellcey  <sellcey@caviumnetworks.com>
1528
1529         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
1530         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
1531         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
1532         fxstatat.
1533         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
1534         lxstat.
1535         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
1536         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
1537         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
1538         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
1539         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
1540         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
1541         __xstat.
1542
1543 2016-11-29  Florian Weimer  <fweimer@redhat.com>
1544
1545         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
1546         Define.
1547         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
1548         definition.
1549
1550 2016-11-29  Florian Weimer  <fweimer@redhat.com>
1551
1552         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
1553         version and turn into strong alias.  Remove compat symbol.
1554
1555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1556         (__longjmp): Remove.
1557
1558 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
1559
1560         * bits/fp-fast.h: New file.
1561         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
1562         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
1563         * math/Makefile (headers): Add bits/fp-fast.h.
1564         * math/math.h: Include <bits/fp-fast.h>.
1565         * bits/mathdef.h (FP_FAST_FMA): Remove.
1566         (FP_FAST_FMAF): Likewise.
1567         (FP_FAST_FMAL): Likewise.
1568         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
1569         (FP_FAST_FMAF): Likewise.
1570         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
1571         (FP_FAST_FMAF): Likewise.
1572         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
1573         (FP_FAST_FMAF): Likewise.
1574         (FP_FAST_FMAL): Likewise.
1575         * sysdeps/arm/bits/mathdef.h: Remove file.
1576         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
1577         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
1578         * sysdeps/tile/bits/mathdef.h: Likewise.
1579
1580 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
1581
1582         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
1583         * math/w_ilogb.c: Remove.
1584         * math/w_ilogbf.c: Likewise.
1585         * math/w_ilogbl.c: Likewise.
1586         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
1587         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
1588         * math/Makefile (gen-libm-calls): Add w_ilogbF.
1589         (libm-calls): Remove w_ilogbF.
1590         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
1591         (LDOUBLE_ilogbl_libm_version): New macro.
1592
1593         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
1594
1595         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
1596         [!__STRICT_ANSI__ && !__cplusplus].
1597
1598 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1599
1600         [BZ #20750]
1601         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
1602         of PIC.
1603
1604 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
1605             Yury Norov  <ynorov@caviumnetworks.com>
1606             Steve Ellcey  <sellcey@caviumnetworks.com>
1607
1608         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
1609         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
1610         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
1611         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
1612         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
1613         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
1614         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
1615         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
1616         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
1617         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
1618         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
1619         to get correct reg name for ILP32.
1620         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
1621         (RELA_SIZE): New Macro.
1622         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
1623         to support ILP32.
1624         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
1625         cast for ILP32 mode.
1626         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
1627         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
1628         * sysdeps/aarch64/memset.S (__memset): Ditto.
1629         * sysdeps/aarch64/strchr.S (strchr): Ditto.
1630         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
1631         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
1632         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
1633         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
1634         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
1635         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
1636         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
1637         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
1638         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
1639         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
1640         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
1641         change PTR_MANGLE call to use register numbers instead of names.
1642         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
1643         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
1644         ILP32 mode, change PTR_MANGLE calls to use register numbers.
1645         * sysdeps/aarch64/start.S (_start): Ditto.
1646         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
1647         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
1648         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
1649         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
1650         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
1651         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
1652         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
1653         Make defined values dependent on __ILP32__.
1654         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
1655         (sem_t): Change __align type.
1656         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
1657         PTR_SIZE): New Macros.
1658         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
1659         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
1660         Set when in ILP32 mode.
1661         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
1662         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
1663         Set elf flags for ILP32.
1664         (add_system_dir): Set ILP32 library directories.
1665         * sysdeps/unix/sysv/linux/aarch64/init-first.c
1666         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
1667         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
1668         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
1669         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
1670         New Macros.
1671         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
1672
1673 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
1674
1675         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
1676         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
1677         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
1678
1679 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
1680
1681         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
1682         <asm/cachectl.h>.
1683
1684 2016-11-27  Zack Weinberg  <zackw@panix.com>
1685
1686         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
1687         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
1688
1689 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1690
1691         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
1692         error_t to fix usage in C++ programs.
1693
1694 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
1695
1696         * scripts/build-many-glibcs.py: Import datetime module.
1697         (Context.__init__): Load JSON build state.  Initialize list of
1698         status logs.
1699         (Context.run_builds): Update saved build state.
1700         (Context.add_makefile_cmdlist): Update list of status logs.
1701         (Context.load_build_state_json): New function.
1702         (Context.store_build_state_json): Likewise.
1703         (Context.clear_last_build_state): Likewise.
1704         (Context.update_build_state): Likewise.
1705         (CommandList.status_logs): Likewise.
1706
1707 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
1708
1709         * scripts/build-many-glibcs.py (Context.__init__): Save text of
1710         script being executed.
1711         (Context.get_script_text): New function.
1712         (Context.exec_self): Likewise.
1713         (Context.checkout): Re-exec script if changed by checkout process.
1714
1715 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
1716
1717         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1718         (setpayloadsig): New declaration.
1719         * math/Versions (setpayloadsig): New libm symbol at version
1720         GLIBC_2.25.
1721         (setpayloadsigf): Likewise.
1722         (setpayloadsigl): Likewise.
1723         * math/Makefile (libm-calls): Add s_setpayloadsigF.
1724         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
1725         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
1726         (setpayloadsig_test_data): New array.
1727         (setpayloadsig_test): New function.
1728         (main): Call setpayloadsig_test.
1729         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
1730         setpayloadsigf and setpayloadsigl.
1731         * manual/libm-err-tab.pl: Update comment on interfaces without
1732         ulps tabulated.
1733         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
1734         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
1735         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
1736         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
1737         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
1738         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
1739         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1740         setpayloadsig.
1741         (CFLAGS-nldbl-setpayloadsig.c): New variable.
1742         * sysdeps/nacl/libm.abilist: Update.
1743         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1744         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1745         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1746         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1747         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1748         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1749         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1750         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1751         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1752         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1753         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1754         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1756         Likewise.
1757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1758         Likewise.
1759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1760         Likewise.
1761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1762         Likewise.
1763         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1764         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1765         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1766         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1767         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1768         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1769         Likewise.
1770         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1771         Likewise.
1772         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1773         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1774         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1775
1776         * scripts/build-many-glibcs.py: Import json module.
1777         (Context.__init__): Take replace_sources argument.  Load
1778         versions.json.
1779         (Context.load_versions_json): New function.
1780         (Context.store_json): Likewise.
1781         (Context.store_versions_json): Likewise.
1782         (Context.set_component_version): Likewise.
1783         (Context.checkout): Update versions.json.  Check for and handle
1784         changes of version.  Prefer previously explicitly specified
1785         version to default version.
1786         (Context.checkout_vcs): Return a revision identifier.
1787         (Context.git_checkout): Likewise.
1788         (Context.gcc_checkout): Likewise.
1789         (get_parser): Add --replace-sources option.
1790         (main): Pass replace_sources argument to Context call.
1791
1792 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1793
1794         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
1795         * nptl/allocatestack.c (allocate_stack): Likewise.
1796         (__reclaim_stacks): Likewise.
1797         (setxid_signal_thread): Obtain pid through syscall.
1798         * nptl/nptl-init.c (sigcancel_handler): Likewise.
1799         (sighandle_setxid): Likewise.
1800         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
1801         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
1802         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
1803         Likewise.
1804         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
1805         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
1806         comment.
1807         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
1808         * nptl/descr.h (struct pthread): Change comment about pid value.
1809         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
1810         pid assert.
1811         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
1812         Do not set pid value.
1813         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
1814         pid cache check.
1815         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
1816         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
1817         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
1818         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
1819         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
1820         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
1821         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
1822         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
1823         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
1824         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
1825         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
1826         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
1827         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
1828         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
1829         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
1830         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
1831         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
1832         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
1833         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1834         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
1835         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
1836         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1837         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
1838         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1839         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
1840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1842         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
1843         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1844         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
1845         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
1846         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1847         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
1848         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1849         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
1850         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
1851         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
1852         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1853         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
1854         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
1855         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
1856         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1857         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
1858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
1859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
1860         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
1861         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
1862         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
1863         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
1864         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
1865         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
1866         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1867         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
1868         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
1869         struct access.
1870         (clone_test): Remove function.
1871         (do_test): Rewrite to take in consideration pid is not cached anymore.
1872
1873 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
1874
1875         * bits/flt-eval-method.h: New file.
1876         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
1877         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
1878         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
1879         * math/Makefile (headers): Add bits/flt-eval-method.h.
1880         * math/math.h: Include <bits/flt-eval-method.h>.
1881         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
1882         [__USE_ISOC99] (double_t): Likewise.
1883         * bits/mathdef.h (float_t): Remove.
1884         (double_t): Likewise.
1885         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
1886         (double_t): Likewise.
1887         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
1888         (double_t): Likewise.
1889         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
1890         (double_t): Likewise.
1891         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
1892         (double_t): Likewise.
1893         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
1894         (double_t): Likewise.
1895         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
1896         (double_t): Likewise.
1897         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
1898         (double_t): Likewise.
1899         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
1900         (double_t): Likewise.
1901         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
1902         (double_t): Likewise.
1903         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
1904         (double_t): Likewise.
1905         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
1906         (double_t): Likewise.
1907         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
1908         (double_t): Likewise.
1909         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
1910         (double_t): Likewise.
1911
1912 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
1913
1914         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
1915         instead of PIC.
1916
1917 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1918
1919         [BZ #20859]
1920         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
1921         (-0x7fffffff) instead of 0x80000001.
1922         * math/test-fp-ilogb-constants.c: New file.
1923         * math/Makefile (tests): Add test-fp-ilogb-constants.
1924
1925 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
1926
1927         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
1928         (_init): Use it in place of hardcoded R_MIPS_JALR.
1929         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
1930         (_init): Use it in place of hardcoded R_MIPS_JALR.
1931         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
1932         (_init): Use it in place of hardcoded R_MIPS_JALR.
1933
1934 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1935
1936         [BZ #20787]
1937         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
1938         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
1939         (double_t): Do not define to double if [__x86_64__] when
1940         __FLT_EVAL_METHOD__ is nonzero.
1941         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
1942         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
1943         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
1944         test-flt-eval-method-387 and test-flt-eval-method-sse.
1945         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
1946         variable.
1947         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
1948
1949 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
1950
1951         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
1952         use of -fno-isolate-erroneous-paths options for tilepro.
1953
1954 2016-11-23  Florian Weimer  <fweimer@redhat.com>
1955
1956         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
1957         structure initialization is no longer needed.
1958
1959 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1960
1961         [BZ #20855]
1962         * bits/mathdef.h (float_t): Define to float.
1963         * math/test-flt-eval-method.c: New file.
1964         * math/Makefile (tests): Add test-flt-eval-method.
1965         (CFLAGS-test-flt-eval-method.c): New variable.
1966
1967 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
1968
1969         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
1970         and __fstatfs.  Make them aliases of __fstatfs64 if
1971         STATFS_IS_STATFS64 is set to non-zero.
1972         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
1973         and __statfs64.
1974         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
1975         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
1976         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
1977         for __statfs and statfs.
1978         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
1979         to 0.
1980         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
1981         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
1982         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
1983         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
1984         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
1985         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
1986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
1987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
1988         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
1989         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
1990         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
1991         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
1992
1993 2016-11-22  Andreas Schwab  <schwab@suse.de>
1994
1995         * misc/mkstemp.c: Include <fcntl.h>.
1996         * misc/mkstemps.c: Likewise.
1997         * misc/mkostemp.c: Likewise.
1998         * misc/mkostemps.c: Likewise.
1999
2000 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
2001
2002         [BZ #20847]
2003         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
2004         array bounds.
2005         (__execvpe): Likewise.
2006
2007 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
2008
2009         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
2010         -fno-isolate-erroneous-paths options for tilepro.
2011
2012 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
2013
2014         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
2015         to 0 when in 32 bit mode.
2016         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
2017         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
2018         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
2019         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
2020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
2021         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
2022         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
2023         XSTAT_IS_XSTAT64 test.
2024         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
2025         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
2026         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
2027         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
2028         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
2029         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
2030         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
2031         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
2032         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
2033         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
2034         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
2035
2036 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
2037
2038         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2039         (setpayload): New declaration.
2040         * math/Versions (setpayload): New libm symbol at version
2041         GLIBC_2.25.
2042         (setpayloadf): Likewise.
2043         (setpayloadl): Likewise.
2044         * math/Makefile (libm-calls): Add s_setpayloadF.
2045         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
2046         test_Ff_b1_data.
2047         (RUN_TEST_Ff_b1): New macro.
2048         (RUN_TEST_LOOP_Ff_b1): Likewise.
2049         (canonicalize_test_data): Update type.
2050         (setpayload_test_data): New array.
2051         (setpayload_test): New function.
2052         (main): Call setpayload_test.
2053         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
2054         setpayloadf and setpayloadl.
2055         * manual/libm-err-tab.pl: Update comment on interfaces without
2056         ulps tabulated.
2057         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
2058         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
2059         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
2060         Likewise.
2061         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
2062         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
2063         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
2064         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
2065         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
2066         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
2067         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
2068         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
2069         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
2070         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2071         setpayload.
2072         (CFLAGS-nldbl-setpayload.c): New variable.
2073         * sysdeps/nacl/libm.abilist: Update.
2074         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2075         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2076         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2077         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2078         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2079         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2080         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2081         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2082         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2083         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2084         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2085         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2087         Likewise.
2088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2089         Likewise.
2090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2091         Likewise.
2092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2093         Likewise.
2094         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2095         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2096         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2097         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2098         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2099         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2100         Likewise.
2101         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2102         Likewise.
2103         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2104         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2105         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2106
2107 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2108
2109         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
2110         * include/unistd.h: Extend comment about __access_noerrno return
2111         semantics.
2112         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
2113         (access_common): Correct typo for EACCES.
2114
2115 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
2116
2117         * sysdeps/tile/math-tests.h: New file.
2118
2119         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
2120         (__old_set_dataplane): Rename from set_dataplane and make a
2121         compatibility symbol.
2122         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
2123         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
2124         sys/dataplane.h.
2125
2126 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
2127
2128         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
2129         script quote words in command output to log suitably for input to
2130         the shell.
2131
2132 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
2133             Maciej W. Rozycki  <macro@imgtec.com>
2134
2135         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
2136         `.Lno_weak_fn' label.
2137         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
2138         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
2139
2140 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2141             Yury Norov  <ynorov@caviumnetworks.com>
2142
2143         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
2144         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
2145         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
2146         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
2147         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
2148         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
2149         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
2150         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2151         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
2152         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
2153         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
2154         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
2155         (sysdep_routines): Remove oldgetrlimit64.
2156         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
2157         (sysdep_routines): Likewise.
2158         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
2159         (sysdep_routines): Likewise.
2160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2161         [$(subdir) = resource] (sysdep_routines): Likewise.
2162         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
2163         [$(subdir) = resource] (sysdep_routines): Likewise.
2164         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
2165         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
2166         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
2167         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
2168         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
2169         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
2170         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
2171         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
2172         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
2173         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
2174         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
2175         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
2176         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
2177         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
2178         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
2179         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
2180         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
2181         setrlimit and getrlimit.
2182         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2183         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
2184         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
2185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
2186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2187         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
2188         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2189         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2190         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
2191         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
2192         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
2193         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
2194         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
2195         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
2196         (__old_getrlimit64): Add compatibility symbol.
2197         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
2198
2199 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
2200
2201         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
2202         newly built gmp, mpfr and mpc.
2203
2204         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
2205
2206 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
2207
2208         * conform/Makefile (linknamespace-libs): Rename to
2209         linknamespace-libs-thr.
2210         (linknamespace-libs-posix): New variable.
2211         (linknamespace-libs-xsi): Likewise.
2212         (linknamespace-libs-XPG3): Include libcrypt.a.
2213         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
2214         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
2215         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
2216         (linknamespace-libs-XOPEN2K): Likewise.
2217         (linknamespace-libs-XOPEN2K8): Likewise.
2218         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
2219
2220         [BZ #20829]
2221         * stdio-common/Versions (__snprintf): Add to version
2222         GLIBC_PRIVATE.
2223         * include/stdio.h (__snprintf): Use libc_hidden_proto.
2224         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
2225         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
2226         of snprintf.
2227         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
2228
2229 2016-11-16  Zack Weinberg  <zackw@panix.com>
2230
2231         * string/string.h: Remove obsolete comment stating that
2232         strcoll_l and strxfrm_l have not yet been standardized.
2233
2234 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2235
2236         * hurd/hurd.h (__hurd_fail_noerrno): New function.
2237         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
2238         __access_noerrno.
2239         * io/access.c (__access_noerrno): New function.
2240         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
2241         (hurd_fail_seterrno): Likewise.
2242         (access_common): Likewise.
2243         (__access_noerrno): Likewise.
2244         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
2245         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
2246         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
2247         macro.
2248
2249 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
2250
2251         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
2252         Only declare fpregs if [__SH_FPU_ANY__].
2253
2254 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
2255
2256         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
2257         Make code unconditional.
2258         [!(__SH4__ || __SH4A__)]: Remove conditional code.
2259
2260 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
2261
2262         * manual/sysinfo.texi (S_APPEND): Delete.
2263         (S_IMMUTABLE): Likewise.
2264
2265 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
2266             Magnus Granberg  <zorry@gentoo.org>
2267             Mike Frysinger  <vapier@gentoo.org>
2268
2269         [BZ #20662]
2270         * configure.ac (libc_cv_predef_stack_protector): Also check for
2271         __stack_chk_fail_local symbols.
2272         * configure: Regenerated.
2273
2274 2016-11-15  Florian Weimer  <fweimer@redhat.com>
2275
2276         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
2277         (libc_hidden_def): Remove redefinition.
2278         (__sigsetjmp): Add hidden definition.
2279         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
2280         (libc_hidden_def): Remove redefinition.
2281         (__sigsetjmp): Add hidden definition.
2282
2283 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
2284
2285         * scripts/build-many-glibcs.py (os.path): Do not import.
2286         (Context): Inherit explicitly from object.  Remove blank line
2287         between class and docstring.
2288         (Config): Likewise.
2289         (Glibc): Likewise.
2290         (Command): Likewise.
2291         (CommandList): Likewise.
2292         (Context.write_files): Store chmod mode in a variable.
2293
2294         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
2295         LIBC_SLIBDIR_RTLDDIR for tilegx32.
2296         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
2297
2298 2016-11-14  Zack Weinberg  <zackw@panix.com>
2299
2300         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
2301         creating or re-creating it.
2302
2303         * string/bits/string2.h: Fix typo in comment.
2304
2305 2016-11-14  Zack Weinberg  <zackw@panix.com>
2306
2307         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
2308         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
2309         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
2310         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
2311         of redirected function names.
2312
2313         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
2314         as well.  Document that MESSAGE must be a single string literal.
2315
2316 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
2317
2318         * scripts/build-many-glibcs.py: New file.
2319
2320         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
2321         (do_test): Disable -Wmaybe-uninitialized around uses of
2322         except_mask.
2323
2324         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
2325
2326 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
2327
2328         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
2329         (atomic_store_release): Provide tilepro-specific implementations.
2330
2331 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
2332
2333         * math/math.h (__MATH_TG): New macro.
2334         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
2335         [__USE_ISOC99] (signbit): Likewise.
2336         [__USE_ISOC99] (isfinite): Likewise.
2337         [__USE_ISOC99] (isnan): Likewise.
2338         [__USE_ISOC99] (isinf): Likewise.
2339         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
2340         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
2341         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
2342         __MATH_TG and __MATH_EVAL_FMT2.
2343         * sysdeps/generic/math_private.h (fabs_tg): Define using
2344         __MATH_TG.
2345         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
2346         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
2347         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
2348         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
2349         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
2350         macro.
2351         (__iscanonical): Likewise.
2352         (iscanonical): Define using __MATH_TG.
2353
2354 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2355
2356         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
2357         guards.
2358
2359         * sysdeps/unix/sysv/linux/access.c: New file.
2360         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
2361
2362 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
2363
2364         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
2365         and __WORDSIZE32_PTRDIFF_LONG.
2366
2367 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2368
2369         * sysdeps/aarch64/libm-test-ulps: Regenerated.
2370
2371 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2372
2373         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
2374         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
2375         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
2376         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
2377         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
2378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
2379         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
2380         * sysdeps/unix/sysv/linux/truncate.c: New file.
2381         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
2382         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
2383         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
2384         Remove.
2385         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
2386         Likewise.
2387
2388         * posix/tst-truncate-common.c: New file.
2389         * posix/tst-truncate.c: Use tst-truncate-common.c.
2390         * posix/tst-truncate64.c: Likewise and add LFS tests.
2391         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
2392         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
2393         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
2394         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
2395         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
2396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
2397         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
2398         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
2399         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
2400         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
2401         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
2402         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
2403         Remove.
2404         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
2405         Likewise.
2406
2407 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
2408
2409         [BZ #20790]
2410         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
2411         to MAXLINESIZE.
2412         * sunrpc/bug20790.x: New file.
2413         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
2414         variable.
2415         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
2416         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
2417
2418         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
2419
2420         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
2421
2422         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
2423         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
2424         calloc, realloc, free, memalign and __libc_memalign rather than
2425         making them optional.
2426
2427         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
2428         for libc.so.
2429
2430 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2431
2432         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
2433         ptw-lseek64.
2434         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
2435         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
2436         Likewise.
2437         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
2438         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
2439         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
2440         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
2441         * sysdeps/unix/sysv/linux/lseek.c: New file.
2442         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
2443         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
2444         __libc_lseek64 from auto-generation.
2445         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
2446         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
2447
2448 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2449
2450         * nptl/tst-basic1.c (tf, do_test): Use write_message.
2451         * nptl/tst-cleanup1.c (do_test): Likewise.
2452         * nptl/tst-cleanup3.c (do_test): Likewise.
2453         * nptl/tst-key1.c (do_test): Likewise.
2454         * nptl/tst-key2.c (tf, do_test): Likewise.
2455         * nptl/tst-key3.c (tf, do_test): Likewise.
2456         * nptl/tst-stdio1.c (do_test): Likewise.
2457         * nptl/tst-stdio2.c (do_test): Likewise.
2458
2459         * nptl/tst-kill3.c (handler): Use write_message in place of write.
2460         * nptl/tst-kill6.c (handler): Likewise.
2461         * nptl/tst-tls2.c (CB): Likewise.
2462         * nptl/tst-tls3.c (CB): Likewise.
2463
2464 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
2465
2466         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
2467
2468 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
2469             Steve Ellcey  <sellcey@caviumnetworks.com>
2470
2471         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
2472           __ASSUME_ST_INO_64_BIT as 0
2473         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
2474         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
2475           over the code where __ASSUME_ST_INO_64_BIT is used.
2476         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2477         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2478         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
2479
2480 2016-11-07  Florian Weimer  <fweimer@redhat.com>
2481
2482         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2483         Document ABI exposure of the __kind offset.
2484         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2485         Mention reason for the __kind offset exposure in the ABI.
2486         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2487         Likewise.
2488         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2489         Likewise.
2490         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2491         Likewise.
2492         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
2493         (struct __pthread_mutex_s): Likewise.
2494         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2495         Likewise.
2496         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2497         Likewise.
2498         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2499         Likewise.
2500         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2501         Likewise.
2502         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2503         Likewise.
2504         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
2505         Likewise.
2506         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
2507         (struct __pthread_mutex_s): Likewise.
2508         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
2509         (struct __pthread_mutex_s): Likewise.
2510         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
2511         Likewise.
2512
2513 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
2514
2515         * test-skeleton.c: Document do_test usage.
2516
2517 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
2518
2519         * iconv/gconv.h (__gconv_info): Define __data element using a
2520         zero-length array.
2521
2522 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
2523
2524         * math/test-tgmath2.c: Split up test function.
2525
2526 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
2527
2528         * Rules (tests-expected): New variable, depending on
2529         $(run-built-tests).
2530         (tests): Pass $(tests-expected) to merge-test-results.sh, not
2531         $(tests).
2532
2533         * Rules [$(run-built-tests) = no] (tests): Do not depend on
2534         $(tests-unsupported).
2535
2536 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2537
2538         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
2539         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
2540
2541 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
2542
2543         [BZ #20768]
2544         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
2545         __fegetenv instead of fegetenv.
2546
2547         [BZ #14139]
2548         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
2549         (find_files): Obtain platform name from libm-test-ulps-name and
2550         store in %pplatforms.
2551         (canonicalize_platform): Remove.
2552         (print_platforms): Use $pplatforms directly.
2553         (by_platforms): Do not allow for platforms missing from
2554         %pplatforms.
2555         * sysdeps/aarch64/libm-test-ulps-name: New file.
2556         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
2557         * sysdeps/arm/libm-test-ulps-name: Likewise.
2558         * sysdeps/generic/libm-test-ulps-name: Likewise.
2559         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
2560         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
2561         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
2562         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
2563         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
2564         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
2565         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
2566         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
2567         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
2568         * sysdeps/nios2/libm-test-ulps-name: Likewise.
2569         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
2570         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
2571         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
2572         * sysdeps/sh/libm-test-ulps-name: Likewise.
2573         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
2574         * sysdeps/tile/libm-test-ulps-name: Likewise.
2575         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
2576
2577         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
2578
2579         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
2580         (test-xfail-check-execstack): New variable.
2581
2582         * sysdeps/mips/localplt.data: New file.
2583
2584 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
2585             Steve Ellcey  <sellcey@caviumnetworks.com>
2586
2587         * bits/wordsize.h: Add documentation.
2588         * sysdeps/aarch64/bits/wordsize.h : New file
2589         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
2590         definitions.
2591         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
2592         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
2593         with #if instead of #ifdef.
2594         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
2595         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
2596         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
2597         Add or change defines.
2598         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
2599         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
2600         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
2601         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
2602         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
2603         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
2604         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
2605         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
2606         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
2607         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
2608         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
2609         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
2610         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
2611         * sysdeps/x86/bits/wordsize.h: Likewise.
2612
2613 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
2614             Kevin Petit  <kevin.petit@arm.com>
2615
2616         * sysdeps/aarch64/memchr.S (__memchr): New file.
2617
2618 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
2619
2620         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
2621
2622 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
2623
2624         [BZ #19398]
2625         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
2626         $(linknamespace-symlists-tests).
2627
2628 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
2629
2630         * time/tst-strptime2.c: Ignore -Wformat-length warning.
2631
2632 2016-11-02  Florian Weimer  <fweimer@redhat.com>
2633             Carlos O'Donell  <carlos@redhat.com>
2634
2635         [Bug #20729]
2636         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
2637         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
2638         for -Os related change.
2639
2640 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
2641
2642         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
2643
2644 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
2645
2646         [BZ #19673]
2647         * manual/math.texi (Exponents and Logarithms): Correct description
2648         of clog10.
2649
2650 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
2651
2652         [Bz #20729]
2653         * locale/weight.h: Include libc-internal.h.
2654         * locale/weightwc.h: Likewise.
2655         * nptl/nptl_dbP.h: Likewise.
2656
2657 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
2658
2659         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
2660         when it is MACH_PORT_NULL.
2661
2662 2016-10-31  Andreas Schwab  <schwab@suse.de>
2663
2664         [BZ #20707]
2665         * posix/glob.c (glob): Initialize pglob before checking for
2666         GLOB_BRACE.  Don't call glob recursively if pattern contains no
2667         valid brace expression despite GLOB_BRACE.
2668         * posix/globtest.sh: Test it.
2669
2670 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
2671
2672         [BZ #20729]
2673         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
2674         Define.
2675         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
2676         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
2677         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
2678         for seq2.back_us and seq1.back_us only for -Os compiles.
2679         * locale/weightwc.h (findix): Likewise.
2680         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
2681         DB_GET_FIELD_ADDRESS only for -Os compiles.
2682         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
2683         for slen only for -Os compiles.
2684         * string/strcoll_l.c (get_next_seq): Ignore
2685         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
2686         for -Os compiles.
2687
2688         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
2689         * include/crypt.h: New file.
2690
2691 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2692
2693         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
2694         from test-skeleton.c.
2695         (statclass): Replace calls to write with calls to write_message.
2696
2697 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
2698
2699         * math/math.h
2700         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
2701         New macro.
2702         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
2703         Likewise.
2704         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
2705         Likewise.
2706         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
2707         SNANL.
2708         * math/test-double.h (snan_value_MACRO): New macro.
2709         * math/test-float.h (snan_value_MACRO): Likewise.
2710         * math/test-ldouble.h (snan_value_MACRO): Likewise.
2711         * math/libm-test.inc (issignaling_test_data): Add tests of
2712         snan_value_MACRO.
2713
2714 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2715
2716         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
2717         behavior when eliding a lock not held by the current thread.
2718         * sysdeps/powerpc/nptl/elide.h: Likewise.
2719
2720 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2721
2722         [BZ #20728]
2723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
2724         branch to _exit() by a function call.
2725
2726 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2727
2728         * malloc/malloc.c: Update chunk layout comments.
2729         (chunk_main_arena): Update comment.
2730
2731 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2732
2733         * crypt/sha256.c, crypt/sha256-block.c,
2734         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
2735         sha256_process_block to __sha256_process_block.
2736         * crypt/sha512.c, crypt/sha512-block.c,
2737         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
2738         sha512_process_block to __sha512_process_block.
2739
2740 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
2741
2742         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
2743
2744         * math/test-nan-overflow.c: Include stdlib.h for malloc.
2745
2746 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
2747
2748         [BZ #20019]
2749         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
2750         definition in unrelocated shared library.
2751         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2752
2753 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2754
2755         [BZ #20729]
2756         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
2757         * sysdeps/unix/sysv/linux/i386/Makefile
2758         (uses-6-syscall-arguments): Define.
2759         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
2760         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
2761         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
2762         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
2763         Likewise.
2764         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
2765         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
2766         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
2767         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
2768         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
2769         (CFLAGS-fallocate64.os): Likewise.
2770         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
2771         (CFLAGS-pthread_rwlock_timedrdlock.os)
2772         (CFLAGS-pthread_rwlock_timedwrlock.o)
2773         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
2774         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
2775         (CFLAGS-sem_timedwait.os): Likewise.
2776
2777 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2778
2779         * elf/tst-linkall-static.c: New file.
2780         * elf/Makefile (tests-static): Add tst-linkall-static.
2781         (tst-linkall-static): Link against static libraries.
2782
2783 2016-10-27  Florian Weimer  <fweimer@redhat.com>
2784
2785         * malloc/malloc.c (sysmalloc): Initialize previous size field of
2786         mmaped chunks.
2787
2788 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2789
2790         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
2791         members to mchunk_prev_size, mchunk_size.
2792         (chunk_main_arena): Reverse sense and rename from
2793         chunk_non_main_arena.
2794         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
2795         mchunk_size instead of size.
2796         (set_non_main_arena): Define.
2797         (chunksize): Use chunksize_nomask instead of direct member access.
2798         (chunksize_nomask): Define.
2799         (next_chunk): Use chunksize instead of direct member access.
2800         (prev_size, set_prev_size): Define.
2801         (prev_chunk): Use prev_size instead of direct member access.
2802         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
2803         (inuse_bit_at_offset, set_inuse_bit_at_offset)
2804         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
2805         (mchunk_prev_size, mchunk_size): Poison tokens.
2806         (unlink): Use chunksize_nomask, prev_size accessors.
2807         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
2808         (do_check_free_chunk): Use prev_size accessor.
2809         (sysmalloc): Use set_prev_size, set_head accessors.
2810         (munmap_chunk, mremap_chunk): Use prev_size accessor.
2811         (__libc_free): Use chunksize_nomask accessor.
2812         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
2813         chunk_main_arena accessors.
2814         (_int_free): Use chunksize_nomask, prev_size accessors.
2815         (malloc_consolidate): Use chunksize, prev_size accessors.
2816         (_int_realloc): Use chunksize_nomask accessor.
2817         (_int_memalign): Use set_prev_size accessor.
2818         (__malloc_info): Use chunksize_nomask accessor.
2819         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
2820         accessors.
2821         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
2822         (heap_trim): Use chunksize_nomask, prev_size accessors.
2823
2824 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
2825
2826         [BZ #19380]
2827         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
2828         for inexact results.
2829         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
2830         of inexact result where mpfr_subnormalize is the only inexact
2831         step.
2832         * stdlib/tst-strtod-round-data.h: Regenerated.
2833         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
2834         Define to 0.
2835         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
2836
2837 2016-10-27  David S. Miller  <davem@davemloft.net>
2838
2839         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
2840
2841 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2842
2843         * malloc/malloc.c (do_set_mallopt_check): New function.
2844         (do_set_mmap_threshold): Likewise.
2845         (do_set_mmaps_max): Likewise.
2846         (do_set_top_pad): Likewise.
2847         (do_set_perturb_byte): Likewise.
2848         (do_set_trim_threshold): Likewise.
2849         (do_set_arena_max): Likewise.
2850         (do_set_arena_test): Likewise.
2851         (__libc_mallopt): Use them.
2852
2853 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
2854
2855         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2856         (canonicalize): New declaration.
2857         * math/Versions (canonicalize): New libm symbol at version
2858         GLIBC_2.25.
2859         (canonicalizef): Likewise.
2860         (canonicalizel): Likewise.
2861         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
2862         * math/s_canonicalize_template.c: New file.
2863         * math/libm-test.inc: Update comment on functions tested and
2864         testing of NaN payloads.
2865         (TEST_NAN_PAYLOAD): New macro.
2866         (NO_TEST_INLINE): Update value.
2867         (XFAIL_TEST): Likewise.
2868         (ERRNO_UNCHANGED): Likewise.
2869         (ERRNO_EDOM): Likewise.
2870         (ERRNO_ERANGE): Likewise.
2871         (IGNORE_RESULT): Likewise.
2872         (NON_FINITE): Likewise.
2873         (TEST_SNAN): Likewise.
2874         (NO_TEST_MATHVEC): Likewise.
2875         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
2876         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
2877         (struct test_Ffp_b1_data): New type.
2878         (RUN_TEST_Ffp_b1): New macro.
2879         (RUN_TEST_LOOP_Ffp_b1): Likewise.
2880         (canonicalize_test_data): New array.
2881         (canonicalize_test): New function.
2882         (main): Call canonicalize_test.
2883         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
2884         canonicalizef and canonicalizel.
2885         * manual/libm-err-tab.pl: Update comment on interfaces without
2886         ulps tabulated.
2887         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
2888         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
2889         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2890         canonicalize.
2891         (CFLAGS-nldbl-canonicalize.c): New variable.
2892         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
2893         to ...
2894         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
2895         ... here.
2896         (do_test): Also test canonicalizel.
2897         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
2898         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
2899         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
2900         file.
2901         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
2902         Use libm_hidden_def.
2903         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
2904         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
2905         (do_test): Also test canonicalizel.
2906         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
2907         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
2908         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
2909         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
2910         libm_hidden_def.
2911         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
2912         macro.
2913         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
2914         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
2915         * sysdeps/nacl/libm.abilist: Update.
2916         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2917         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2918         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2919         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2920         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2921         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2922         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2923         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2924         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2925         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2926         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2927         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2929         Likewise.
2930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2931         Likewise.
2932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2933         Likewise.
2934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2935         Likewise.
2936         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2937         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2938         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2939         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2940         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2941         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2942         Likewise.
2943         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2944         Likewise.
2945         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2946         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2947         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2948
2949         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
2950         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2951         getpayload.
2952         (CFLAGS-nldbl-getpayload.c): New variable.
2953
2954 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2955
2956         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
2957         integer from the format string.
2958
2959 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2960
2961         [BZ #19473]
2962         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
2963         declarations.
2964         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
2965         weak aliases.
2966         * malloc/hooks.c (__malloc_get_state): Remove definition.
2967         (malloc_get_state): New stub implementation as
2968         compatibility symbol.
2969         (malloc_set_state): Rename from __malloc_set_state.  Turn into
2970         compat symbol.
2971         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
2972         malloc_set_state.
2973         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
2974
2975 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2976
2977         * iconvdata/iso646.c (enum variant): Drop illegal_var.
2978         (names): Turn into concatenation of strings.
2979         (gconv_init): Adapt iteration over names.
2980
2981 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2982
2983         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
2984         make const.
2985         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
2986         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
2987         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
2988         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
2989         character in sbconv.
2990         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
2991         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
2992         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
2993
2994 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2995
2996         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
2997
2998         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
2999         (M_TRIM_THRESHOLD): Likewise.
3000
3001         * manual/memory.texi (M_ARENA_TEST): Add documentation.
3002         (M_ARENA_MAX): Likewise.
3003         * malloc/malloc.c: Remove obsolete comment.
3004
3005         * manual/memory.texi: Add environment variable alternatives to
3006         setting mallopt parameters.
3007
3008 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
3009
3010         * include/atomic.h
3011         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
3012         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
3013
3014 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3015
3016         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
3017         * stdlib/tst-strfrom.h: New file.
3018         * stdlib/tst-strfrom.c: New file.
3019         * stdlib/tst-strfrom-locale.c: New file.
3020
3021         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
3022         * stdlib/bug-strtod2.c: Likewise.
3023         * stdlib/tst-strtod-round-skeleton.c: Likewise.
3024         * stdlib/tst-strtod6.c: Likewise.
3025         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
3026
3027 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3028
3029         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
3030         * manual/arith.texi: Document strfromd, strfromf, strfroml.
3031         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
3032         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
3033         * stdlib/stdlib.h (strfromd): New declaration.
3034         (strfromf): Likewise.
3035         (strfroml): Likewise.
3036         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
3037         strfrom.
3038         * stdlib/strfromd.c: New file.
3039         * stdlib/strfromf.c: Likewise.
3040         * stdlib/strfroml.c: Likewise.
3041         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
3042         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
3043         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
3044         * sysdeps/arm/nacl/libc.abilist: Update.
3045         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
3046         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3047         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3048         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3049         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3050         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3051         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3052         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3053         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3054         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3055         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
3056         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3057         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3058         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
3060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
3061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
3062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
3063         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3064         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3065         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3066         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3067         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3068         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
3069         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
3070         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
3071         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3072         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3073
3074 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
3075
3076         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
3077         instead of cmpli.
3078         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
3079         instead of cmpli.
3080
3081 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
3082
3083         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
3084         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
3085         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
3086         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3087         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3088         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3089
3090 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3091
3092         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
3093         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
3094         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
3095         SYSCALL_LL64_PRW.
3096         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
3097         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
3098         __ASSUME_PRW_DUMMY_ARG.
3099         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
3100         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3101         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
3102         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3103         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
3104         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
3105
3106 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
3107
3108         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
3109
3110 2016-10-22  Florian Weimer  <fweimer@redhat.com>
3111
3112         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
3113         "C++", to override a potential extern "C" directive around the
3114         header file inclusion.
3115
3116 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
3117
3118         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
3119
3120 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3121
3122         * sysdeps/powerpc/fpu/fenv_private.h:
3123         (_FPU_MASK_ALL): Rename to...
3124         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
3125         XE FPSCR bits.
3126
3127         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
3128
3129         (_FPU_MASK_ROUNDING): Rename to...
3130         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
3131         NI bits.
3132
3133         (_FPU_MASK_EXCEPT_ROUND): Rename to...
3134         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
3135         bits and rounding bits.
3136
3137         (__libc_feholdbits_ppc): New inline function to mask, set,
3138         and pontentially clear FSPCR bits, and change MSR[FE] bits.
3139         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
3140         (libc_feholdexcept_setround_ppc): Likewise.
3141
3142         (__libc_femergeenv_ppc): New function to dynamically mask both
3143         old and new FP environments and merge.
3144         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
3145         (libc_feresetround_ppc): Likewise.
3146         (libc_feupdateenv_test_ppc): Likewise.
3147         (libc_feupdateenv_ppc): Likewise.
3148
3149         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
3150         of ISA RN bits, and update macro names.
3151         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
3152         effectively the same as the previously mentioned function.
3153
3154         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
3155         usage with fe_resetround_ppc.
3156
3157         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
3158         to be used.
3159         (libc_feholdexcept_setround_ctxf): Likewise.
3160         (libc_feholdexcept_setround_ctxl): Likewise.
3161
3162 2016-10-21  Florian Weimer  <fweimer@redhat.com>
3163
3164         [BZ #20715]
3165         * math/math.h [__cplusplus] (iszero): Define as function template.
3166         * math/Makefile [CXX] (tests): Add test-math-iszero.
3167         (CFLAGS-test-math-iszero.cc): Set.
3168         * math/test-math-iszero.cc: New file.
3169
3170 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
3171
3172         [BZ #20660]
3173         * sysdeps/arm/e_sqrt.c: New file.
3174         * sysdeps/arm/e_sqrtf.c: Likewise.
3175
3176 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
3177
3178         [BZ #20718]
3179         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
3180         not use floating-point comparisons to test sign.
3181         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
3182         Likewise.
3183
3184         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3185         (getpayload): New declaration.
3186         * math/Versions (getpayload): New libm symbol at version
3187         GLIBC_2.25.
3188         (getpayloadf): Likewise.
3189         (getpayloadl): Likewise.
3190         * math/Makefile (libm-calls): Add s_getpayloadF.
3191         * math/libm-test.inc: Include <nan-high-order-bit.h>.
3192         (struct test_f_f_data): Add comment.
3193         (RUN_TEST_fp_f): New macro.
3194         (RUN_TEST_LOOP_fp_f): Likewise.
3195         (getpayload_test_data): New array.
3196         (getpayload_test): New function.
3197         (main): Call getpayload_test.
3198         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
3199         descriptor.
3200         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
3201         getpayloadf and getpayloadl.
3202         * manual/libm-err-tab.pl: Update comment on interfaces without
3203         ulps tabulated.
3204         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
3205         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
3206         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
3207         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
3208         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
3209         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
3210         * sysdeps/nacl/libm.abilist: Update.
3211         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3212         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3213         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3214         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3215         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3216         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3217         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3218         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3219         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3220         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3221         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3222         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3224         Likewise.
3225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3226         Likewise.
3227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3228         Likewise.
3229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3230         Likewise.
3231         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3232         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3233         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3234         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3235         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3236         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3237         Likewise.
3238         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3239         Likewise.
3240         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3241         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3242         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3243
3244 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3245
3246         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
3247         tst-fallocate{64}.
3248         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
3249         on syscall return.
3250
3251 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
3252
3253         [BZ #20689]
3254         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
3255         usable.
3256
3257 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
3258
3259         * sysdeps/generic/nan-high-order-bit.h: New file.
3260         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
3261         * sysdeps/mips/nan-high-order-bit.h: Likewise.
3262         * sysdeps/hppa/math_private.h: Remove file.
3263         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
3264         not define here.
3265         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
3266         <nan-high-order-bit.h>.
3267         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3268         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
3269         <nan-high-order-bit.h>.
3270         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3271         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
3272         <nan-high-order-bit.h>.
3273         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3274         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
3275         <nan-high-order-bit.h>.
3276         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3277         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
3278         <nan-high-order-bit.h>.
3279         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3280         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
3281         <nan-high-order-bit.h>.
3282         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3283         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
3284         <nan-high-order-bit.h>.
3285         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3286         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
3287         <nan-high-order-bit.h>.
3288         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3289         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
3290         <nan-high-order-bit.h>.
3291         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3292         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
3293         <nan-high-order-bit.h>.
3294         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3295         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3296         <nan-high-order-bit.h>.
3297         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3298         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3299         <nan-high-order-bit.h>.
3300         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3301         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
3302         <nan-high-order-bit.h>.
3303         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3304         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
3305         <nan-high-order-bit.h>.
3306         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3307         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
3308         <nan-high-order-bit.h>.
3309         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3310         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
3311         <nan-high-order-bit.h>.
3312         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3313         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3314         <nan-high-order-bit.h>.
3315         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3316         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3317         <nan-high-order-bit.h>.
3318         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
3319
3320 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
3321
3322         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
3323
3324 2016-09-22  John David Anglin  <dave.anglin@bell.net>
3325
3326         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
3327         abort-instr.h.
3328         (EFAULT): Remove conditional define.
3329         (ENOSYS): Likewise.
3330         (atomic_compare_and_exchange_val_acq): Use instruction nullification
3331         instead of conditional branch instructions.
3332
3333 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
3334
3335         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3336         (totalordermag): New declaration.
3337         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
3338         New macro.
3339         * math/Versions (totalordermag): New libm symbol at version
3340         GLIBC_2.25.
3341         (totalordermagf): Likewise.
3342         (totalordermagl): Likewise.
3343         * math/Makefile (libm-calls): Add s_totalordermagF.
3344         * math/libm-test.inc (totalordermag_test_data): New array.
3345         (totalordermag_test): New function.
3346         (main): Call totalordermag_test.
3347         * math/test-tgmath.c (NCALLS): Increase to 125.
3348         (F(compile_test)): Call totalordermag.
3349         (F(totalordermag)): New function.
3350         * manual/arith.texi (FP Comparison Functions): Document
3351         totalordermag, totalordermagf and totalordermagl.
3352         * manual/libm-err-tab.pl: Update comment on interfaces without
3353         ulps tabulated.
3354         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
3355         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
3356         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
3357         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
3358         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
3359         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
3360         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
3361         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
3362         totalordermag.
3363         (CFLAGS-nldbl-totalordermag.c): New variable.
3364         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
3365         (do_test): Also test totalordermagl.
3366         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
3367         Likewise.
3368         * sysdeps/nacl/libm.abilist: Update.
3369         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3370         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3371         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3372         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3373         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3374         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3375         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3376         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3377         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3378         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3379         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3380         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3382         Likewise.
3383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3384         Likewise.
3385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3386         Likewise.
3387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3388         Likewise.
3389         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3390         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3391         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3392         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3393         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3394         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3395         Likewise.
3396         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3397         Likewise.
3398         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3399         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3400         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3401
3402 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
3403
3404         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
3405         boolean.
3406
3407 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
3408
3409         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
3410         raising FE_INVALID with feraisexcept in case where part of
3411         argument is infinite, subtract that part of argument from itself.
3412         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
3413         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
3414         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
3415
3416 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
3417
3418         * math/libm-test.inc (totalorder_test_data): Add more tests.
3419
3420 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
3421
3422         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
3423         Undefine weak_alias and add a comment why mips64 require
3424         versioning.
3425
3426 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3427
3428         [BZ #20647]
3429         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
3430         maximum CPUID level is less than 2.
3431
3432 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
3433
3434         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3435         (totalorder): New declaration.
3436         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
3437         New macro.
3438         * math/Versions (totalorder): New libm symbol at version
3439         GLIBC_2.25.
3440         (totalorderf): Likewise.
3441         (totalorderl): Likewise.
3442         * math/Makefile (libm-calls): Add s_totalorderF.
3443         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
3444         string.
3445         * math/libm-test.inc (PAYLOAD_DIG): New macro.
3446         (qnan_value_pl): Likewise.
3447         (snan_value_pl): Likewise.
3448         (qnan_value): Define using qnan_value_pl.
3449         (snan_value): Define using snan_value_pl.
3450         (struct test_ff_i_data): Add comment about which tests use this
3451         structure.
3452         (RUN_TEST_ff_b): New macro.
3453         (RUN_TEST_LOOP_ff_b): Likewise.
3454         (totalorder_test_data): New array.
3455         (totalorder_test): New function.
3456         (main): Call totalorder_test.
3457         * math/test-tgmath.c (NCALLS): Increase to 122.
3458         (F(compile_test)): Call totalorder.
3459         (F(totalorder)): New function.
3460         * manual/arith.texi (FP Comparison Functions): Document
3461         totalorder, totalorderf and totalorderl.
3462         * manual/libm-err-tab.pl: Update comment on interfaces without
3463         ulps tabulated.
3464         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
3465         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
3466         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
3467         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
3468         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
3469         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
3470         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
3471         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
3472         totalorder.
3473         (CFLAGS-nldbl-totalorder.c): New variable.
3474         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
3475         file.
3476         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
3477         Add test-totalorderl-ldbl-128ibm.
3478         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
3479         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
3480         test-totalorderl-ldbl-96.
3481         * sysdeps/nacl/libm.abilist: Update.
3482         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3483         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3484         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3485         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3486         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3487         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3488         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3489         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3490         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3491         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3492         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3493         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3495         Likewise.
3496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3497         Likewise.
3498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3499         Likewise.
3500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3501         Likewise.
3502         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3503         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3504         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3505         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3506         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3507         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3508         Likewise.
3509         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3510         Likewise.
3511         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3512         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3513         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3514
3515 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3516
3517         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
3518         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
3519         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
3520         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
3521         remove ENOSYS implementation.
3522         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
3523         Consolidate all Linux implementations.
3524
3525 2016-10-11  Florian Weimer  <fweimer@redhat.com>
3526
3527         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
3528         * resolv/herror.c (herror): Cast away const-ness.
3529         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
3530         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
3531
3532 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
3533
3534         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
3535         instead of M_NAN + M_NAN.
3536         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
3537
3538 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3539
3540         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
3541         unused variable 'p'.
3542
3543 2016-10-09  Alan Modra  <amodra@gmail.com>
3544             Andreas Schwab  <schwab@linux-m68k.org>
3545
3546         [BZ #20554]
3547         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
3548         [PIC && !SHARED]: Set up PIC register for PLT call.
3549
3550 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
3551
3552         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
3553         conditional on value of [__FLT_EVAL_METHOD__].
3554         * math/test-iseqsig-excess-precision.c: New file.
3555         * math/Makefile (tests): Add test-iseqsig-excess-precision.
3556
3557 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3558
3559         * math/s_iseqsig_template.c: Include math-private.h.
3560
3561         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
3562         * posix/tst-posix_fadvise.c: New file.
3563         * posix/tst-posix_fadvise64.c: Likewise.
3564         * posix/tst-posix_fadvise-common.c: Likewise.
3565         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3566         (__ASSUME_FADVISE64_64_6ARG): Define.
3567         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3568         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
3569         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3570         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
3571         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
3572         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
3573         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
3574         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
3575         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
3576         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
3577         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
3578         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
3579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
3580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
3581         Likewise.
3582         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
3583         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
3584         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
3585         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
3586         Alias to __posix_fadvise64_l32.
3587         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
3588         Add compat definition to posix_fadvise64.
3589         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
3590         Add versioned definition to posix_fadvise64.
3591         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
3592         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
3593         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
3594         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
3595         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
3596
3597         * io/Makefile (tests): Add tst-posix_fallocate and
3598         tst-posix_fallocate64.
3599         * io/tst-posix_fallocate-common.c: New file.
3600         * io/tst-posix_fallocate.c: Likewise.
3601         * io/tst-posix_fallocate64.c: Likewise.
3602         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
3603         file.
3604         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
3605         Likewise.
3606         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
3607         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
3608         Likewise.
3609         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
3610         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
3611         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
3612         SYSCALL_LL to pass both offset and len arguments.
3613         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
3614         Likewise.
3615         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
3616         __libc_pwrite64 alias used by posix_fallocate64.
3617
3618         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
3619         tst-fallocate64.
3620         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
3621         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
3622         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
3623         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
3624         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
3625         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
3626         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
3627         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3628         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
3629         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
3630         macro on offset argument.
3631         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
3632         SYSCALL_LL64 on offset argument.
3633
3634         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
3635         tst-fallocate64.
3636         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
3637         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
3638         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
3639         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
3640         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
3641         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
3642         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
3643         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3644         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
3645         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
3646         macro on offset argument.
3647         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
3648         SYSCALL_LL64 on offset argument.
3649         * test-skeleton.c (FAIL_RET): Add macro.
3650         (FAIL_EXIT): Likewise.
3651         (FAIL_EXIT1): Likewise.
3652         (_FAIL): Likewise.
3653
3654 2016-10-07  Florian Weimer  <fweimer@redhat.com>
3655
3656         [BZ #20629]
3657         resolv: Remove RES_USEBSTRING and its implementation.
3658         * resolv/resolv.h (RES_USEBSTRING): Remove.
3659         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
3660         (digitvalue, encode_bitstring, decode_bitstring): Remove.
3661         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
3662         (labellen): Remove extended label types support.
3663         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
3664         * resolv/res_init.c (res_setoptions): Likewise.
3665         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
3666
3667 2016-10-07  Florian Weimer  <fweimer@redhat.com>
3668
3669         resolv: Remove RES_NOIP6DOTINT and its implementation.
3670         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
3671         (RES_NOIP6DOTINT): Remove.
3672         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
3673         handling.
3674         * resolv/res_debug.c (p_option): Likewise.
3675         * resolv/res_init.c (res_setoptions): Likewise.
3676         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
3677
3678 2016-10-07  Florian Weimer  <fweimer@redhat.com>
3679
3680         resolv: Deprecate unimplemented flags.
3681         * misc/sys/cdefs.h (__glibc_macro_warning1)
3682         (__glibc_macro_warning): Define.
3683         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
3684         (RES_KEEPTSIG): Mark as deprecated.
3685         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
3686         RES_NOCHECKNAME, RES_KEEPTSIG.
3687         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
3688
3689 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3690
3691         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
3692         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
3693         Use strong_alias to create symbols for glibc verison 2.19.
3694
3695 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3696
3697         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
3698
3699 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3700
3701         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
3702
3703 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3704
3705         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
3706
3707 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3708
3709         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
3710         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
3711         in header for using it as type for ifunc function because __GI_* symbols
3712         for ppc32 do not target the ifunc symbols.
3713         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
3714
3715 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3716
3717         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
3718         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
3719         libc_ifunc_hidden_def.
3720         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
3721         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
3722         Redirect ifunced function in header for using it as type of ifunc'ed
3723         function. Redefine libc_hidden_def to use fallback non ifunc'ed
3724         function for __GI_* symbol.
3725         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
3726         * include/libc-symbols.h
3727         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
3728
3729 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3730
3731         [BZ #20478]
3732         * sysdeps/s390/multiarch/ifunc-resolve.h
3733         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
3734         to create ifunc symbols.
3735         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
3736         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
3737         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
3738         for using it as type for ifunc function.
3739         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
3740         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
3741         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
3742         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
3743         * sysdeps/s390/multiarch/strcat.c: Likewise.
3744         * sysdeps/s390/multiarch/strchr.c: Likewise.
3745         * sysdeps/s390/multiarch/strcmp.c: Likewise.
3746         * sysdeps/s390/multiarch/strcpy.c: Likewise.
3747         * sysdeps/s390/multiarch/strcspn.c: Likewise.
3748         * sysdeps/s390/multiarch/strlen.c: Likewise.
3749         * sysdeps/s390/multiarch/strncmp.c: Likewise.
3750         * sysdeps/s390/multiarch/strncpy.c: Likewise.
3751         * sysdeps/s390/multiarch/strnlen.c: Likewise.
3752         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
3753         * sysdeps/s390/multiarch/strrchr.c: Likewise.
3754         * sysdeps/s390/multiarch/strspn.c: Likewise.
3755         * sysdeps/s390/multiarch/wcschr.c: Likewise.
3756         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
3757         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
3758         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
3759         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
3760         * sysdeps/s390/multiarch/wmemset.c: Likewise.
3761         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
3762         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
3763         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
3764         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
3765         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
3766         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
3767
3768 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3769
3770         * include/libc-symbols.h (__ifunc_resolver):
3771         New macro is used by __ifunc* macros.
3772         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
3773         depending on HAVE_GCC_IFUNC.
3774         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
3775         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
3776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
3777         Redirect ifunced function in header for using as type for ifunc function.
3778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3781         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3782         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
3783         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
3784         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
3785         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
3786         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
3787         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
3788         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
3789         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
3790         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
3791         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
3792         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3794         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3796         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3797         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
3798         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
3799         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
3800         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
3801         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
3802         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
3803         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
3804         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
3805         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
3806         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
3807         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
3808         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
3809         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
3810         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
3811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
3812         Add libc_hidden_def() and use libc_ifunc_hidden() macro
3813         instead of libc_ifunc() macro.
3814         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3815         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
3816
3817 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3818
3819         * config.h.in (HAVE_GCC_IFUNC): New undef.
3820         * configure.ac: Add check if gcc supports attribute ifunc feature.
3821         * configure: Regenerated.
3822         * manual/install.texi: Add recommendation for gcc with
3823         indirect-function support.
3824         * INSTALL: Regenerated.
3825
3826 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
3827
3828         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
3829         macro.
3830         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3831         (__iseqsig): New declaration.
3832         * math/s_iseqsig_template.c: New file.
3833         * math/Versions (__iseqsigf): New libm symbol at version
3834         GLIBC_2.25.
3835         (__iseqsig): Likewise.
3836         (__iseqsigl): Likewise.
3837         * math/libm-test.inc (iseqsig_test_data): New array.
3838         (iseqsig_test): New function.
3839         (main): Call iseqsig_test.
3840         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
3841         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
3842         * manual/libm-err-tab.pl: Update comment on interfaces without
3843         ulps tabulated.
3844         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
3845         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
3846         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
3847         * sysdeps/nacl/libm.abilist: Update.
3848         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3849         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3850         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3851         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3852         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3853         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3854         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3855         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3856         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3857         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3858         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3859         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3861         Likewise.
3862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3863         Likewise.
3864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3865         Likewise.
3866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3867         Likewise.
3868         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3869         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3870         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3871         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3872         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3873         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3874         Likewise.
3875         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3876         Likewise.
3877         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3878         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3879         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3880
3881 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3882
3883         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
3884         do_sincos_2, sloww, sloww1): Update comments.
3885
3886         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
3887         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
3888
3889         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
3890         K boolean and rename it.
3891         (__sin): Adjust.
3892         (__cos): Adjust.
3893
3894 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3895             Siddhesh Poyarekar  <siddhesh@sourceware.org>
3896
3897         * manual/nss.texi: Fix typos in the manual.
3898
3899 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3900
3901         * manual/contrib.texi: Fix typos in the manual.
3902
3903         * manual/maint.texi: Fix typos in the manual.
3904
3905         * manual/install.texi: Fix typos in the manual.
3906         * INSTALL: Regenerated.
3907
3908         * manual/lang.texi: Fix typos in the manual.
3909
3910         * manual/probes.texi: Fix typos in the manual.
3911
3912         * manual/threads.texi: Fix typos in the manual.
3913
3914         * manual/debug.texi: Fix typos in the manual.
3915
3916         * manual/crypt.texi: Fix typos in the manual.
3917
3918         * manual/conf.texi: Fix typos in the manual.
3919
3920         * manual/sysinfo.texi: Fix typos in the manual.
3921
3922         * manual/users.texi: Fix typos in the manual.
3923
3924         * manual/job.texi: Fix typos in the manual.
3925
3926         * manual/process.texi: Fix typos in the manual.
3927
3928         * manual/argp.texi: Fix typos in the manual.
3929         * manual/getopt.texi: Likewise.
3930         * manual/startup.texi: Likewise.
3931
3932         * manual/signal.texi: Fix typos in the manual.
3933
3934         * manual/setjmp.texi: Fix typos in the manual.
3935
3936         * manual/resource.texi: Fix typos in the manual.
3937
3938         * manual/time.texi: Fix typos in the manual.
3939
3940         * manual/arith.texi: Fix typos in the manual.
3941
3942         * manual/math.texi: Fix typos in the manual.
3943
3944         * manual/syslog.texi: Fix typos in the manual.
3945
3946         * manual/terminal.texi: Fix typos in the manual.
3947
3948         * manual/socket.texi: Fix typos in the manual.
3949
3950         * manual/filesys.texi: Fix typos in the manual.
3951
3952         * manual/llio.texi: Fix typos in the manual.
3953
3954         * manual/stdio.text: Fix typos in the manual.
3955
3956 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3957
3958         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
3959         instead of K1.
3960
3961         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
3962         SHIFT_QUADRANT and make it bool.
3963         (do_sincos_2): Likewise.
3964         (sloww): Likewise.
3965         (sloww1): Likewise.
3966         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
3967         (__cos): Likewise.
3968
3969 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3970
3971         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
3972
3973 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
3974
3975         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
3976         Define to __WORDSIZE, not conditional on [LONG_MAX ==
3977         0x7fffffffL].
3978         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3979
3980 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3981
3982         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
3983         inline by __inline__.
3984         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
3985         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
3986         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
3987         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
3988         sigset_t from signal.h.
3989         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
3990         which is already required.
3991
3992 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
3993
3994         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3995
3996 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
3997
3998         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
3999         (struct tcp_repair_window): New type.
4000
4001 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4002
4003         * libio/tst-memstream3.c: Include string.h.
4004
4005 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4006
4007         [BZ #18241]
4008         [BZ #20181]
4009         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
4010         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
4011         write position is at the end the buffer.
4012         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
4013         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
4014         (_IO_str_seekoff): Set correct offset from negative displacement and
4015         set EINVAL for invalid ones.
4016         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
4017         buffer length.
4018         (_IO_wstr_switch_to_get_mode): New function.
4019         (_IO_wstr_seekoff): Set correct offset from negative displacement and
4020         set EINVAL for invalid ones.
4021         * libio/tst-memstream3.c: New file.
4022         * libio/tst-wmemstream3.c: Likewise.
4023         * manual/examples/memstrm.c: Remove warning when priting size_t.
4024
4025 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
4026
4027         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
4028         macro to use __builtin_fma.
4029         * sysdeps/x86_64/fpu/dla.h: Remove file.
4030
4031         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
4032         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
4033         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
4034
4035 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
4036
4037         [BZ #20292]
4038         * elf/Makefile (routines): Add dl-addr-obj.
4039         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
4040         tst-_dl_addr_inside_object.
4041         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
4042         [ifeq (yesyes,$(have-fpie)$(build-shared))]
4043         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
4044         [ifeq (yesyes,$(have-fpie)$(build-shared))]
4045         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
4046         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
4047         * elf/dl-open.c: Likewise.
4048         * elf/dl-addr-obj.c: New file.
4049         * elf/tst-_dl_addr_inside_object.c: New file.
4050
4051 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
4052
4053         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
4054         <bits/iscanonical.h>.
4055         * bits/iscanonical.h: New file.
4056         * math/s_iscanonicall.c: Likewise.
4057         * math/Versions (__iscanonicall): New libm symbol at version
4058         GLIBC_2.25.
4059         * math/libm-test.inc (iscanonical_test_data): New array.
4060         (iscanonical_test): New function.
4061         (main): Call iscanonical_test.
4062         * math/Makefile (headers): Add bits/iscanonical.h.
4063         (type-ldouble-routines): Add s_iscanonicall.
4064         * manual/arith.texi (Floating Point Classes): Document
4065         iscanonical.
4066         * manual/libm-err-tab.pl: Update comment on interfaces without
4067         ulps tabulated.
4068         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
4069         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
4070         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
4071         Likewise.
4072         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4073         test-iscanonical-ldbl-128ibm.
4074         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
4075         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
4076         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
4077         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
4078         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4079         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4080         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4082         Likewise.
4083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4084         Likewise.
4085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4086         Likewise.
4087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4088         Likewise.
4089         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4090         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4091
4092 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4093
4094         * string/bits/string3.h: Remove C++ style comments.
4095
4096 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4097
4098         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
4099         instead of ternary condition.
4100         (do_sincos_2): Likewise.
4101         (__sin): Likewise.
4102         (__cos): Likewise.
4103         (slow): Likewise.
4104         (sloww): Likewise.
4105         (sloww1): Likewise.
4106         (bsloww): Likewise.
4107         (bsloww1): Likewise.
4108
4109         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
4110         instead of ternary condition.
4111         (do_sin_slow): Likewise.
4112         (do_sincos_1): Likewise.
4113         (do_sincos_2): Likewise.
4114         (__cos): Likewise.
4115         (sloww): Likewise.
4116         (sloww1): Likewise.
4117         (sloww2): Likewise.
4118         (bsloww): Likewise.
4119         (bsloww1): Likewise.
4120         (bsloww2): Likewise.
4121
4122         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
4123         check from here...
4124         (slow2): ... and here...
4125         (__sin): ... to here.
4126
4127 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
4128
4129         * math/math.h
4130         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
4131         Cast argument to its own type.
4132         * math/test-iszero-excess-precision.c: New file.
4133         * math/Makefile (tests): Add test-iszero-excess-precision.
4134         (CFLAGS-test-iszero-excess-precision.c): New variable.
4135
4136 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
4137
4138         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
4139         field, add err field.
4140         (__spawni_child): Report error through err member instead of pipe.
4141         (__spawnix): Likewise.
4142
4143 2016-09-28  Zack Weinberg  <zackw@panix.com>
4144
4145         * scripts/check-installed-headers.sh: Generalize treatment of
4146         sys/elf.h to all target architectures.
4147
4148         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
4149         deleted typedef ucontext_t.
4150
4151 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4152
4153         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
4154         (__INTERNAL_SYSCALL1): Likewise.
4155         (__INTERNAL_SYSCALL2): Likewise.
4156         (__INTERNAL_SYSCALL3): Likewise.
4157         (__INTERNAL_SYSCALL4): Likewise.
4158         (__INTERNAL_SYSCALL5): Likewise.
4159         (__INTERNAL_SYSCALL6): Likewise.
4160         (__INTERNAL_SYSCALL7): Likewise.
4161         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
4162         (__INTERNAL_SYSCALL_NARGS): Likewise.
4163         (__INTERNAL_SYSCALL_DISP): Likewise.
4164         (INTERNAL_SYSCALL_CALL): Likewise.
4165         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
4166         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
4167         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
4168         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
4169         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
4170         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
4171         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
4172         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
4173         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
4174         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
4175         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
4176         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
4177         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
4178
4179 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
4180
4181         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
4182         macro.
4183         * math/libm-test.inc (iszero_test_data): New array.
4184         (iszero_test): New function.
4185         (main): Call iszero_test.
4186         * manual/arith.texi (Floating Point Classes): Document iszero.
4187         * manual/libm-err-tab.pl: Update comment on interfaces without
4188         ulps tabulated.
4189
4190 2016-09-23  Zack Weinberg  <zackw@panix.com>
4191
4192         * scripts/check-installed-headers.sh: New script.
4193         * Rules: In each directory that defines header files to be installed,
4194         run check-installed-headers.sh on them as a special test.
4195         * Makefile: Likewise for the headers installed at top level.
4196
4197         * include/aliases.h, include/alloca.h, include/argz.h
4198         * include/arpa/nameser.h, include/arpa/nameser_compat.h
4199         * include/elf.h, include/envz.h, include/err.h
4200         * include/execinfo.h, include/fpu_control.h, include/getopt.h
4201         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
4202         * include/link.h, include/malloc.h, include/mcheck.h
4203         * include/mntent.h, include/netinet/ether.h
4204         * include/nss.h, include/obstack.h, include/printf.h
4205         * include/pty.h, include/resolv.h, include/rpc/auth.h
4206         * include/rpc/auth_des.h, include/rpc/auth_unix.h
4207         * include/rpc/clnt.h, include/rpc/des_crypt.h
4208         * include/rpc/key_prot.h, include/rpc/netdb.h
4209         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
4210         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
4211         * include/rpc/rpc_msg.h, include/rpc/svc.h
4212         * include/rpc/svc_auth.h, include/rpc/xdr.h
4213         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
4214         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
4215         * include/rpcsvc/ypupd.h, include/shadow.h
4216         * include/stdio_ext.h, include/sys/epoll.h
4217         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
4218         * include/sys/prctl.h, include/sys/profil.h
4219         * include/sys/statfs.h, include/sys/sysctl.h
4220         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
4221         * sysdeps/arm/nacl/include/bits/setjmp.h
4222         * sysdeps/mips/include/sys/asm.h
4223         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
4224         * sysdeps/unix/sysv/linux/include/sys/timex.h
4225         * sysdeps/x86/fpu/include/bits/fenv.h:
4226         Add #ifndef _ISOMAC guard around internal declarations.
4227         Add multiple-inclusion guard if not already present.
4228
4229 2016-09-23  Zack Weinberg  <zackw@panix.com>
4230
4231         * sysdeps/generic/sys/ucontext.h
4232         * sysdeps/arm/sys/ucontext.h
4233         * sysdeps/i386/sys/ucontext.h
4234         * sysdeps/m68k/sys/ucontext.h
4235         * sysdeps/mips/sys/ucontext.h
4236         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
4237         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
4238         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
4239         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
4240         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
4241         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
4242         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
4243         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
4244         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
4245         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
4246         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
4247         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
4248         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
4249         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
4250         Include both bits/sigcontext.h and bits/sigstack.h.
4251         Fix grammar error in comment, if present.
4252
4253         * bits/sigstack.h
4254         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
4255         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
4256         * sysdeps/unix/sysv/linux/bits/sigstack.h
4257         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
4258         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
4259         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
4260         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
4261         * bits/sigcontext.h
4262         * sysdeps/mach/hurd/i386/bits/sigcontext.h
4263         * sysdeps/unix/sysv/linux/bits/sigcontext.h
4264         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
4265         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
4266         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
4267         as well as signal.h, if this was not already allowed.  Request
4268         definition of size_t if necessary.  Minimize semantically-null
4269         differences across files.
4270
4271 2016-09-23  Zack Weinberg  <zackw@panix.com>
4272
4273         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
4274         Remove all logic conditional on __need macros.  Move all the
4275         conditionally defined types to their own headers...
4276         * time/bits/types/clock_t.h: Define clock_t here.
4277         * time/bits/types/clockid_t.h: Define clockid_t here.
4278         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
4279         * time/bits/types/struct_timespec.h: Define struct timespec here.
4280         * time/bits/types/struct_timeval.h: Define struct timeval here.
4281         * time/bits/types/struct_tm.h: Define struct tm here.
4282         * time/bits/types/time_t.h: Define time_t here.
4283         * time/bits/types/timer_t.h: Define timer_t here.
4284         * time/Makefile: Install the new headers.
4285
4286         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
4287         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
4288         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
4289         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
4290         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
4291         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
4292         * sysdeps/unix/sysv/linux/bits/resource.h
4293         * sysdeps/unix/sysv/linux/bits/timex.h
4294         * sysdeps/unix/sysv/linux/mips/bits/resource.h
4295         * sysdeps/unix/sysv/linux/net/ppp_defs.h
4296         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
4297         * sysdeps/unix/sysv/linux/sys/acct.h
4298         * sysdeps/unix/sysv/linux/sys/timerfd.h
4299         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
4300         * time/sys/time.h, time/sys/timeb.h
4301         Use the new bits/types headers.
4302
4303         * include/time.h: Remove __need logic.
4304         * include/bits/time.h
4305         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
4306         * include/bits/types/time_t.h, include/bits/types/timer_t.h
4307         * include/bits/types/struct_itimerspec.h
4308         * include/bits/types/struct_timespec.h
4309         * include/bits/types/struct_timeval.h
4310         * include/bits/types/struct_tm.h:
4311         New wrapper headers.
4312
4313 2016-09-23  Zack Weinberg  <zackw@panix.com>
4314
4315         * sysdeps/mach/hurd/net/if_ppp.h
4316         * sysdeps/unix/sysv/linux/net/if_ppp.h:
4317         Only define struct ifpppstatsreq and struct ifpppcstatsreq
4318         if __USE_MISC is defined, to ensure struct ifreq is declared.
4319
4320         * inet/netinet/ether.h: Condition all function prototypes
4321         on __USE_MISC, to ensure struct ether_addr is declared.
4322
4323         * socket/bits/types/struct_osockaddr.h: New header.
4324         * include/bits/types/struct_osockaddr.h: New wrapper.
4325         * socket/Makefile: Install the new header.
4326         * socket/sys/socket.h, inet/protocols/talkd.h:
4327         Refer to bits/types/struct_osockaddr.h for the definition of
4328         struct osockaddr.
4329
4330 2016-09-23  Zack Weinberg  <zackw@panix.com>
4331
4332         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
4333         * inet/protocols/routed.h, inet/protocols/talkd.h
4334         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
4335         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
4336         * sysdeps/generic/netinet/if_ether.h
4337         * sysdeps/generic/netinet/in_systm.h
4338         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
4339         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
4340         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
4341         * sysdeps/mach/hurd/net/if_arp.h
4342         * sysdeps/mach/hurd/net/if_ppp.h
4343         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
4344         * sysdeps/unix/sysv/linux/bits/in.h
4345         * sysdeps/unix/sysv/linux/net/ethernet.h
4346         * sysdeps/unix/sysv/linux/net/if_arp.h
4347         * sysdeps/unix/sysv/linux/net/if_ppp.h
4348         * sysdeps/unix/sysv/linux/net/if_shaper.h
4349         * sysdeps/unix/sysv/linux/net/route.h
4350         * sysdeps/unix/sysv/linux/netinet/if_ether.h
4351         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
4352         * sysdeps/unix/sysv/linux/netinet/if_tr.h
4353         * sysdeps/unix/sysv/linux/netipx/ipx.h
4354         * sysdeps/unix/sysv/linux/sys/acct.h
4355         * include/arpa/nameser.h, include/resolv.h:
4356         Change all uses of u_char to unsigned char,
4357         u_short and ushort to unsigned short, u_int and uint to unsigned int,
4358         u_long and ulong to unsigned long, u_int8_t to uint8_t,
4359         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
4360         and u_int64_t and u_quad_t to uint64_t.
4361
4362         * mach/sys/reboot.h: Remove two casts of integer literals
4363         to the types they already have.
4364
4365         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
4366         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4367         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
4368         from referring to 'unsigned char' to 'uint8_t' for consistency with
4369         the macro definition below.
4370
4371         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
4372         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
4373         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
4374         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
4375         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
4376         * sysdeps/unix/sysv/linux/sys/acct.h
4377         * include/arpa/nameser.h, include/resolv.h:
4378         Fix indentation disrupted by mechanical edits.
4379
4380         * inet/protocols/talkd.h, resolv/arpa/nameser.h
4381         * sysdeps/generic/netinet/in_systm.h
4382         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
4383         * sysdeps/gnu/netinet/udp.h
4384         * sysdeps/unix/sysv/linux/net/ethernet.h
4385         * sysdeps/unix/sysv/linux/net/if_arp.h
4386         * sysdeps/unix/sysv/linux/net/if_ppp.h
4387         * sysdeps/unix/sysv/linux/net/if_shaper.h
4388         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
4389         * sysdeps/unix/sysv/linux/netinet/if_tr.h
4390         * sysdeps/unix/sysv/linux/netipx/ipx.h
4391         * sysdeps/unix/sysv/linux/sys/acct.h
4392         Include stdint.h for uintNN_t definitions.
4393         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
4394
4395 2016-09-23  Zack Weinberg  <zackw@panix.com>
4396
4397         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
4398         * sysdeps/unix/sysv/linux/netrose/rose.h:
4399         Include sys/socket.h and netax25/ax25.h.
4400
4401         * inet/netinet/icmp6.h, inet/netinet/ip6.h
4402         * resolv/arpa/nameser_compat.h:
4403         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
4404
4405         * sysdeps/unix/sysv/linux/sys/quota.h:
4406         Use __caddr_t instead of caddr_t.
4407         * sysdeps/unix/sysv/linux/sys/timerfd.h:
4408         Use __clockid_t instead of clockid_t.
4409
4410         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
4411
4412         * argp/argp.h: Check whether _LIBC is defined before expanding it.
4413         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
4414         expanding it.
4415
4416         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
4417         Define __glibc_c99_flexarr_available to 1 when the compiler
4418         supports C99-compatible flexible array members, 0 otherwise.
4419         * sysdeps/unix/sysv/linux/bits/socket.h
4420         * sysdeps/mach/hurd/bits/socket.h
4421         * bits/socket.h: Use __glibc_c99_flexarr_available in
4422         definitions of struct cmsghdr and CMSG_DATA.
4423
4424 2016-09-23  Florian Weimer  <fweimer@redhat.com>
4425
4426         * manual/nss.texi (NSS Modules Interface): Adjust function return
4427         type to enum nss_status.  Document errnop argument.  Clarify
4428         h_errnop semantics.  Fix cross-reference formatting.
4429         (NSS Module Function Internals): Mention that *errnop needs to be
4430         set on failure, but not to zero.
4431
4432 2016-09-23  Florian Weimer  <fweimer@redhat.com>
4433
4434         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
4435         (get_random_name): New functions.
4436         (check_wrapper_flags_mode): Use linkat to give the new file a name
4437         determined by get_random_name.
4438         (do_test): Add calls to test open64 and openat64.
4439
4440 2016-09-23  Florian Weimer  <fweimer@redhat.com>
4441
4442         * test-skeleton.c: Remove #include <stdarg.h>.
4443
4444 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
4445
4446         [BZ #19826]
4447         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
4448         initialization of static TLS entries.
4449         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
4450         * nptl/allocatestack.c (init_one_static_tls): Likewise.
4451
4452 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4453
4454         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
4455         _hurd_malloc_fork_prepare.
4456         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
4457         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
4458         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
4459         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
4460         (_hurd_fork_child_hook): Drop malloc_fork_child.
4461         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
4462         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
4463         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
4464         after locking locks (notably hurd_dtable_lock). Call
4465         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
4466         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
4467         __malloc_fork_unlock_child.
4468         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
4469
4470 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
4471
4472         * soft-fp/extendhftf2.c: New.
4473         * soft-fp/fixhfti.c: Likewise.
4474         * soft-fp/fixunshfti.c: Likewise.
4475         * soft-fp/floattihf.c: Likewise.
4476         * soft-fp/floatuntihf.c: Likewise.
4477         * soft-fp/half.h: Likewise.
4478         * soft-fp/trunctfhf2.c: Likewise.
4479
4480 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
4481
4482         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
4483         macro.
4484         * math/libm-test.inc (issubnormal_test_data): New array.
4485         (issubnormal_test): New function.
4486         * manual/arith.texi (Floating Point Classes): Document
4487         issubnormal.
4488         * manual/libm-err-tab.pl: Update comment on interfaces without
4489         ulps tabulated.
4490
4491         * sysdeps/generic/stdint.h: Define
4492         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
4493         <bits/libc-header-start.h> instead of including <features.h>.
4494         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
4495         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
4496         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
4497         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
4498         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
4499         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
4500         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
4501         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
4502         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
4503         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
4504         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
4505         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
4506         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
4507         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
4508         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
4509         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
4510         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
4511         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
4512         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
4513         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
4514         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
4515         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
4516         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
4517         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
4518         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
4519         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
4520         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
4521         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
4522         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
4523         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
4524         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
4525         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
4526         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
4527         * manual/arith.texi (Integers): Document these macros for types
4528         specified by width properties.
4529         * manual/lang.texi (Width of Type): Document these macros for
4530         other standard typedefs.
4531         * stdlib/tst-width-stdint.c: New file.
4532         * stdlib/Makefile (tests): Add tst-width-stdint.
4533
4534 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4535
4536         [BZ #20016]
4537         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
4538         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
4539         Move ...
4540         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
4541         ... here, as compatibility symbols in a new file.
4542         * resolv/Makefile (libresolv-routines): Add compat-hooks.
4543         * resolv/res_init.c (__res_vinit): Adjust member names.
4544         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
4545         * resolv/resolv.h (res_sendhookact, res_send_qhook)
4546         (res_send_rhook): Remove.
4547         (struct __res_state): Rename qhook, rhook members.
4548
4549 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4550
4551         malloc: Use __libc_lock wrappers.
4552         * malloc/arena.c (list_lock, free_list_lock): Define using
4553         __libc_lock_define_initialized.
4554         (arena_lock): Adjust formatting.
4555         * malloc/malloc.c (struct malloc_state): Define mutex using
4556         __libc_lock_define.
4557         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
4558         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
4559         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
4560         (mutex_unlock, mutex_trylock): Remove.
4561         (__pthread_initialize): Remove unused macro.
4562         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
4563         (mutex_unlock, mutex_trylock): Remove.
4564
4565 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4566
4567         [BZ #20592]
4568         Remove RR type classification macros.
4569         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
4570         (ns_t_udp_p, ns_t_xfr_p): Remove.
4571
4572 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4573
4574         Remove misleading version information.
4575         * resolv/arpa/nameser.h (__NAMESER): Remove.
4576         * resolv/arpa/nameser_compat.h (__BIND): Remove.
4577
4578 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4579
4580         Remove the always-defined BIND_4_COMPAT macro.
4581         * resolv/arpa/nameser.h: Unconditionally include
4582         <arpa/nameser_compat.h>.
4583         (BIND_4_COMPAT): Remove.
4584         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
4585
4586 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4587
4588         [BZ #20591]
4589         Remove obsolete DNSSEC support.
4590         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
4591         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
4592         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
4593         (ns_verify_tcp, ns_verify_tcp_init): Remove.
4594         (ns_cert_types): Add comment.
4595         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
4596         separately.
4597         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
4598         (dst_s_dns_key_id): Remove.
4599         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
4600         variables.
4601
4602 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4603
4604         [BZ #20524]
4605         * manual/string.texi (String/Array Comparison): Clarify the
4606         strverscmp behavior.
4607
4608 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4609
4610         * test-skeleton.c (xasprintf): Add function.
4611         * io/tst-open-tmpfile.c: New test.
4612         * io/Makefile (tests): Add it.
4613
4614 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4615
4616         Avoid running $(CXX) during build to obtain header file paths.
4617         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
4618         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
4619         * Makerules (cstdlib, cmath): Remove variables.  Use
4620         $(c++-cstdlib-header), $(c++-cmath-header) instead.
4621         * configure: Regenerate.
4622
4623 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4624
4625         * Makeconfig (all-object-suffixes): Include .op only if
4626         $(build-profile).
4627
4628 2016-09-21  Florian Weimer  <fweimer@redhat.com>
4629
4630         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
4631         conditionals.  Do not define PATH_MAX.
4632
4633 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4634
4635         * posix/Makefile (tests): Add tst-spawn3.
4636         * posix/tst-spawn3.c: New file.
4637         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
4638         if it is already opened for open action.
4639
4640         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
4641         all signals when executing the clone vfork child.
4642         (SIGALL_SET): Remove macro.
4643
4644         * nptl/Makefile (tests): Add tst-exec5.
4645         * nptl/tst-exec5.c: New file.
4646         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
4647         asynchronous cancellation.
4648
4649 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4650
4651         * hurd/exc2signal.c: #include <hurd/signal.h>
4652         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
4653         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
4654         accordingly.
4655         * mach/mach_error.c (mach_error): Fix old-style function definition.
4656         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
4657
4658 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4659
4660         * math/Makefile (libm-calls): Remove s_nanF.
4661         (gen-libm-calls): Add s_nanF.
4662
4663         * math/s_nan.c: Refactor into ...
4664         * math/s_nan_template.c: New file.
4665
4666         * math/s_nanf.c: Removed.
4667         * math/s_nanl.c: Removed.
4668         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
4669         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
4670
4671         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4672         (LDOUBLE_nanl_libm_version): New macro.
4673
4674         * sysdeps/generic/math-type-macros-double.h:
4675         (M_STRTO_NAN): New macro.
4676         * sysdeps/generic/math-type-macros-float.h: Likewise.
4677         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
4678
4679         * sysdeps/generic/math-type-macros.h: Document
4680         M_STRTO_NAN.
4681
4682 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4683
4684         * math/s_nanf.c: Remove __nanf undef.
4685         * math/s_nan.c: Remove __nan undef.
4686         * math/s_nanl.c: Remove __nanl undef.
4687
4688         * sysdeps/generic/math_private.h (__nan): Remove macro
4689         override.
4690         (__nanf): Likewise.
4691         (__nanl): Likewise.
4692
4693 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4694
4695         * math/Makefile (gen-all-calls): New variable.
4696         (generated): Replace gen-libm-calls with gen-all-calls.
4697         (gen-libm-templates.stmp): Likewise.  Also, ensure
4698         the output directory exists or is created and add
4699         dependency on the Makefile.
4700         (calls): Move s_ldexpF into gen-calls.
4701         (gen-calls): New variable.
4702
4703         * math/s_ldexpf.c: Removed.
4704         * math/s_ldexpl.c: Removed.
4705         * math/s_ldexp.c: Refactored into ...
4706         * math/s_ldexp_template.c: New file.
4707
4708         * sysdeps/generic/math-type-macros-double.h: Remove
4709         redundant fall-through definition of declare_mgen_alias.
4710         (declare_mgen_alias_2): New macro.
4711
4712         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
4713         New macro for function aliased to two exported symbols.
4714
4715         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
4716         new template file.
4717         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
4718
4719 2016-09-20  Florian Weimer  <fweimer@redhat.com>
4720
4721         * Makeconfig (all-object-suffixes): Remove .og.
4722         * Makerules (elide-routines.og): Remove.
4723         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
4724         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
4725         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
4726
4727 2016-09-20  Florian Weimer  <fweimer@redhat.com>
4728
4729         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
4730         .os objects.
4731
4732 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4733
4734         [BZ #20615]
4735         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
4736         fpu directory by non-fpu.
4737         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
4738         on non-fpu directory from a fpu directory.
4739
4740 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
4741
4742         * include/limits.h: Define
4743         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
4744         <bits/libc-header-start.h> instead of including <features.h>.
4745         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
4746         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
4747         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
4748         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
4749         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
4750         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
4751         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
4752         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
4753         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
4754         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
4755         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
4756         * manual/lang.texi (Width of Type): Document these macros.
4757         * stdlib/tst-width.c: New file.
4758         * stdlib/Makefile (tests): Add tst-width.
4759
4760 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4761
4762         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
4763         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
4764
4765 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4766
4767         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
4768         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
4769         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
4770
4771 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4772
4773         [BZ #18243]
4774         * rt/Makefile (test): Add tst-shm-cancel.
4775         * rt/tst-shm-cancel.c: New file.
4776         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
4777
4778         [BZ #18243]
4779         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
4780         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
4781         definition.
4782         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
4783         uncontended case.
4784         * nptl/sem_wait.c (__new_sem_wait): Likewise.
4785         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
4786         (tf): Fix check for uncontended case.
4787         (do_test): Likewise.
4788         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
4789         (tf): Fix check for uncontended case.
4790         (do_test): Likewise.
4791         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
4792         (tf): Fix check for uncontended case.
4793         (do_test): Likewise.
4794         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
4795         (tf): Fix check for uncontended case.
4796         (do_test): Likewise.
4797
4798         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
4799         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
4800
4801         [BZ #15765]
4802         * nptl/Makefile (tests): Add tst-sem16.
4803         * nptl/tst-sem16.c: New file.
4804         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
4805
4806         * nptl/sem_open.c (sem_open): Init pad value to 0.
4807         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
4808         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
4809
4810 2016-09-15  Florian Weimer  <fweimer@redhat.com>
4811
4812         [BZ #20611]
4813         * inet/Makefile (routines): Add inet6_scopeid_pton.
4814         (tests): Add tst-inet6_scopeid_pton.
4815         * inet/inet6_scopeid_pton.c: New file.
4816         * inet/net-internal.h: Likewise.
4817         * inet/tst-inet6_scopeid_pton.c: New test.
4818         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
4819         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
4820         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4821
4822 2016-09-14  Florian Weimer  <fweimer@redhat.com>
4823
4824         Remove support for compiling wrappers with PTW.
4825         * sysdeps/nptl/Makeconfig: Drop ptw- support.
4826         * nptl/Makefile (pthread-compat-wrappers): Define.
4827         (libpthread-routines): Use pthread-compat-wrappers.
4828         * sysdeps/unix/sysv/linux/alpha/Makefile
4829         (libpthread-routines, libpthread-shared-only-routines): Remove
4830         ptw- prefix.
4831         * sysdeps/s390/nptl/Makefile
4832         (libpthread-routines, libpthread-shared-only-routines): Likewise.
4833         * sysdeps/ia64/nptl/Makefile
4834         (libpthread-routines, libpthread-shared-only-routines): Likewise.
4835         * sysdeps/nacl/Makefile (libpthread-routines): Use
4836         pthread-compat-wrappers to filter the routines list instead of the
4837         ptw- prefix.
4838
4839 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4840
4841         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
4842         with L() and remove explicit suffix, convert real literals
4843         which can be equivalentally substituted with integers, and
4844         transform -L(x) to L(-x).
4845
4846         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4847         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4848         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4849         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4850         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4851         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4852         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4853         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4854         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4855         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4856         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4857         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4858         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4859         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4860         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4861         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4862         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4863         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4864         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4865         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4866         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4867         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4868         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4869         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4870         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4871         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4872         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4873         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4874         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4875         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4876         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4877         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4878         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4879         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4880         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4881         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4882         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4883         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4884         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4885         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4886         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4887         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4888         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4889         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4890         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4891         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4892         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4893         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4894         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4895         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4896
4897 2016-09-13  Florian Weimer  <fweimer@redhat.com>
4898
4899         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
4900
4901 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4902
4903         * malloc/Makefile (tests): Remove individual static test names
4904         and just add all of tests-static.
4905
4906         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
4907
4908 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
4909
4910         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
4911         file.
4912
4913         * sysdeps/sparc/fpu/fegetmode.c: New file.
4914         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
4915
4916         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
4917         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
4918
4919         * sysdeps/s390/fpu/fegetmode.c: New file.
4920         * sysdeps/s390/fpu/fesetmode.c: Likewise.
4921
4922         * sysdeps/powerpc/fpu/fegetmode.c: New file.
4923         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
4924         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
4925         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
4926         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
4927         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
4928
4929         * sysdeps/mips/fpu/fegetmode.c: New file.
4930         * sysdeps/mips/fpu/fesetmode.c: Likewise.
4931
4932         * sysdeps/m68k/fpu/fegetmode.c: New file.
4933         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
4934
4935         * sysdeps/ia64/fpu/fegetmode.c: New file.
4936         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
4937
4938         * sysdeps/hppa/fpu/fegetmode.c: New file.
4939         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
4940
4941         * sysdeps/arm/fegetmode.c: New file.
4942         * sysdeps/arm/fesetmode.c: Likewise.
4943
4944         * sysdeps/alpha/fpu/fegetmode.c: New file.
4945         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
4946
4947         * sysdeps/aarch64/fpu/fegetmode.c: New file.
4948         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
4949
4950         * math/fegetmode.c: New file.
4951         * math/fesetmode.c: Likewise.
4952         * sysdeps/i386/fpu/fegetmode.c: Likewise.
4953         * sysdeps/i386/fpu/fesetmode.c: Likewise.
4954         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
4955         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
4956         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
4957         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
4958         declaration.
4959         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
4960         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
4961         typedef.
4962         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4963         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4964         (femode_t): New typedef.
4965         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4966         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4967         (femode_t): New typedef.
4968         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4969         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4970         (femode_t): New typedef.
4971         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4972         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4973         (femode_t): New typedef.
4974         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4975         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4976         (femode_t): New typedef.
4977         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4978         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4979         (femode_t): New typedef.
4980         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4981         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4982         (femode_t): New typedef.
4983         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4984         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4985         (femode_t): New typedef.
4986         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4987         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4988         (femode_t): New typedef.
4989         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4990         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4991         (femode_t): New typedef.
4992         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
4993         declaration.
4994         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4995         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4996         (femode_t): New typedef.
4997         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4998         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4999         (femode_t): New typedef.
5000         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
5001         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
5002         (femode_t): New typedef.
5003         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
5004         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
5005         (femode_t): New typedef.
5006         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
5007         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
5008         (femode_t): New typedef.
5009         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
5010         * manual/arith.texi (FE_DFL_MODE): Document macro.
5011         (fegetmode): Document function.
5012         (fesetmode): Likewise.
5013         * math/Versions (fegetmode): New libm symbol at version
5014         GLIBC_2.25.
5015         (fesetmode): Likewise.
5016         * math/Makefile (libm-support): Add fegetmode and fesetmode.
5017         (tests): Add test-femode and test-femode-traps.
5018         * math/test-femode-traps.c: New file.
5019         * math/test-femode.c: Likewise.
5020         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
5021         alias for __fe_dfl_env.
5022         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
5023         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
5024         (__fe_dfl_mode): Likewise.
5025         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
5026         version GLIBC_2.25.
5027         * sysdeps/nacl/libm.abilist: Update.
5028         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5029         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5030         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5031         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5032         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5033         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5034         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5035         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5036         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5037         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5038         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5039         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5041         Likewise.
5042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5043         Likewise.
5044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5045         Likewise.
5046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5047         Likewise.
5048         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5049         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5050         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5051         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5052         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5053         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5054         Likewise.
5055         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5056         Likewise.
5057         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5058         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5059         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5060
5061 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5062
5063         [BZ #20495]
5064         [BZ #20508]
5065         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
5066         processors, set Use_dl_runtime_resolve_slow and set
5067         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
5068         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
5069         New.
5070         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
5071         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
5072         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
5073         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
5074         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
5075         if Use_dl_runtime_resolve_opt is set.  Use
5076         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
5077         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
5078         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
5079         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
5080         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
5081         New.
5082         (_dl_runtime_resolve_opt): Likewise.
5083         (_dl_runtime_profile): Define only if _dl_runtime_profile is
5084         defined.
5085
5086 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
5087
5088         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
5089         __libc_memalign with "+ RELA R_390_GLOB_DAT".
5090
5091 2016-09-06  Florian Weimer  <fweimer@redhat.com>
5092
5093         Convert malloc to __libc_lock.  Automated part, using this Perl
5094         s/// command:
5095           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
5096             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
5097         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
5098         conversion.
5099
5100 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
5101
5102         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
5103         (linknamespace-symlists-tests): Likewise.
5104         (linknamespace-header-tests): Likewise.
5105
5106 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
5107
5108         [BZ #19810]
5109         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
5110         * elf/tst-noload.c: New test case.
5111         * elf/Makefile (tests): Add tst-noload.
5112
5113 2016-09-02  Roland McGrath  <roland@hack.frob.com>
5114
5115         * sysdeps/nacl/dup.c: Add libc_hidden_def.
5116
5117         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
5118         not any more.
5119
5120         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
5121
5122 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5123
5124         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
5125         (do_cos_slow): Likewise.
5126         (do_sin): Likewise.
5127         (do_sin_slow): Likewise.
5128         (slow): Likewise.
5129         (slow1): Likewise.
5130         (slow2): Likewise.
5131         (sloww): Likewise.
5132         (sloww1): Likewise.
5133         (sloww2): Likewise.
5134         (bsloww): Likewise.
5135         (bsloww1): Likewise.
5136         (bsloww2): Likewise.
5137         (cslow2): Likewise.
5138
5139         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
5140
5141         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
5142         arguments.  Consolidate input partitioning from callers here.
5143         (do_cos_slow): Likewise.
5144         (do_sin): Likewise.
5145         (do_sin_slow): Likewise.
5146         (do_sincos_1): Remove the no longer necessary input partitioning.
5147         (do_sincos_2): Likewise.
5148         (__sin): Likewise.
5149         (__cos): Likewise.
5150         (slow1): Likewise.
5151         (slow2): Likewise.
5152         (sloww1): Likewise.
5153         (sloww2): Likewise.
5154         (bsloww1): Likewise.
5155         (bsloww2): Likewise.
5156         (cslow2): Likewise.
5157
5158 2016-09-02  Florian Weimer  <fweimer@redhat.com>
5159
5160         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
5161         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
5162         outside of allocated array.
5163
5164 2016-09-02  Florian Weimer  <fweimer@redhat.com>
5165
5166         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
5167         instead of MB_CUR_MAX to avoid variable-length array.
5168
5169 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5170
5171         * math/Makefile (libm-calls): Remove k_rem_pio2F.
5172         (type-double-routines): Add k_rem_pio2.
5173         (type-float-routines): Add k_rem_pio2f.
5174
5175         * sysdeps/generic/math_private.h:
5176         (__kernel_rem_pio2l): Removed.
5177
5178         * math/k_rem_pio2l.c: Removed.
5179         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
5180         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
5181         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
5182         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
5183
5184 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5185
5186         * math/Makefile (gen-libm-calls): Add s_fmin
5187         (libm-calls): Remove above.
5188
5189         * math/s_fmin.c: Refactor into ...
5190         * math/s_fmin_template.c: New file.
5191
5192         * math/s_fminf.c: Removed.
5193         * math/s_fminl.c: Removed.
5194         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
5195         (LDOUBLE_fmin_libm_version): New macro.
5196
5197         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
5198         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
5199
5200 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5201
5202         * math/Makefile: (gen-libm-calls): Add s_fmax.
5203         (libm-calls): Remove above.
5204
5205         * math/s_fmax.c: Refactor into ...
5206         * math/s_fmax_template.c: New file.
5207         * math/s_fmaxf.c: Removed.
5208         * math/s_fmaxl.c: Removed.
5209
5210         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
5211         (LDOUBLE_fmaxl_libm_version): New macro.
5212
5213         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
5214         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
5215
5216         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
5217         s_fmin.c to pick the aarch64 version of the file.
5218         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
5219         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
5220
5221 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5222
5223         * math/Makefile: (gen-libm-calls): Add s_nextdown.
5224         (libm-calls): Remove above.
5225
5226         * math/s_nextdown.c: Refactor into ...
5227         * math/s_nextdown_template.c: New file.
5228         * math/s_nextdownf.c: Removed.
5229         * math/s_nextdownl.c: Removed.
5230
5231         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
5232
5233 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5234
5235         * math/Makefile (gen-libm-calls): Add s_fdim.
5236         (libm-calls): Move to above.
5237
5238         * math/s_fdim.c: Renamed and refactored into to ...
5239         * math/s_fdim_template.c: New file.
5240         * math/s_fdiml.c: Removed.
5241         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
5242         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
5243
5244         * sysdeps/generic/math-type-macros-double.h:
5245         (declare_mgen_alias): Don't declare if already declared.
5246         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
5247         Likewise.
5248
5249         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
5250         (declare_mgen_alias): Don't declare if already declared.
5251         (M_LIBM_NEED_COMPAT): Likewise.
5252         (declare_mgen_libm_compat): Likewise.
5253         (LDOUBLE_fdiml_libm_version): New macro.
5254
5255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
5256         Include math/s_fdim.c now that ldbl-opt version is not needed.
5257         (declare_mgen_alias): New macro to disable aliasing.
5258
5259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
5260         (declare_mgen_alias): Likewise.
5261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
5262         (declare_mgen_alias): Likewise.
5263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
5264         (declare_mgen_alias): Likewise.
5265         (M_LIBM_NEED_COMPAT): Likewise.
5266
5267 2016-09-01  Florian Weimer  <fweimer@redhat.com>
5268
5269         [BZ #20525]
5270         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
5271         Include <linux/quota.h>.
5272         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
5273         and btodb.
5274         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
5275         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
5276         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
5277         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
5278         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
5279         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
5280         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
5281         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
5282         types.
5283         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
5284         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
5285
5286 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5287
5288         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
5289         (gammal_positive): Fix spacing.
5290         (__ieee754_gammal_r): Likewise.
5291
5292 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5293
5294         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
5295         (_Float128): Define as long double, always.
5296         (L): Apply long double type suffix, always.
5297
5298         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
5299         _Float128, excepting comments.
5300
5301         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5302         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5303         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5304         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5305         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
5306         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
5307         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5308         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
5309         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5310         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
5311         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5312         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5313         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5314         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5315         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5316         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5317         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5318         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5319         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5320         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5321         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5322         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
5323         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5324         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5325         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5326         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5327         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
5328         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
5329         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5330         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5331         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5332         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5333         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5334         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5335         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5336         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5337         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5338         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5339         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5340         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
5341         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5342         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5343         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5344         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5345         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
5346         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5347         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5348         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5349         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5350         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5351         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5352         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5353         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5354         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5355         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
5356         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5357         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5358         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5359         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5360         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5361         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5362         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5363         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5364         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5365         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5366         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
5367         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
5368         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5369
5370         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
5371         _Float128, and include math_private.h.
5372         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
5373
5374         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
5375         long double semantics.
5376         (_Float128): Likewise.
5377         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
5378         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5379         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5380         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5381
5382 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
5383
5384         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
5385         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
5386         * sysdeps/s390/configure: Regenerated.
5387         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
5388         instruction for raising over-/underflow if z196 zarch is supported
5389         by default.
5390         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
5391
5392 2016-08-30  Svante Signell  <svante.signell@gmail.com>
5393
5394         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
5395         it point to a dumb buffer for RPC to fill it.
5396
5397 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5398
5399         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
5400         instead of if/else.
5401         (do_sin_slow): Likewise.
5402         (do_sincos_1): Use fabs instead of if/else.
5403         (do_sincos_2): Likewise.
5404         (__sin): Likewise.
5405         (__cos): Likewise.
5406         (slow2): Likewise.
5407         (sloww): Likewise.
5408         (sloww1): Likewise.  Drop argument M.
5409         (sloww2): Use fabs instead of if/else.
5410         (bsloww): Likewise.
5411         (bsloww1): Likewise.
5412         (bsloww2): Likewise.
5413
5414         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
5415         fall through comment.
5416         (do_sincos_1): Likewise.
5417
5418         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
5419         Consolidate switch cases 0 and 2.
5420
5421 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5422
5423         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
5424         (libm-calls): Remove the above.
5425
5426         * math/s_cexp_template.c: Update using type-generic macros.
5427         * math/s_clog10_template.c: Likewise.
5428         * math/s_cpow_template.c: Likewise.
5429         * math/s_clog_template.c: Likewise.
5430         * math/s_cproj_template.c: Likewise.
5431         * math/s_csqrt_template.c: Likewise.
5432
5433         * math/s_cexp.c: Removed.
5434         * math/s_cexpf.c: Removed.
5435         * math/s_cexpl.c: Removed.
5436         * math/s_clog10.c: Removed.
5437         * math/s_clog10f.c: Removed.
5438         * math/s_clog10l.c: Removed.
5439         * math/s_cpow.c: Removed.
5440         * math/s_cpowf.c: Removed.
5441         * math/s_cpowl.c: Removed.
5442         * math/s_clog.c: Removed.
5443         * math/s_clogf.c: Removed.
5444         * math/s_clogl.c: Removed.
5445         * math/s_cproj.c: Removed.
5446         * math/s_cprojf.c: Removed.
5447         * math/s_cprojl.c: Removed.
5448         * math/s_csqrt.c: Removed.
5449         * math/s_csqrtf.c: Removed.
5450         * math/s_csqrtl.c: Removed.
5451
5452         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
5453         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
5454         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
5455         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
5456         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
5457         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
5458
5459         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
5460         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
5461         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
5462         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
5463         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
5464         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
5465         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
5466         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
5467         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
5468         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
5469         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
5470
5471         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
5472         version.
5473
5474         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
5475         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
5476         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
5477         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
5478
5479 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5480
5481         * s_cexp_template.c: Copy of s_cexp.c.
5482         * s_clog_template.c: Copy of s_clog.c.
5483         * s_clog10_template.c: Copy of s_clog10.c.
5484         * s_cpow_template.c: Copy of s_cpow.c.
5485         * s_cproj_template.c: Copy of s_cproj.c.
5486         * s_csqrt_template.c: Copy of s_csqrt.c.
5487
5488 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5489
5490         [BZ #20517]
5491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
5492         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
5493         exported.
5494
5495 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
5496
5497         * math/fetestexceptflag.c: New file.
5498         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
5499         Stefan Liebler.
5500         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
5501         (fetestexceptflag): New function declaration.
5502         * manual/arith.texi (fetestexceptflag): Document function.
5503         * math/Versions (fetestexceptflag): New libm symbol at version
5504         GLIBC_2.25.
5505         * math/Makefile (libm-support): Add fetestexceptflag.
5506         (tests): Add test-fetestexceptflag.
5507         * math/test-fetestexceptflag.c: New file.
5508         * sysdeps/nacl/libm.abilist: Update.
5509         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5510         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5511         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5512         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5513         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5514         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5515         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5516         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5517         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5518         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5519         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5520         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5522         Likewise.
5523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5524         Likewise.
5525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5526         Likewise.
5527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5528         Likewise.
5529         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5530         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5531         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5532         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5533         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5534         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5535         Likewise.
5536         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5537         Likewise.
5538         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5539         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5540         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5541
5542 2016-08-26  Florian Weimer  <fweimer@redhat.com>
5543
5544         [BZ #20432]
5545         Avoid strong references to malloc-internal symbols when linking
5546         statically, to support statically interposed mallocs.
5547         * include/libc-symbols.h (call_function_static_weak): New macro.
5548         * malloc/Makefile (tests): Add tst-interpose-nothread,
5549         tst-interpose-thread, tst-interpose-static-nothread,
5550         tst-interpose-static-thread.
5551         (tests-static): Add tst-interpose-static-nothread,
5552         tst-interpose-static-thread.
5553         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
5554         tst-interpose-aux-thread.o.
5555         (test-extras): Add tst-interpose-aux-nothread,
5556         tst-interpose-aux-thread.
5557         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
5558         tst-interpose-aux-nothread.o.
5559         (tst-interpose-thread, tst-interpose-static-thread): Link with
5560         tst-interpose-aux-thread.o and libthread.
5561         * malloc/tst-interpose-aux-nothread.c: New file.
5562         * malloc/tst-interpose-aux-thread.c: Likewise.
5563         * malloc/tst-interpose-aux.c: Likewise.
5564         * malloc/tst-interpose-aux.h: Likewise.
5565         * malloc/tst-interpose-nothread.c: Likewise.
5566         * malloc/tst-interpose-skeleton.c: Likewise.
5567         * malloc/tst-interpose-static-nothread.c: Likewise.
5568         * malloc/tst-interpose-static-thread.c: Likewise.
5569         * malloc/tst-interpose-thread.c: Likewise.
5570         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
5571         * sysdeps/mach/hurd/fork.c (__fork): Only call
5572         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
5573         __malloc_fork_unlock_child if defined.
5574         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5575
5576 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5577
5578         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
5579         timespec C99 designated initialization.
5580
5581 2016-08-26  Florian Weimer  <fweimer@redhat.com>
5582
5583         [BZ #19946]
5584         Avoid expected SIGALRM signals.
5585         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
5586         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
5587         (xpthread_create, xpthread_detach, xpthread_join)
5588         (delayed_exit_thread, delayed_exit): New functions.
5589         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
5590         (tf): Use xpthread_cond_wait.
5591         (do_test): Likewise.  Replace alarm with delayed_exit.
5592         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5593         (do_test): Call delayed_exit.  Report failure.
5594         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5595         (do_test): Call delayed_exit.
5596         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5597         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
5598         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5599         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
5600         error.
5601         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
5602         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
5603         error.
5604         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
5605         (do_test): Call delayed_exit.
5606         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
5607         (do_test): Call delayed_exit.
5608         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
5609         (do_test): Call delayed_exit instead of alarm.  Use
5610         xpthread_mutex_lock.
5611         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
5612         (do_test): Call delayed_exit instead of alarm.  Use
5613         xpthread_mutex_lock.
5614         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
5615         (do_test): Call delayed_exit instead of alarm.
5616         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
5617         (do_test): Call delayed_exit instead of alarm.  Use
5618         xpthread_spin_lock.
5619         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
5620         (do_test): Call delayed_exit instead of alarm.  Use
5621         xpthread_join.
5622
5623 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
5624
5625         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
5626         adjust CFA when allocating register save area on re-aligned
5627         stack.
5628
5629 2016-08-26  Florian Weimer  <fweimer@redhat.com>
5630
5631         * string/tst-cmp.c: New test.
5632         * string/Makefile (tests): Add it.
5633
5634 2016-08-25  Mark Wielaard  <mark@klomp.org>
5635
5636         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
5637         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
5638         (check_tree_recurse): Use newly defined accessors.
5639         (check_tree): Likewise.
5640         (maybe_split_for_insert): Likewise.
5641         (__tfind): Likewise.
5642         (__tdelete): Likewise.
5643         (trecurse): Likewise.
5644         (tdestroy_recurse): Likewise.
5645         (__tsearch): Likewise. And add asserts for malloc alignment.
5646         (__twalk): Cast root to node in case CHECK_TREE is defined.
5647
5648 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5649
5650         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
5651
5652 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5653
5654         * math/Makefile (libm-gen-calls): Add
5655         catan, catanh, ctan, ctanh.
5656         (libm-calls): Remove the above.
5657
5658         * math/s_catan_template.c: Update using type-generic macros.
5659         * math/s_catanh_template.c: Likewise.
5660         * math/s_ctan_template.c: Likewise.
5661         * math/s_ctanh_template.c: Likewise.
5662
5663         * math/s_catanf.c: Removed.
5664         * math/s_catan.c: Removed.
5665         * math/s_catanl.c: Removed.
5666         * math/s_catanhf.c: Removed.
5667         * math/s_catanh.c: Removed.
5668         * math/s_catanhl.c: Removed.
5669         * math/s_ctanf.c: Removed.
5670         * math/s_ctan.c: Removed.
5671         * math/s_ctanl.c: Removed.
5672         * math/s_ctanhf.c: Removed.
5673         * math/s_ctanh.c: Removed.
5674         * math/s_ctanhl.c: Removed.
5675
5676         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
5677         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
5678         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
5679         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
5680         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
5681         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
5682
5683         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
5684         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
5685         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
5686         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
5687
5688 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5689
5690         * s_catan_template.c: Copy of s_catan.c.
5691         * s_catanh_template.c: Copy of s_catanh.c.
5692         * s_ctan_template.c: Copy of s_ctan.c.
5693         * s_ctanh_template.c: Copy of s_ctanh.c.
5694
5695 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5696
5697         * math/Makefile (gen-libm-calls): Move
5698         casin, casinh, csin, csinh here.
5699         (libm-calls): Remove the above.
5700
5701         * math/s_casin_template.c: Update using type-generic macros.
5702         * math/s_casinh_template.c: Likewise.
5703         * math/s_csin_template.c: Likewise.
5704         * math/s_csinh_template.c: Likewise.
5705         * math/k_casinh_template.c: Likewise.
5706
5707         * math/s_casinf.c: Removed.
5708         * math/s_casin.c: Removed.
5709         * math/s_casinl.c: Removed.
5710         * math/s_casinh.c: Removed.
5711         * math/s_casinhf.c: Removed.
5712         * math/s_casinhl.c: Removed.
5713         * math/s_csin.c: Removed.
5714         * math/s_csinf.c: Removed.
5715         * math/s_csinl.c: Removed.
5716         * math/s_csinh.c: Removed.
5717         * math/s_csinhf.c: Removed.
5718         * math/s_csinhl.c: Removed.
5719         * math/k_casinh.c: Removed.
5720         * math/k_casinhf.c: Removed.
5721         * math/k_casinhl.c: Removed.
5722
5723         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
5724         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
5725         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
5726         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
5727
5728         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
5729         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
5730         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
5731         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
5732         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
5733         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
5734         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
5735         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
5736
5737         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
5738         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
5739         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
5740         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
5741
5742         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
5743         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
5744         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
5745         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
5746
5747 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5748
5749         * s_casin_template.c: Copy of s_casin.c.
5750         * s_casinh_template.c: Copy of s_casinh.c.
5751         * s_csin_template.c: Copy of s_csin.c.
5752         * s_csinh_template.c: Copy of s_csinh.c.
5753         * k_casinh_template.c: Copy of k_casinh.c.
5754
5755 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5756
5757         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
5758
5759 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5760
5761         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
5762         (mul_split) Remove, rename as mul_splitl, remove
5763         redundant float.h include, and include via mul_splitl.h
5764
5765         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
5766         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
5767         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
5768         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
5769         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
5770
5771         * math/mul_splitl.h: New file.
5772
5773         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
5774         Move into mul_split.h, and remove redundant float.h include.
5775
5776         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
5777         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
5778         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
5779         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
5780
5781         * math/mul_split.h: New file.
5782
5783 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5784
5785         * math/Makefile (libm-gen-calls): Move
5786         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
5787         (libm-calls): Remove above.
5788
5789         * math/s_cacos_template.c: Update using type-generic macros.
5790         * math/s_cacosh_template.c: Likewise.
5791         * math/s_ccos_template.c: Likewise.
5792         * math/s_ccosh_template.c: Likwise.
5793
5794         * math/s_cacosf.c: Removed.
5795         * math/s_cacos.c: Removed.
5796         * math/s_cacosl.c: Removed.
5797         * math/s_cacoshf.c: Removed.
5798         * math/s_cacosh.c: Removed.
5799         * math/s_cacoshl.c: Removed.
5800         * math/s_ccosf.c: Removed.
5801         * math/s_ccos.c: Removed.
5802         * math/s_ccosl.c: Removed.
5803         * math/s_ccoshf.c: Removed.
5804         * math/s_ccosh.c: Removed.
5805         * math/s_ccoshl.c: Removed.
5806
5807         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
5808         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
5809         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
5810         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
5811         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
5812         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
5813
5814         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
5815         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
5816         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
5817         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
5818
5819         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
5820         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
5821         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
5822         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
5823
5824 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5825
5826         * s_cacos_template.c: Copy of s_cacos.c.
5827         * s_cacosh_template.c: Copy of s_cacosh.c.
5828         * s_ccos_template.c: Copy of s_ccos.c.
5829         * s_ccosh_template.c: Copy of s_ccosh.c.
5830
5831 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5832
5833         * stdlib/tst-strtod-round-skeleton.c:
5834         Refactored from tst-strtod-round.c.
5835
5836         (L_): New macro to apply literal modifier.
5837         (FNPFX): New macro to select str or wcs prefix.
5838         (CHAR): New macro to choose wchar_t or char.
5839         (STRM): New macro to choose printf for tested character type.
5840
5841         (STRTO): New macro to choose appropriate string -> real function.
5842         (FNPFXS): Stringitized version of FNPFX.
5843         (STR): Support for above macro.
5844         (STRX): Likewise.
5845
5846         (TEST): Update with above macros.
5847         (test): Likewise.
5848         (GEN_ONE_TEST): Likewise.
5849         (test_in_one_mode): Likewise.
5850
5851         * stdlib/tst-strtod-round.c: New file.
5852         * wcsmbs/tst-wcstod-round.c: New file.
5853
5854         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
5855         (tst-wcstod-round): Add libm depencency for fesetround.
5856
5857 2016-08-19  Zack Weinberg  <zackw@panix.com>
5858
5859         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
5860
5861 2016-08-18  Torvald Riegel  <triegel@redhat.com>
5862
5863         [BZ #20477]
5864         * resolv/res_hconf.c (do_init): Use atomic access.
5865         * resolv/res_hconf.h: Add comments.
5866         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
5867         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
5868         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5869
5870 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5871
5872         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
5873         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
5874         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5875         Likewise.
5876
5877 2016-08-18  Florian Weimer  <fweimer@redhat.com>
5878
5879         [BZ #16907]
5880         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
5881         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
5882         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
5883         (__attribute__): Remove definition.
5884
5885 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5886
5887         * sysdeps/ieee754/ldbl-128/e_asinl.c:
5888         Remove unused sqrtl declaration.
5889
5890 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5891
5892         * math/Makefile: (gen-libm-templates.stmp): New rule.
5893         (libm-calls): Move carg conj cimag and cabs into ...
5894         (gen-libm-calls): New variable.
5895         (generated): Inform Make objects from gen-libm-calls
5896         may be generated.
5897
5898         * sysdeps/generic/math-type-macros.h: New file.
5899         * sysdeps/generic/math-type-macros-float.h: Likewise.
5900         * sysdeps/generic/math-type-macros-double.h: Likewise.
5901         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
5902         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
5903         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
5904
5905         * math/cabs.c: Refactor into
5906         * math/cabs_template.c: new file.
5907         * math/cabsf.c: Removed.
5908         * math/cabsl.c: Removed.
5909         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
5910         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
5911
5912         * math/carg.c: Refactor into
5913         * math/carg_template.c: new file.
5914         * math/cargf.c: Removed.
5915         * math/cargl.c: Removed.
5916         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
5917         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
5918
5919         * math/conj.c: Refactor into
5920         * math/conj_template.c: new file.
5921         * math/conjf.c: Removed.
5922         * math/conjl.c: Removed.
5923         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
5924         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
5925
5926         * math/cimag.c: Refactor into
5927         * math/cimag_template.c: new file.
5928         * math/cimagf.c: Removed.
5929         * math/cimagl.c: Removed.
5930         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5931         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5932
5933         * math/cimag.c: Refactor into
5934         * math/cimag_template.c: new file.
5935         * math/cimagf.c: Removed.
5936         * math/cimagl.c: Removed.
5937         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5938         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5939
5940 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5941
5942         Reduce time to expected nptl/tst-once5 failure.
5943         * nptl/tst-once5.cc (TIMEOUT): Define.
5944
5945 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5946
5947         [BZ #20452]
5948         Avoid additional copies of objects in libc.a in static libraries.
5949         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
5950         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
5951         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
5952         rt-sysdep.
5953         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
5954         Add nptl-sysdep.
5955         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
5956         Add ptw-sysdep.
5957         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
5958         rt-sysdep.
5959         * sysdeps/unix/sysv/linux/alpha/Makefile
5960         (libpthread-shared-only-routines): Add ptw-sysdep,
5961         ptw-sigprocmask, ptw-rt_sigaction.
5962         * sysdeps/unix/sysv/linux/ia64/Makefile
5963         (librt-shared-only-routines): Add rt-sysdep.
5964         * sysdeps/unix/sysv/linux/i386/Makefile
5965         (libpthread-shared-only-routines): Add libc-do-syscall.
5966         * sysdeps/unix/sysv/linux/microblaze/Makefile
5967         (libpthread-shared-only-routines): Add sysdep.
5968         * sysdeps/unix/sysv/linux/powerpc/Makefile
5969         (librt-shared-only-routines): Add rt-sysdep.
5970         (libpthread-shared-only-routines): Add sysdep.
5971         * sysdeps/unix/sysv/linux/s390/Makefile
5972         (librt-shared-only-routines): Add rt-sysdep.
5973         * sysdeps/unix/sysv/linux/sparc/Makefile
5974         (librt-shared-only-routines): Add rt-sysdep.
5975         (libpthread-shared-only-routines): Add sysdep.
5976         * sysdeps/unix/sysv/linux/tile/Makefile
5977         (libpthread-shared-only-routines): Likewise.
5978
5979 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
5980
5981         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
5982         Mask implicit bit out of unpacked value.
5983         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
5984         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
5985         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
5986
5987         * sysdeps/sparc/fpu/fesetexcept.c: New file.
5988
5989         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
5990
5991         * sysdeps/s390/fpu/fesetexcept.c: New file.
5992
5993         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
5994         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
5995         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
5996
5997         * sysdeps/mips/fpu/fesetexcept.c: New file.
5998
5999         * sysdeps/m68k/fpu/fesetexcept.c: New file.
6000
6001         * sysdeps/ia64/fpu/fesetexcept.c: New file.
6002
6003         * sysdeps/hppa/fpu/fesetexcept.c: New file.
6004
6005         * sysdeps/arm/fesetexcept.c: New file.
6006
6007         * sysdeps/alpha/fpu/fesetexcept.c: New file.
6008
6009         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
6010
6011         * math/fesetexcept.c: New file.
6012         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
6013         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
6014         * math/fenv.h: Define
6015         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
6016         <bits/libc-header-start.h> instead of including <features.h>.
6017         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
6018         declaration.
6019         * manual/arith.texi (fesetexcept): Document function.
6020         * math/Versions (fesetexcept): New libm symbol at version
6021         GLIBC_2.25.
6022         * math/Makefile (libm-support): Add fesetexcept.
6023         (tests): Add test-fesetexcept and test-fesetexcept-traps.
6024         * math/test-fesetexcept.c: New file.
6025         * math/test-fesetexcept-traps.c: Likewise.
6026         * sysdeps/nacl/libm.abilist: Update.
6027         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6028         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6029         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6030         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6031         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6032         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6033         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6034         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6035         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6036         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6037         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6038         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6040         Likewise.
6041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6042         Likewise.
6043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6044         Likewise.
6045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6046         Likewise.
6047         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6048         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6049         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6050         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6051         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6052         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6053         Likewise.
6054         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6055         Likewise.
6056         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6057         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6058         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6059
6060 2016-08-16  Florian Weimer  <fweimer@redhat.com>
6061
6062         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
6063         New.
6064         (do_test): Apply default_stack_size_in_mb if not set.
6065         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
6066
6067 2016-08-15  Andreas Schwab  <schwab@suse.de>
6068
6069         [BZ #20435]
6070         CVE-2016-6323
6071         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
6072         as .cantunwind.
6073
6074 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
6075
6076         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
6077         comment from fraiseexcpt.c.
6078
6079         * math/test-fexcept.c (feraiseexcept_exact): New function.
6080         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
6081         (test_except): Likewise.
6082
6083 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
6084
6085         [BZ #20455]
6086         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
6087         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
6088         to be restored.
6089
6090         * math/test-fexcept-traps.c: New file.
6091         * math/test-fexcept.c: Likewise.
6092         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
6093         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
6094         macro.
6095         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
6096         (EXCEPTION_SET_FORCES_TRAP): Likewise.
6097
6098 2016-08-09  Torvald Riegel  <triegel@redhat.com>
6099
6100         * include/atomic.h (atomic_fetch_and_relaxed,
6101         atomic_fetch_and_release, atomic_fetch_or_release,
6102         atomic_fetch_xor_release): New.
6103
6104 2016-08-06  Christian Seiler  <christian@iwakd.de>
6105
6106         [BZ #20444]
6107         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
6108         MACH_PORT_NULL.
6109
6110 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
6111
6112         * math/s_fdim.c: Avoid alias renamed.
6113         * math/s_fdimf.c: Likewise.
6114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6115         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
6116         Add s_fdimf-vis3, s_fdim-vis3.
6117         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
6118         (CFLAGS-s_fdim-vis3.c): Likewise.
6119         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
6120         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
6121
6122 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
6123
6124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6125         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
6126         Remove s_fdimf-vis3, s_fdim-vis3.
6127         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
6128         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
6129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
6130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
6131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
6132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
6133         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
6134         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
6135         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
6136         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
6137
6138 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
6139
6140         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
6141         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
6142         -Wa,-Av9a -mvis.
6143
6144 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6145
6146         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
6147         LIT() to individual constants in simple expressions
6148         after splitting on spaces.
6149         (_apply_lit): Rename replaced version, and use it to
6150         apply to what appears to be a token.
6151
6152         * math/libm-test.inc: Fix many, many issues with
6153         spacing.
6154
6155 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
6156
6157         * math/math.h: Move comment about <bits/mathdef.h> definitions
6158         above inclusion of <bits/mathdef.h>.  Do not mention
6159         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
6160
6161 2016-08-05  Torvald Riegel  <triegel@redhat.com>
6162
6163         * include/atomic.h (atomic_exchange_relaxed): New.
6164
6165 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
6166
6167         * math/e_scalb.c: Do not include <fenv.h>.
6168         (invalid_fn): Do calculation resulting in NaN instead of raising
6169         FE_INVALID and returning a NaN explicitly.
6170         * math/e_scalbf.c: Do not include <fenv.h>.
6171         (invalid_fn): Do calculation resulting in NaN instead of raising
6172         FE_INVALID and returning a NaN explicitly.
6173         * math/e_scalbl.c: Do not include <fenv.h>.
6174         (invalid_fn): Do calculation resulting in NaN instead of raising
6175         FE_INVALID and returning a NaN explicitly.
6176
6177 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
6178
6179         * po/de.po: Updated from Translation Project.
6180         * po/fi.po: Likewise.
6181         * po/sv.po: Likewise.
6182
6183 2016-08-04  Florian Weimer  <fweimer@redhat.com>
6184
6185         [BZ #20452]
6186         Use sysdep.o from libc.a in static libraries.
6187         * sysdeps/unix/sysv/linux/i386/Makefile
6188         (libpthread-shared-only-routines): Add sysdep.
6189         (librt-shared-only-routines): Likewise.
6190
6191 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
6192
6193         * math/tgmath.h (nextdown): Define if
6194         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
6195         (nextup): Likewise.
6196
6197         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
6198         macro.
6199         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
6200         Document.
6201         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
6202         Document macro.
6203         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
6204         (exp10f): Likewise.
6205         (exp10l): Likewise.
6206         * math/bits/mathcalls.h (exp10): Declare if
6207         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6208
6209         * manual/arith.texi (nextup): Fix typo in last change.
6210
6211 2016-08-03  Zack Weinberg  <zackw@panix.com>
6212
6213         [BZ #19239]
6214         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
6215         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
6216         define major, minor, and makedev to issue deprecation warnings on use.
6217         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
6218         previously-activated deprecation warnings for these macros and prevent
6219         subsequent inclusions of this header from having any effect.
6220         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
6221         including <sys/sysmacros.h>, and undefine it again afterward.
6222
6223 2016-08-03  Zack Weinberg  <zackw@panix.com>
6224
6225         * sysdeps/generic/sys/sysmacros.h: Delete file.
6226         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
6227         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
6228         * bits/sysmacros.h: ... here; this encoding is now the generic
6229         encoding.  Now defines only the following macros:
6230         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
6231         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
6232         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
6233
6234         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
6235         bits/sysmacros.h and the above new macros to generate the
6236         public implementations of major, minor, and makedev.
6237         * misc/tst-makedev.c: New test.
6238         * include/sys/sysmacros.h: New wrapper.
6239
6240         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
6241         (routines): Add makedev.
6242         (tests): Add tst-makedev.
6243         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
6244         gnu_dev_makedev.
6245         * posix/Makefile (headers): Remove sys/sysmacros.h.
6246         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
6247
6248         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
6249         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
6250         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
6251         * sysdeps/unix/sysv/linux/alpha/libc.abilist
6252         * sysdeps/unix/sysv/linux/arm/libc.abilist
6253         * sysdeps/unix/sysv/linux/hppa/libc.abilist
6254         * sysdeps/unix/sysv/linux/i386/libc.abilist
6255         * sysdeps/unix/sysv/linux/ia64/libc.abilist
6256         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
6257         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
6258         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
6259         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6260         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6261         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6262         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6263         * sysdeps/unix/sysv/linux/nios2/libc.abilist
6264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6268         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
6269         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
6270         * sysdeps/unix/sysv/linux/sh/libc.abilist
6271         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
6272         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
6273         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
6274         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
6275         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
6276         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
6277         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
6278         Add GLIBC_2.25.
6279
6280         * include/features.h (__glibc_clang_prereq): New macro.
6281         * misc/sys/cdefs.h (__glibc_clang_has_extension)
6282         (__attribute_deprecated_msg__): New macros.
6283
6284 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
6285
6286         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
6287         macro.
6288         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
6289         * manual/arith.texi (issignaling): Document as ISO from TS
6290         18661-1:2014.
6291         (nextup): Likewise.
6292         (nextupf): Likewise.
6293         (nextupl): Likewise.
6294         (nextdown): Likewise.
6295         (nextdownf): Likewise.
6296         (nextdownl): Likewise.
6297         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
6298         macro.
6299         * math/math.h: Define
6300         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
6301         <bits/libc-header-start.h> instead of including <features.h>.
6302         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
6303         [__USE_GNU].
6304         * math/bits/mathcalls.h (nextdown): Declare if
6305         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
6306         (nextup): Likewise.
6307         (__issignaling): Likewise.
6308
6309 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6310
6311         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
6312         check, and remove __glibc_likely hint
6313         from FP_INFINITE check.
6314         * s_csinhf.c (__csinhf): Likewise.
6315
6316         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
6317         hint from FP_INFINITE check.
6318         * s_csinhl.c (__csinhl): Likewise.
6319
6320 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6321
6322         * math/Makefile (libm-calls): Insert F placeholder into
6323         object names.  Move w_lgamma_compat* routines into
6324         (libm-compat-calls): New variable.
6325         (libm-compat-calls-ldouble-yes): New variable.
6326         (calls): Insert F placeholder.
6327         (generated): Redefine using new type-foreach macro call.
6328         (routines): Likewise.
6329
6330         (types): New variable to hold a list of symbolic names
6331         for each type supported by the target machine.
6332         (libm-routines): Redefine using new types variable.
6333         (type-foreach): macro to replace fooF with the
6334         appropriately suffixed foo for each types.
6335
6336         (type-ldouble-suffix): New variable.
6337         (type-ldouble-routines): Likewise.
6338         (type-ldouble-yes): Likewise.
6339         (type-double-suffix): Likewise.
6340         (type-double-routines): Likewise.
6341         (type-float-suffix): Likewise.
6342         (type-float-routines): Likewise.
6343
6344         (dbl-only-routines): Remove.
6345         (long-c-yes): Likewise.
6346         (long-m-routines): Likewise.
6347         (long-m-support): Likewise.
6348         (long-m-yes): Likewise.
6349         (test-longdouble-yes): Likewise.
6350
6351         (test-float.o): Simplify by increasing the scope of the
6352         recipe which adds libm-test.stmp to the vector types.
6353         (test-ifloat.o): Likewise.
6354         (test-float-finite.o): Likewise.
6355         (test-double.o): Likewise
6356         (test-idouble.o): Likewise.
6357         (test-double-finite.o): Likewise.
6358         (test-ldouble.o): Likewise
6359         (test-ildoubl.o): Likewise.
6360         (test-ldouble-finite.o): Likewise.
6361
6362         (libm-tests): Redefine type tests using foreach and the
6363         list of types in types.
6364
6365         (CPPFLAGS-test-ildoubl.c): Rename to
6366         (CPPFLAGS-test-ildouble.c): New variable
6367
6368         * math/test-ildoubl.c: Rename to
6369         * math/test-ildouble.c: New file.
6370
6371 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6372
6373         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
6374         Use fabsl instead of fabs.
6375         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
6376         Likewise.
6377         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
6378         Add long double suffix to constant to ensure proper
6379         promotion to long double.
6380
6381 2016-08-03  Tom Tromey  <tom@tromey.com>
6382
6383         [BZ #20311]
6384         * nptl_db/Makefile (headers): Add proc_service.h.
6385         * nptl_db/proc_service.h: Add include guard.  Use
6386         __BEGIN/__END_DECLS.
6387         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
6388         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
6389         arguments.
6390
6391
6392 2016-08-03  Florian Weimer  <fweimer@redhat.com>
6393
6394         [BZ #17730]
6395         Avoid using memalign for TCB allocations.
6396         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
6397         (_dl_allocate_tls_storage): Use malloc and manual alignment.
6398         Avoid alignment gap in the TLS_DTV_AT_TP case.
6399         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
6400         determine the pointer to free.
6401         * nptl/tst-tls3-malloc.c: New test.
6402         * nptl/Makefile (tests): Add it.
6403         (tst-tls3-malloc): Link with libdl, libpthread.
6404         (LDFLAGS-tst-tls3-malloc): Set.
6405         (tst-tls3-malloc.out): Depend on DSO used in test.
6406
6407 2016-08-03  Florian Weimer  <fweimer@redhat.com>
6408
6409         [BZ #17730]
6410         Avoid using memalign for TLS allocations.
6411         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
6412         is_static member with to_free member.
6413         (union dtv): Use struct dtv_pointer.
6414         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
6415         dtv_pointer instead of is_static.
6416         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6417         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
6418         instead of val.
6419         (allocate_dtv_entry): New function.
6420         (allocate_and_init): Return struct dtv_pointer.  Call
6421         allocate_dtv_entry instead of __libc_memalign.
6422         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
6423         instead of val.
6424         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
6425         instead of is_static.  Adjust call to allocate_and_init.
6426         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
6427         struct dtv_pointer instead of val.
6428
6429 2016-08-03  Florian Weimer  <fweimer@redhat.com>
6430
6431         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
6432         (MALLOC_ALIGN_MASK): Move ...
6433         * malloc/malloc-internal.h: ... to here.
6434         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
6435
6436 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
6437
6438         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
6439         (UDP_ENCAP_GTP1U): Likewise.
6440
6441         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
6442         (PF_MAX): Update value.
6443         (AF_QIPCRTR): New macro.
6444
6445 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
6446
6447         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
6448         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6449         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6450         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
6451         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
6452         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
6453         s_truncf-vis3, s_trunc-vis3.
6454         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
6455         (CFLAGS-s_ceil-vis3.c): Likewise.
6456         (CFLAGS-s_floorf-vis3.c): Likewise.
6457         (CFLAGS-s_floor-vis3.c): Likewise.
6458         (CFLAGS-s_truncf-vis3.c): Likewise.
6459         (CFLAGS-s_trunc-vis3.c): Likewise.
6460         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
6461         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6462         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
6463         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6464         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
6465         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6466         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
6467         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6468         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
6469         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6470         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
6471         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6472
6473 2016-08-02  David S. Miller  <davem@davemloft.net>
6474
6475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
6476         (__nearbyint_vis3): Don't check for sNaN before float register is
6477         loaded with the incoming argument.
6478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
6479         (__nearbyintf_vis3): Likewise.
6480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
6481         Likewise.
6482         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
6483         Likewise.
6484
6485         * string/test-strncmp.c (do_test_limit): Make sure the test data
6486         stream is aligned as required for the type "CHAR".
6487         (do_test): Likewise.
6488
6489 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
6490
6491         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
6492         by beq instructions jumping to the end of the function.
6493         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
6494         clobber list. Use "i" constraint instead of "X".
6495         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
6496         of "X".
6497
6498 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
6499
6500         * bits/libc-header-start.h: New file.
6501         * Makefile (headers): Add bits/libc-header-start.h.
6502         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
6503         (__GLIBC_USE): New macro.
6504         * libio/stdio.h: Define
6505         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
6506         <bits/libc-header-start.h> instead of including <features.h>.
6507         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
6508         (open_memstream): Likewise.
6509         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
6510         (__asprintf): Likewise.
6511         (asprintf): Likewise.
6512         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
6513         (getdelim): Likewise.
6514         (getline): Likewise.
6515         * string/string.h: Define
6516         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
6517         <bits/libc-header-start.h> instead of including <features.h>.
6518         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
6519         (strndup): Likewise.
6520         * wcsmbs/wchar.h: Define
6521         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
6522         <bits/libc-header-start.h> instead of including <features.h>.
6523         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
6524         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
6525
6526 2016-08-02  Florian Weimer  <fweimer@redhat.com>
6527
6528         Support linking against compatibility symbols, for use in tests.
6529         * include/libc-symbols.h (symbol_version_reference): New macro.
6530         (symbol_version): Use it.
6531         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
6532         (compat_symbol): Use compat_symbol_reference.
6533         (compat_symbol_1, compat_symbol_2): Remove.
6534         (compat_symbol_reference, compat_symbol_reference_1)
6535         (compat_symbol_reference_2): New macro.  Use
6536         symbol_version_reference.
6537
6538 2016-08-02  Florian Weimer  <fweimer@redhat.com>
6539
6540         [BZ #19469]
6541         * malloc/Makefile (CPPFLAGS): Compile tests with
6542         -DTEST_NO_MALLOPT.
6543         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
6544
6545 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
6546
6547         [BZ #20033]
6548         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
6549         finite version.
6550         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
6551         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
6552         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
6553         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
6554         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
6555         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
6556         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
6557         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
6558         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
6559         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
6560         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
6561         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
6562         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
6563         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
6564         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
6565         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
6566         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
6567         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
6568         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
6569         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
6570         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
6571         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
6572         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
6573         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
6574         in zero power.
6575
6576 2016-08-02  Florian Weimer  <fweimer@redhat.com>
6577
6578         [BZ #20370]
6579         * malloc/arena.c (get_free_list): Update comment.  Assert that
6580         arenas on the free list have no attached threads.
6581         (remove_from_free_list): New function.
6582         (reused_arena): Call it.
6583
6584 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
6585
6586         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
6587         when it is a NaN.
6588         [_IEEE_FP_INEXACT] Remove.
6589         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
6590         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
6591         when it is a NaN.
6592         [_IEEE_FP_INEXACT] Remove.
6593         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
6594         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
6595         when it is a NaN.
6596         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
6597         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
6598         when its absolute value is greater than 0x1.0p52.
6599         [_IEEE_FP_INEXACT] Remove.
6600         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
6601         when its absolute value is greater than 0x1.0p23.
6602         [_IEEE_FP_INEXACT] Remove.
6603
6604 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
6605
6606         * version.h (RELEASE): Set to "development"
6607         (VERSION): Set to 2.24.90.
6608         * NEWS: Add 2.25 section.
6609
6610         * version.h (RELEASE): Set to "stable"
6611         (VERSION): Set to 2.24.
6612         * include/features.h (__GLIBC_MINOR__): Set to 24.
6613
6614         * NEWS: Add 2.24 fixed bugs.
6615         * po/libc.pot: Regenerate.
6616
6617 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
6618
6619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6620         [$(subdir) = math] (libm-sysdep_routines): Remove.
6621         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
6622         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
6623         s_truncf-vis3, s_trunc-vis3.
6624         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
6625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
6626         file.
6627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
6628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
6629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
6630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
6631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
6633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
6634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
6636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
6637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
6638         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
6639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
6640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
6641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
6642         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
6643         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6644         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
6645         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
6646         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
6647         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
6648         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
6649         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
6650         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6651         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
6652         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
6653         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6654         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
6655         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
6656         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6657         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
6658         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
6659         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6660         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
6661         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
6662         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
6663         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
6664         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6665         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6666         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
6667         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
6668         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
6669         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
6670
6671 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
6672
6673         [BZ #20384]
6674         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
6675         test-double-libmvec-sincos-avx-main.o,
6676         test-double-libmvec-sincos-avx2-main.o,
6677         test-double-libmvec-sincos-main.o,
6678         test-float-libmvec-sincosf-avx-main.o,
6679         test-float-libmvec-sincosf-avx2-main.o and
6680         test-float-libmvec-sincosf-main.o.
6681         test-float-libmvec-sincosf-avx512-main.o.
6682         ($(objpfx)test-double-libmvec-sincos): Also link with
6683         $(objpfx)test-double-libmvec-sincos-main.o.
6684         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
6685         $(objpfx)test-double-libmvec-sincos-avx-main.o.
6686         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
6687         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
6688         ($(objpfx)test-float-libmvec-sincosf): Also link with
6689         $(objpfx)test-float-libmvec-sincosf-main.o.
6690         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
6691         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
6692         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
6693         test-double-libmvec-sincos-avx512-main.o and
6694         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
6695         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
6696         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
6697         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
6698         (CFLAGS-test-double-libmvec-sincos.c): Removed.
6699         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
6700         (CFLAGS-test-double-libmvec-sincos-main.c): New.
6701         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
6702         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
6703         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
6704         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
6705         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
6706         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
6707         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
6708         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
6709         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
6710         -DREQUIRE_AVX2.
6711         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
6712         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
6713         -DREQUIRE_AVX512F.
6714         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
6715         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
6716         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
6717         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
6718         file.
6719         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
6720         Likewise.
6721         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
6722         Likewise.
6723         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
6724         Likewise.
6725         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
6726         Likewise.
6727         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
6728         Likewise.
6729         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
6730         Likewise.
6731         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
6732         Likewise.
6733
6734 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
6735
6736         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
6737
6738 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
6739
6740         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
6741         and typo in a comment about AT_HWCAP entry.
6742
6743 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6744
6745         * sysdeps/aarch64/libm-test-ulps: Updated.
6746
6747 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6748
6749         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
6750         of r13 as it is not restored in mvcle case.
6751
6752 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
6753
6754         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
6755         Rename "ret" to "__ret".
6756         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
6757         inline_syscall5, inline_syscall6): Likewise.
6758
6759 2016-07-19   Will Newton  <will.newton@gmail.com>
6760
6761         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
6762         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
6763         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
6764         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
6765         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
6766
6767 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
6768
6769         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
6770         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
6771         -mfpmath=387 with $(rtld-CFLAGS).
6772         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
6773         $(rtld-CFLAGS).
6774
6775 2016-07-18   Ross Burton  <ross.burton@intel.com>
6776              Khem Raj  <raj.khem@gmail.com>
6777
6778         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
6779         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
6780         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
6781         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
6782         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
6783         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
6784         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
6785         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
6786         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
6787         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
6788         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
6789         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
6790         R_METAG_TLS_DTPOFF): New.
6791
6792 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6793             Matt Clay  <mclay@lycos.com>
6794
6795         [BZ #20357]
6796         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
6797         to call __mpsin/__mpcos and to negate values.
6798         * math/auto-libm-test-in: Add test.
6799         * math/auto-libm-test-out: Regenerate.
6800
6801 2016-07-18  Zack Weinberg  <zackw@panix.com>
6802
6803         * grp/Makefile: Don't install the internal header grp-merge.h.
6804
6805 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6806
6807         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6808
6809 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6810
6811         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
6812
6813 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6814
6815         [BZ #15368]
6816         * sysdeps/unix/sysv/linux/nptl-signals.h
6817         (__nptl_clear_internal_signals): New function.
6818         (__libc_signal_block_all): Likewise.
6819         (__libc_signal_block_app): Likewise.
6820         (__libc_signal_restore_set): Likewise.
6821         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
6822         implementation.
6823         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
6824         the cached pid/tid value in pthread structure.
6825
6826 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6827
6828         [BZ #20347]
6829         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6830
6831 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6832
6833         [BZ #20348]
6834         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
6835         preadv64, pwrite64 and pwritev64.
6836
6837 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6838
6839         [BZ #20350]
6840         * posix/tst-preadwrite.c: Renamed to ...
6841         * posix/tst-preadwrite-common.c: This.
6842         (PREAD): Removed.
6843         (PWRITE): Likewise.
6844         (STRINGIFY): Likewise.
6845         (STRINGIFY2): Likewise.
6846         (do_prepare): Make it static and remove function arguments.
6847         (do_test): Likewise.
6848         (PREPARE): Updated.
6849         (TEST_FUNCTION): New.
6850         (name): Make it static.
6851         (fd): Likewise.
6852         (do_prepare): Use create_temp_file.
6853         (do_test): Renamed to ...
6854         (do_test_with_offset): This.  Make it static and accept offset.
6855         Properly check return value of PWRITE and PREAD.  Return bytes
6856         read.  Don't close fd nor unlink name.
6857         * posix/tst-preadwrite.c: Rewrite.
6858         * posix/tst-preadwrite64.c: Likewise.
6859
6860 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6861
6862         [BZ #20309]
6863         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
6864         -mtls-dialect=gnu2 works.
6865         * configure: Regenerated.
6866         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
6867         (tests): Add tst-gnu2-tls1.
6868         (modules-names): Add tst-gnu2-tls1mod.
6869         ($(objpfx)tst-gnu2-tls1): New.
6870         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
6871         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
6872         * elf/tst-gnu2-tls1.c: New file.
6873         * elf/tst-gnu2-tls1mod.c: Likewise.
6874         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
6875         bytes for push in the PLT entry to align the stack.
6876
6877 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
6878
6879         [BZ #20349]
6880         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
6881
6882 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6883
6884         [BZ #18707]
6885         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
6886         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
6887
6888 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6889
6890         * sysdeps/unix/sysv/linux/sysdep.h
6891         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
6892         guards.
6893         * misc/tst-preadvwritev-common.c: New file.
6894         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
6895         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
6896         a check for files larger than 2GB.
6897
6898         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6899         (__ASSUME_OFF_DIFF_OFF64): Remove define.
6900         * sysdeps/unix/sysv/linux/pread.c
6901         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
6902         __OFF_T_MATCHES_OFF64_T.
6903         * sysdeps/unix/sysv/linux/pread64.c
6904         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
6905         * sysdeps/unix/sysv/linux/preadv.c
6906         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
6907         * sysdeps/unix/sysv/linux/preadv64.c
6908         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
6909         * sysdeps/unix/sysv/linux/pwrite.c
6910         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
6911         * sysdeps/unix/sysv/linux/pwrite64.c
6912         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
6913         * sysdeps/unix/sysv/linux/pwritev.c
6914         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
6915         * sysdeps/unix/sysv/linux/pwritev64.c
6916         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
6917
6918 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
6919
6920         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6921         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
6922
6923 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6924
6925         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
6926
6927 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6928
6929         [BZ #20240]
6930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
6931         (CFLAGS-s_modf-ppc32.c): New variable.
6932         (CFLAGS-s_modff-ppc32.c): Likewise.
6933         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6934         (CFLAGS-s_modf-ppc64.c): Likewise.
6935         (CFLAGS-s_modff-ppc64.c): Likewise.
6936
6937 2016-07-07  Andreas Schwab  <schwab@suse.de>
6938
6939         [BZ #20263]
6940         * nptl/tst-robust10.c: New test.
6941         * nptl/Makefile (tests): Add tst-robust10.
6942
6943 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
6944
6945         [BZ #20263]
6946         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
6947
6948 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
6949
6950         * sysdeps/s390/linkmap.h (struct link_map_machine):
6951         Remove member gotplt and add member jmprel.
6952         * sysdeps/s390/s390-32/dl-machine.h
6953         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
6954         instead of gotplt with &got[3].
6955         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
6956         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6957
6958 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
6959
6960         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
6961
6962 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6963
6964         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
6965         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
6966         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6967         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
6968         * libio/vtables.c (_IO_vtable_check)
6969         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6970         * libio/libioP.h (IO_set_accept_foreign_vtables)
6971         [!PTR_MANGLE]: Do not call PTR_MANGLE.
6972
6973 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6974
6975         [BZ #20314]
6976         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
6977         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
6978         $(common-objpfx)cmath.
6979         ($(common-objpfx)cstdlib): New target.
6980         ($(common-objpfx)cmath): Likewise.
6981
6982 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
6983
6984         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
6985
6986 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6987
6988         [BZ #20327]
6989         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
6990         are not part of the string.
6991
6992 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6993
6994         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
6995         * nptl/tst-cancel4-common.h (fifoname): New variable.
6996         (fifofd): Likewise.
6997         (cl_fifo): New function.
6998         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
6999         SIGINT.
7000         (tf_open): Add early cancel test.
7001
7002 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
7003
7004         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
7005
7006 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
7007
7008         * sysdeps/generic/ldsodefs.h
7009         (dl_symbol_visibility_binds_local_p): New inline function.
7010         * elf/dl-addr.c (determine_info): Treat hidden and internal
7011         symbols as local.
7012         * elf/dl-lookup.c (do_lookup_x): Likewise.
7013         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
7014
7015 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
7016
7017         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
7018         invalid exception for a sNaN input.
7019         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7020         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
7021         (__nearbyint_vis3): Likewise
7022         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
7023         (__nearbyintf_vis3): Likewise
7024         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
7025         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7026         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
7027         Likewise.
7028         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
7029         Likewise.
7030
7031 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
7032
7033         [BZ #20139]
7034         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
7035         (HAVE_AVX512DQ_ASM_SUPPORT): This.
7036         * sysdeps/x86_64/configure.ac: Require assembler from binutils
7037         2.24 or above.
7038         (HAVE_AVX512_ASM_SUPPORT): Removed.
7039         (HAVE_AVX512DQ_ASM_SUPPORT): New.
7040         * sysdeps/x86_64/configure: Regenerated.
7041         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
7042         check unconditional.
7043         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
7044         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
7045         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
7046         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7047         Likewise.
7048         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
7049         Likewise.
7050         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
7051         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
7052         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
7053         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
7054         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
7055         Likewise.
7056         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
7057         Likewise.
7058         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7059         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7060         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
7061         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
7062         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
7063         Likewise.
7064         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
7065         Likewise.
7066         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
7067         Likewise.
7068         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
7069         Likewise.
7070         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
7071         Likewise.
7072         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
7073         Likewise.
7074         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
7075         Likewise.
7076         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
7077         Likewise.
7078         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
7079         Likewise.
7080         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
7081         Likewise.
7082         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
7083         Likewise.
7084
7085 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
7086
7087         [BZ #20024]
7088         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
7089         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
7090         of this implementation of vector function.
7091         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
7092         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
7093         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
7094         Likewise.
7095         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
7096         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
7097         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
7098         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
7099         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
7100         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
7101         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
7102         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
7103         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
7104         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
7105         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
7106         for testing vector sincos with fixed ABI.
7107         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
7108         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
7109         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
7110         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
7111         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
7112         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
7113         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
7114         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
7115         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
7116         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
7117         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
7118         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
7119         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
7120         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
7121         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
7122         * sysdeps/x86_64/fpu/Makefile: Added new tests.
7123
7124 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
7125
7126         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
7127
7128 2016-06-30  Anton Blanchard  <anton@samba.org>
7129
7130         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7131         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
7132         s_sinf-ppc64.
7133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
7134         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7136         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7137
7138 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7139
7140         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7141         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7142         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
7143         e_expf-ppc64.
7144         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
7145         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
7146         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
7147         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
7148
7149 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
7150
7151         [BZ #20277]
7152         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
7153         when SHARED is defined.
7154
7155 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7156
7157         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
7158         (index_arch_Prefer_ERMS): Likewise.
7159         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
7160         __memcpy_erms for Prefer_ERMS.
7161         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7162         (__memmove_erms): Enabled for libc.a.
7163         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
7164         __memmove_erms or Prefer_ERMS.
7165         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
7166         __mempcpy_erms for Prefer_ERMS.
7167         * sysdeps/x86_64/multiarch/memset.S (memset): Return
7168         __memset_erms for Prefer_ERMS.
7169
7170 2016-06-30  Andreas Schwab  <schwab@suse.de>
7171
7172         [BZ #20262]
7173         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
7174         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
7175         of memory.
7176
7177 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
7178
7179         [BZ #18645]
7180         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
7181         (test-extras): Add tst-cleanupx4aux.
7182         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
7183         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
7184         tst-cleanupx4aux.o.
7185         * nptl/tst-cleanupx4aux.c: New file.
7186
7187 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
7188
7189         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
7190
7191 2016-06-29  Andreas Schwab  <schwab@suse.de>
7192
7193         [BZ #20260]
7194         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
7195         address before the beginning of the string as an integer to avoid
7196         array-bounds warning.
7197
7198 2016-06-28  Richard Henderson  <rth@redhat.com>
7199
7200         * elf/elf.h (EM_BPF): New.
7201         (EM_NUM): Update.
7202         (R_BPF_NONE, R_BPF_MAP_FD): New.
7203
7204         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
7205         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
7206         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
7207         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
7208         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
7209         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
7210         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
7211         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
7212         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
7213         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
7214         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
7215         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
7216         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
7217         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
7218         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
7219         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
7220         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
7221         (EM_NUM): Update.
7222
7223 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
7224
7225         [BZ #18960]
7226         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
7227         Set _nl_current_LC_CATEGORY_used to two instead of one.
7228
7229 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
7230
7231         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
7232         (do_test): ... this.
7233         (TEST_FUNCTION): New macro.
7234          Include test-skeleton.c.
7235         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
7236         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
7237
7238 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
7239
7240         [BZ #15479]
7241         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
7242         floating-point environment rather than just control word.
7243         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
7244         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
7245         floating-point environment, with "invalid" exceptions merged in,
7246         rather than just control word.
7247         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
7248         * math/libm-test.inc (trunc_test_data): Do not allow spurious
7249         "inexact" exceptions.
7250
7251         [BZ #15479]
7252         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
7253         floating-point environment rather than just control word.
7254         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
7255         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
7256         floating-point environment, with "invalid" exceptions merged in,
7257         rather than just control word.
7258         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
7259         * math/libm-test.inc (floor_test_data): Do not allow spurious
7260         "inexact" exceptions.
7261
7262         [BZ #15479]
7263         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
7264         floating-point environment rather than just control word.
7265         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
7266         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
7267         floating-point environment, with "invalid" exceptions merged in,
7268         rather than just control word.
7269         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
7270         * math/libm-test.inc (ceil_test_data): Do not allow spurious
7271         "inexact" exceptions.
7272
7273 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
7274
7275         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
7276         __libc_vfork.
7277         (__vfork) [IS_IN (libc)]: Remove alias.
7278         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
7279         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
7280         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
7281
7282 2016-06-24  Torvald Riegel  <triegel@redhat.com>
7283
7284         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
7285         of atomic_compare_and_exchange_bool_rel.
7286         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7287         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
7288         catomic_compare_and_exchange_bool_rel): Remove.
7289         * sysdeps/aarch64/atomic-machine.h
7290         (atomic_compare_and_exchange_bool_rel): Likewise.
7291         * sysdeps/alpha/atomic-machine.h
7292         (atomic_compare_and_exchange_bool_rel): Likewise.
7293         * sysdeps/arm/atomic-machine.h
7294         (atomic_compare_and_exchange_bool_rel): Likewise.
7295         * sysdeps/mips/atomic-machine.h
7296         (atomic_compare_and_exchange_bool_rel): Likewise.
7297         * sysdeps/microblaze/atomic-machine.h
7298         ( __arch_compare_and_exchange_bool_8_rel,
7299         __arch_compare_and_exchange_bool_16_rel): Likewise.
7300         * sysdeps/powerpc/atomic-machine.h
7301         ( __arch_compare_and_exchange_bool_8_rel,
7302         __arch_compare_and_exchange_bool_16_rel): Likewise.
7303         * sysdeps/powerpc/powerpc32/atomic-machine.h
7304         ( __arch_compare_and_exchange_bool_32_rel,
7305         __arch_compare_and_exchange_bool_64_rel): Likewise.
7306         * sysdeps/powerpc/powerpc64/atomic-machine.h
7307         ( __arch_compare_and_exchange_bool_32_rel,
7308         __arch_compare_and_exchange_bool_64_rel): Likewise.
7309         * sysdeps/tile/atomic-machine.h
7310         (atomic_compare_and_exchange_bool_rel): Likewise.
7311
7312 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
7313
7314         [BZ #20296]
7315         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
7316         when either argument is a NaN.
7317         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
7318         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
7319
7320         * math/libm-test.inc (snan_value_ld): New macro.
7321         (isgreater_test_data): Add sNaN tests.
7322         (isgreaterequal_test_data): Likewise.
7323         (isless_test_data): Likewise.
7324         (islessequal_test_data): Likewise.
7325         (islessgreater_test_data): Likewise.
7326         (isunordered_test_data): Likewise.
7327         (nextafter_test_data): Likewise.
7328         (nexttoward_test_data): Likewise.
7329         (remainder_test_data): Likewise.
7330         (remquo_test_data): Likewise.
7331         (significand_test_data): Likewise.
7332         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
7333
7334 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7335
7336         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
7337         environment macros are defined.
7338         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
7339
7340 2016-06-23  Florian Weimer  <fweimer@redhat.com>
7341
7342         [BZ #20191]
7343         Implement vtable verification in libio.
7344         * Makerules (shlib.lds): Place __libc_IO_vtables section.
7345         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
7346         * debug/vdprintf_chk.c (__vdprintf_chk): Call
7347         _IO_new_file_init_internal instead of _IO_file_init.
7348         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
7349         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
7350         * libio/Makefile (routines): Add vtables.
7351         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
7352         (_IO_init): Remove, not for internal use.
7353         (_IO_init_internal): Declare, internal replacement for _IO_init.
7354         (_IO_file_init): Remove, not for internal use.
7355         (_IO_new_file_init): Remove, not for internal use.
7356         (_IO_new_file_init_internal): Declare, internal replacement for
7357         _IO_new_file_init.
7358         (_IO_old_file_init): Remove, not for internal use.
7359         (_IO_old_file_init_internal): Declare, internal replacement for
7360         _IO_old_file_init.
7361         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
7362         internal use.
7363         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
7364         Declare.
7365         (libio_vtable): New macro.
7366         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
7367         functions.
7368         * libio/fileops.c (_IO_new_file_init_internal): Rename from
7369         _IO_new_file_init.
7370         (_IO_new_file_init): New externally visible wrapper which disables
7371         vtable verification.
7372         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
7373         Define as vtables.
7374         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
7375         (_IO_init): New externally visible wrapper which disables
7376         vtable verification.
7377         * libio/iofdopen.c (_IO_new_fdopen): Call
7378         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
7379         comment.
7380         * libio/iofopen.c (__fopen_internal): Call
7381         _IO_new_file_init_internal instead of _IO_file_init.
7382         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
7383         Define as vtables.
7384         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
7385         _IO_new_file_init_internal instead of _IO_file_init.
7386         * libio/iopopen.c (_IO_new_popen): Likewise.
7387         (_IO_proc_jumps): Define as vtable.
7388         * libio/iovdprintf.c (_IO_vdprintf): Call
7389         _IO_new_file_init_internal instead of _IO_file_init.
7390         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
7391         (__open_memstream): Call _IO_init_internal instead of _IO_init.
7392         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
7393         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
7394         _IO_old_file_init.
7395         (_IO_old_file_init): New externally visible wrapper which disables
7396         vtable verification.
7397         (_IO_old_file_jumps): Define as vtable.
7398         * libio/oldiofdopen.c (_IO_old_fdopen): Call
7399         _IO_old_file_init_internal instead of _IO_old_file_init.
7400         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
7401         * libio/oldiopopen.c (_IO_old_popen): Likewise.
7402         (_IO_old_proc_jumps): Define as vtable.
7403         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
7404         Define as vtables.
7405         * libio/vtables.c: New file.
7406         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
7407         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
7408         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
7409         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
7410         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
7411         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
7412         instead of _IO_init.
7413
7414 2016-06-23  Florian Weimer  <fweimer@redhat.com>
7415
7416         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
7417
7418 2016-06-23  Florian Weimer  <fweimer@redhat.com>
7419
7420         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
7421         potentially unused.
7422
7423 2016-06-22  Florian Weimer  <fweimer@redhat.com>
7424
7425         * test-skeleton.c (write_message): New function.
7426         * malloc/tst-mallocfork2.c (write_message): Remove.
7427         * debug/tst-longjmp_chk2.c (write_indented): New function.
7428         (write_message): Remove.
7429         (stackoverflow_handler): Call write_indented.
7430
7431 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
7432
7433         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
7434         "inexact" exceptions after fnstenv.
7435         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7436         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7437         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7438
7439 2015-06-22  Zack Weinberg  <zackw@panix.com>
7440
7441         * sysdeps/generic/bits/hwcap.h: Moved to ...
7442         * bits/hwcap.h: Here.
7443
7444 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
7445
7446         * sysdeps/aarch64/memcpy.S (memcpy):
7447         Further tuning for performance.
7448
7449 2016-06-21  Florian Weimer  <fweimer@redhat.com>
7450
7451         [BZ #20284]
7452         * malloc/arena.c (reused_arena): Do not return NULL if we start
7453         out with a non-corrupted arena.
7454
7455 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7456
7457         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
7458         * misc/tst-preadvwritev.c: New file.
7459         * misc/tst-preadvwritev64.c: Likewise.
7460         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
7461         usage.
7462         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
7463         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
7464         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
7465         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
7466
7467 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
7468
7469         [BZ #19654]
7470         * sysdeps/x86_64/fpu/Makefile: Added new tests.
7471         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
7472         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
7473         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
7474         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
7475         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
7476         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
7477         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
7478         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
7479         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
7480         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
7481         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
7482         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
7483         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
7484         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
7485         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
7486         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
7487         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
7488         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
7489         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
7490         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
7491         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
7492         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
7493         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
7494         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
7495         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
7496
7497 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
7498
7499         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
7500         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
7501
7502 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
7503
7504         * sysdeps/aarch64/memcpy.S (memcpy):
7505         Rewrite of optimized memcpy and memmove.
7506         * sysdeps/aarch64/memmove.S (memmove): Remove
7507         memmove code (merged into memcpy.S).
7508
7509 2016-06-20  Florian Weimer  <fweimer@redhat.com>
7510
7511         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
7512         * sysdeps/generic/dl-dtv.h: New file.
7513         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7514         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
7515         (dtv_t): Remove.
7516         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7517         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
7518         (dtv_t): Remove.
7519         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7520         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
7521         (dtv_t): Remove.
7522         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7523         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
7524         (dtv_t): Remove.
7525         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7526         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
7527         (dtv_t): Remove.
7528         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7529         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
7530         (dtv_t): Remove.
7531         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7532         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
7533         (dtv_t): Remove.
7534         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
7535         (dtv_t): Remove.
7536         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7537         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
7538         (dtv_t): Remove.
7539         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7540         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
7541         (dtv_t): Remove.
7542         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7543         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
7544         (dtv_t): Remove.
7545         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7546         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
7547         (dtv_t): Remove.
7548         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7549         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
7550         (dtv_t): Remove.
7551         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7552         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
7553         (dtv_t): Remove.
7554         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7555         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
7556         (dtv_t): Remove.
7557         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
7558         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
7559         (dtv_t): Remove.
7560
7561 2016-06-20  Florian Weimer  <fweimer@redhat.com>
7562
7563         Revert symbol poisoning of  __malloc_initialize_hook.
7564         * include/stdc-predef.h (__malloc_initialize_hook): Remove
7565         poisoning.
7566         * malloc/Makefile: Remove un-poisoning.
7567         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
7568         instead of old__malloc_initialize_hook.
7569         * malloc/malloc-hooks.h: Likewise.
7570         * malloc/malloc.c: Likewise.
7571         * malloc/mcheck-init.c: Likewise.
7572
7573 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
7574
7575         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
7576
7577 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
7578
7579         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
7580         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
7581         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
7582         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
7583
7584 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7585
7586         * NEWS: Mention addition of nextup and nextdown.
7587         * manual/arith.texi: Document nextup and nextdown.
7588         * manual/libm-err-tab.pl: Add nextup and nextdown.
7589         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
7590         * math/Versions (libm): Add GLIBC_2.24.
7591         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
7592         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
7593         Add new test.
7594         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
7595         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
7596         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
7597         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
7598         (nextup_test_data): Likewise.
7599         (nextdown_test_data): Likewise.
7600         * math/s_nextdown.c: New file.
7601         * math/s_nextdownf.c: Likewise.
7602         * math/s_nextdownl.c: Likewise.
7603         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
7604         F(nextup): New function.
7605         F(nextdown): Likewise.
7606         * math/tgmath.h: Add nextup and nextdown.
7607         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
7608         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
7609         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
7610         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
7611         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
7612         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
7613         Add nextup and nextdown.
7614         (CFLAGS-nldbl-nextup.c): New variable.
7615         (CFLAGS-nldbl-nextdown.c): Likewise.
7616         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
7617         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
7618         * sysdeps/nacl/libm.abilist: Update.
7619         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7620         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7621         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7622         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7623         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7624         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7625         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7626         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7627         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7628         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7629         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7630         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
7632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7633         Likewise.
7634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
7635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
7636         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7637         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7638         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7639         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7640         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7641         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
7642         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
7643         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7644         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7645         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
7646         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7647
7648 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7649
7650         * manual/pattern.texi: Fix typos & grammar errors.
7651
7652 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7653
7654         * manual/search.texi: Fix typos & grammar errors.
7655
7656 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7657
7658         * manual/message.texi: Fix typos & grammar errors.
7659
7660 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
7661
7662         * manual/contrib.texi: Fix spelling typos.
7663         * manual/crypt.texi: Likewise.
7664         * manual/filesys.texi: Likewise.
7665         * manual/locale.texi: Likewise.
7666         * manual/message.texi: Likewise.
7667         * manual/nss.texi: Likewise.
7668         * manual/string.texi: Likewise.
7669
7670 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7671
7672         * manual/locale.texi: Fix typos & grammar errors.
7673
7674 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7675
7676         * manual/charset.texi: Fix typos & grammar errors.
7677
7678 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7679
7680         * manual/string.texi: Fix typos.
7681
7682 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7683
7684         * manual/ctype.texi: Fix typos.
7685
7686 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
7687
7688         * manual/memory.texi: Fix various typos & grammar errors.
7689
7690 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
7691
7692         [BZ #20255]
7693         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
7694         * math/libm-test.inc (fdim_test_data): Add another test.
7695
7696         [BZ #6796]
7697         [BZ #20255]
7698         [BZ #20256]
7699         * math/s_fdim.c: Include <math_private.h>.
7700         (__fdim): Use math_narrow_eval on result.
7701         * math/s_fdimf.c: Include <math_private.h>.
7702         (__fdimf): Use math_narrow_eval on result.
7703         * sysdeps/i386/fpu/s_fdim.S: Remove file.
7704         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
7705         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
7706         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
7707         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
7708         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
7709         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
7710         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
7711         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
7712         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
7713         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
7714         * math/libm-test.inc (fdim_test_data): Expect errno setting on
7715         overflow.  Add sNaN tests.
7716
7717         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
7718         fpclassify.
7719         * math/s_fdimf.c (__fdimf): Likewise.
7720         * math/s_fdiml.c (__fdiml): Likewise.
7721
7722 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7723
7724         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
7725         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
7726         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7727         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
7728         ifunc'ed strcasecmp/strncasecmp.
7729         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
7730         [EALIGN]: Removed.
7731         [END]: Likewise.
7732         [__strcasecmp]: Define instead of the above to control symbol name.
7733         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
7734         for __strcasecmp_power8.
7735         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
7736         for __strncasecmp_power8.
7737         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
7738         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
7739         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
7740         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
7741         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
7742         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
7743
7744 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
7745
7746         [BZ #20252]
7747         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
7748         arguments when second argument is a NaN.
7749         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
7750         qNaN tests.
7751
7752         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
7753         (conj_test_data): Likewise.
7754         (copysign_test_data): Likewise.
7755         (creal_test_data): Likewise.
7756         (fma_test_data): Likewise.
7757         (fmod_test_data): Likewise.
7758
7759         [BZ #20250]
7760         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
7761         itself.
7762         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
7763         zero input to itself.
7764         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
7765         Likewise.
7766         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
7767         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
7768         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
7769         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
7770         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
7771
7772 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7773
7774         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
7775         * nptl/tst-cancel4-common.c: New file.
7776         * nptl/tst-cancel4-common.h: Likewise.
7777         * nptl/tst-cancel4.c: Move common definitions to
7778         tst-cancel4-common.{c,h} file.
7779         * nptl/tst-cancel4_1.c: New test.
7780         * nptl/tst-cancel4_2.c: New test.
7781
7782 2016-06-13  Florian Weimer  <fweimer@redhat.com>
7783
7784         [BZ #20248]
7785         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
7786         (write_message): New function.
7787         (stackoverflow_handler): Call it instead of printf, to avoid
7788         excessive stack usage by printf.
7789         (do_test): Restore SIGSEGV, SIGBUS default handlers.
7790
7791 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7792
7793         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
7794         (prio_inherit_missing): Remove define.
7795         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7796         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7797         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
7798         Likewise.
7799         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7800         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7801         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7802         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7803         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7804         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7805
7806 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
7807
7808         [BZ #19670]
7809         [BZ #19672]
7810
7811         * io/test-lfs.c (do_prepare): Use xmalloc.
7812         * io/tst-fcntl.c (do_prepare): Likewise.
7813         * libio/tst-fopenloc.c (do_bz17916): Likewise.
7814         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
7815         * login/tst-utmp.c (do_prepare): Likewise.
7816         * posix/tst-exec.c (do_prepare): Likewise.
7817         * posix/tst-pathconf.c (prepare): Likewise.
7818         * posix/tst-spawn.c (do_prepare): Likewise.
7819         * posix/tst-truncate.c (do_prepare): Likewise.
7820         * rt/tst-aio.c (do_prepare): Likewise.
7821         * rt/tst-aio64.c (do_prepare): Likewise.
7822
7823 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7824
7825         [BZ #20237]
7826         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
7827         (get*ent): Set entidx to NULL during initialization.  If entidx is
7828         NULL, start iteration from the beginning.
7829
7830 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7831
7832         * malloc/malloc.c (musable): Return correct size for dumped fake
7833         mmapped chunk.
7834
7835 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7836
7837         [BZ #20222]
7838         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
7839         (_IO_cookie_write): Likewise.
7840         (_IO_cookie_seek): Likewise.
7841         (_IO_cookie_close): Likewise.
7842         (_IO_old_cookie_seek): Likewise.
7843         (set_callbacks): New function.
7844         (_IO_cookie_init): Call set_callbacks to copy callbacks.
7845
7846 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
7847
7848         * locale/programs/localedef.c (oldstyle_tables): Remove.
7849         * locale/programs/localedef.h (oldstyle_tables): Likewise.
7850
7851 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
7852
7853         [BZ #20240]
7854         * math/Makefile (CFLAGS-s_modf.c): New variable.
7855         (CFLAGS-s_modff.c): Likewise.
7856         (CFLAGS-s_modfl.c): Likewise.
7857         * math/libm-test.inc (modf_test_data): Add sNaN tests.
7858
7859 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
7860
7861         [BZ #20215]
7862         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
7863         [!__GNUC_PREREQ (3,2)]: Likewise.
7864
7865 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
7866
7867         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
7868         (msghdr.msg_controllen): Likewise.
7869         (cmsghdr.cmsg_len): Likewise.
7870         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
7871         ptw-oldsendmsg.
7872         (CFLAGS-oldrecvmsg.c): Remove rule.
7873         (CFLAGS-oldsendmsg.c): Likewise.
7874         (CFLAGS-recvmsg.c): Add rule.
7875         (CFLAGS-sendmsg.c): Likewise.
7876         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
7877         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
7878         (CFLAGS-recvmsg.c): Remove rule.
7879         (CFLAGS-sendmsg.c): Likewise.
7880         (CFLAGS-oldrecvmsg.c): Likewise.
7881         (CFLAGS-oldsendmsg.c): Likewise.
7882         (CFLAGS-recvmmsg.c): Likewise.
7883         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
7884         to kernel defined interfaces.
7885         (msghdr.msg_controllen): Likewise.
7886         (cmsghdr.cmsg_len): Likewise.
7887         (msghdr.__glibc_reserved1): Remove member.
7888         (msghdr.__glibc_reserved2): Likewise.
7889         (cmsghdr.__glibc_reserved1): Likewise.
7890         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
7891         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
7892         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
7893         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
7894         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
7895         version.
7896         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
7897         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
7898         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
7899         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
7900         Remove recvmsg and sendmsg.
7901         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
7902         Likewise.
7903         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
7904         Likewise.
7905         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
7906         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
7907         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
7908         Likewise.
7909         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
7910         Likewise.
7911         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
7912         [libc] (GLIBC_2.24): Likewise.
7913         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
7914         Likewise.
7915         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
7916         Likewise.
7917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
7918         [libc] (GLIBC_2.24): Likewise.
7919         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
7920         Likewise.
7921         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
7922         Likewise.
7923         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
7924         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
7925         Likewise.
7926         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
7927         Likewise.
7928         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
7929         Likewise.
7930         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
7931         Likewise.
7932         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
7933         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
7934         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
7935         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
7936         version for {recv,send,recm,sendm}msg.
7937         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7938         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7939         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7940         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7941         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7942         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7943         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7944         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7945         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7946         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7947         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7948         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7950         Likewise.
7951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7952         Likewise.
7953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7955         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7956         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7957         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7958         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7959         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7960         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7962         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7963         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7964         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7965         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7966
7967 2016-06-10  Florian Weimer  <fweimer@redhat.com>
7968
7969         [BZ #19564]
7970         Remove __malloc_initialize_hook from the API.
7971         * malloc/malloc.h (__malloc_initialize_hook): Remove.
7972         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
7973         #pragma GCC poison.
7974         * malloc/malloc-hooks.h: New file.
7975         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
7976         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
7977         (old__malloc_initialize_hook): Rename from
7978         __malloc_initialize_hook to evade poisoning.  Turn into compat
7979         symbol.
7980         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
7981         __malloc_initialize_hook.
7982         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
7983         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
7984         * manual/memory.texi (Hooks for Malloc): Remove
7985         __malloc_initialize_hook.  Adjust hook example.
7986
7987 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
7988
7989         [BZ #20235]
7990         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
7991         itself.
7992         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7993         * math/libm-test.inc (log2_test_data): Add sNaN tests.
7994
7995         [BZ #20234]
7996         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
7997         infinity or NaN input to itself.
7998
7999         [BZ #20233]
8000         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
8001         to itself.
8002
8003         [BZ #20232]
8004         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
8005         itself.
8006
8007 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
8008
8009         * sysdeps/x86_64/start.S (_start): Always indirect branch to
8010         __libc_start_main via GOT.
8011
8012 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
8013
8014         * sysdeps/x86_64/memcopy.h: New file.
8015         * sysdeps/x86_64/wordcopy.c: Likewise.
8016
8017 2016-06-09  Florian Weimer  <fweimer@redhat.com>
8018
8019         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
8020         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
8021         <cstdlib>.
8022         (optimization_barrier): New.
8023         (do_test): Use it.  Call quick_exit in the global namespace.
8024         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
8025         instead of <cstdlib>, <thread>.
8026         (optimization_barrier): New.
8027         (non_main_thread): Adjust declaration.  Call optimization_barrier.
8028         Call quick_exit in the global namespace.
8029         (do_test): Call optimization_barrier.  Use pthread_create,
8030         pthread_join instead of std::thread.
8031
8032 2016-06-09  Andreas Schwab  <schwab@suse.de>
8033
8034         [BZ #19755]
8035         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
8036         new entries in auto-propagate mode.
8037         * nscd/grpcache.c (cache_addgr): Likewise.
8038
8039 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
8040
8041         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
8042         New functions.
8043         (add_temp_file): Use them.
8044
8045 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
8046
8047         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
8048
8049 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
8050
8051         [BZ #20229]
8052         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
8053         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8054         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
8055
8056         [BZ #20228]
8057         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
8058         itself.
8059         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
8060         * math/libm-test.inc (log10_test_data): Add sNaN tests.
8061
8062         [BZ #20227]
8063         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
8064         itself.
8065         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
8066         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8067         * math/libm-test.inc (log_test_data): Add sNaN tests.
8068
8069         [BZ #20226]
8070         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
8071         itself.
8072         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
8073         * math/libm-test.inc (exp_test_data): Add sNaN tests.
8074         (exp10_test_data): Likewise.
8075         (expm1_test_data): Likewise.
8076
8077         [BZ #20225]
8078         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
8079         itself.
8080         * math/s_ldexpf.c (__ldexpf): Likewise.
8081         * math/s_ldexpl.c (__ldexpl): Likewise.
8082         * math/w_scalbln.c (__w_scalbln): Likewise.
8083         * math/w_scalblnf.c (__w_scalblnf): Likewise.
8084         * math/w_scalblnl.c (__w_scalblnl): Likewise.
8085         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
8086         (scalbln_test_data): Likewise.
8087
8088         [BZ #20224]
8089         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
8090         argument to itself.
8091         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
8092
8093 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
8094
8095         [BZ #19776]
8096         * sysdeps/x86_64/memcpy.S: Make it dummy.
8097         * sysdeps/x86_64/mempcpy.S: Likewise.
8098         * sysdeps/x86_64/memmove.S: New file.
8099         * sysdeps/x86_64/memmove_chk.S: Likewise.
8100         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
8101         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
8102         * sysdeps/x86_64/memmove.c: Removed.
8103         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
8104         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
8105         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
8106         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
8107         Likewise.
8108         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8109         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8110         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
8111         memcpy-sse2-unaligned, memmove-avx-unaligned,
8112         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
8113         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8114         (__libc_ifunc_impl_list): Replace
8115         __memmove_chk_avx512_unaligned_2 with
8116         __memmove_chk_avx512_unaligned.  Remove
8117         __memmove_chk_avx_unaligned_2.  Replace
8118         __memmove_chk_sse2_unaligned_2 with
8119         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
8120         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
8121         with __memmove_avx512_unaligned.  Replace
8122         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
8123         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
8124         with __memcpy_chk_avx512_unaligned.  Remove
8125         __memcpy_chk_avx_unaligned_2.  Replace
8126         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
8127         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
8128         Replace __memcpy_avx512_unaligned_2 with
8129         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
8130         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
8131         with __mempcpy_chk_avx512_unaligned.  Remove
8132         __mempcpy_chk_avx_unaligned_2.  Replace
8133         __mempcpy_chk_sse2_unaligned_2 with
8134         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
8135         Replace __mempcpy_avx512_unaligned_2 with
8136         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
8137         Replace __mempcpy_sse2_unaligned_2 with
8138         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
8139         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
8140         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
8141         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
8142         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
8143         (ENTRY): Removed.
8144         (END): Likewise.
8145         (ENTRY_CHK): Likewise.
8146         (libc_hidden_builtin_def): Likewise.
8147         Don't include ../memcpy.S.
8148         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
8149         __memcpy_chk_avx512_unaligned_erms and
8150         __memcpy_chk_avx512_unaligned.  Use
8151         __memcpy_chk_avx_unaligned_erms and
8152         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
8153         Default to __memcpy_chk_sse2_unaligned.
8154         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
8155         Change function suffix from unaligned_2 to unaligned.
8156         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
8157         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
8158         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
8159         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
8160         (ENTRY): Removed.
8161         (END): Likewise.
8162         (ENTRY_CHK): Likewise.
8163         (libc_hidden_builtin_def): Likewise.
8164         Don't include ../mempcpy.S.
8165         (mempcpy): New.  Add a weak alias.
8166         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
8167         __mempcpy_chk_avx512_unaligned_erms and
8168         __mempcpy_chk_avx512_unaligned.  Use
8169         __mempcpy_chk_avx_unaligned_erms and
8170         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
8171         Default to __mempcpy_chk_sse2_unaligned.
8172
8173 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
8174
8175         [BZ #19881]
8176         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
8177         into ...
8178         * sysdeps/x86_64/memset.S: This.
8179         (__bzero): Removed.
8180         (__memset_tail): Likewise.
8181         (__memset_chk): Likewise.
8182         (memset): Likewise.
8183         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
8184         defined.
8185         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
8186         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
8187         (__memset_zero_constant_len_parameter): Check SHARED instead of
8188         PIC.
8189         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
8190         memset-avx2 and memset-sse2-unaligned-erms.
8191         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8192         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
8193         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
8194         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
8195         (__bzero): Enabled.
8196         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
8197         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
8198         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
8199         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
8200         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
8201         (memset): Removed.
8202         (__memset_chk): Likewise.
8203         (MEMSET_SYMBOL): New.
8204         (libc_hidden_builtin_def): Replace __memset_sse2 with
8205         __memset_sse2_unaligned.
8206         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
8207         __memset_chk_sse2 and __memset_chk_avx2 with
8208         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
8209         Use __memset_chk_sse2_unaligned_erms or
8210         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
8211         __memset_chk_avx512_unaligned_erms and
8212         __memset_chk_avx512_unaligned.
8213
8214 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8215
8216         * math/gen-auto-libm-test.c (fp_format_desc): remove
8217         suffix member.
8218         (output_generic_value): Remove usage of suffix member,
8219         and the resulting unuse of the fp_format argument.
8220         (output_for_one_input_case): Remove unused fp_format
8221         parameter.
8222
8223         * math/auto-libm-test-out: Regenerate.
8224
8225         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
8226         usage with TEST_COND_ibm128.
8227         (TEST_COND_flt_32): Remove.
8228         (TEST_COND_dbl_64): Remove.
8229         (TEST_COND_ldbl_96_intel): Remove.
8230         (TEST_COND_ldbl_96_m68k): Remove.
8231         (TEST_COND_ldbl_128): Remove.
8232
8233 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8234
8235         * auto-libm-test-in:
8236         Replace flt-32 usage with binary32.
8237         Replace dbl-64 usage with binary64.
8238         Replace ldbl-intel-96 usage with intel96.
8239         Replace ldbl-m68k-96 usage with m68k96.
8240         Replace ldbl-128ibm usage with ibm128.
8241         Replace ldbl-128 usage with binary128.
8242
8243         * auto-libm-test-out: Regenerate.
8244
8245 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8246
8247         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
8248         (parse_ulps): Dynamically generate type name matching
8249         string from all_floats.
8250         (get_ulps): Generate the ulps as an array instead.
8251         (output_ulps): Dynamically compose the type based
8252         on the number of supported formats, and print
8253         the indices as type specific helper macros.
8254
8255         * math/libm-test.inc: Remove comment about CHOOSE.
8256         (ulp_data): Generate the type in libm-test-ulps.h.
8257         (ULP_IDX): New macro.
8258         (find_ulps): Update usage of max_ulp.
8259
8260         * math/test-double-vlen2.h (CHOOSE): Remove.
8261         * math/test-double-vlen4.h (CHOOSE): Likewise.
8262         * math/test-double-vlen8.h (CHOOSE): Likewise.
8263         * math/test-float.c (CHOOSE): Likewise.
8264         * math/test-float-finite.c (CHOOSE): Likewise.
8265         * math/test-double.c (CHOOSE): Likewise.
8266         * math/test-double-finite.c (CHOOSE): Likewise.
8267         * math/test-idouble.c (CHOOSE): Likewise.
8268         * math/test-ifloat.c (CHOOSE): Likewise.
8269         * math/test-ildoubl.c (CHOOSE): Likewise.
8270         * math/test-ldouble-finite.c (CHOOSE): Likewise.
8271         * math/test-ldouble.c (CHOOSE): Likewise.
8272
8273         * math/test-float.h (TEST_FLOAT): Remove.
8274         * math/test-double.h (TEST_DOUBLE): Likewise.
8275         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
8276
8277 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8278
8279         * math/gen-libm-test.pl: (apply_lit): New subroutine.
8280         (parse_args): Strip C suffix from floating point literals
8281         typed with 'f' and wrap them with LIT().
8282
8283         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
8284         (test_ff_f_data_nexttoward): Rename to
8285         (test_fj_f_data): New struct.
8286         (nexttoward_test_data): Relabel tests as
8287         TEST_fj_f instead of TEST_ff_f.
8288
8289 2016-06-08  Florian Weimer  <fweimer@redhat.com>
8290
8291         Emacs bug 23726.
8292         * malloc/malloc.c (dumped_main_arena_start): Update comment.
8293         (__libc_realloc): Correct size computation for dumped fake mmapped
8294         chunks.
8295
8296 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
8297
8298         [BZ #20219]
8299         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
8300         to itself.
8301         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
8302
8303         [BZ #20218]
8304         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
8305         to itself.
8306         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
8307
8308 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
8309
8310         [BZ #20195]
8311         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
8312         check to ...
8313         (init_cpu_features): Here.
8314
8315 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
8316
8317         [BZ #20214]
8318         * sysdeps/unix/sysv/linux/bits/in.h
8319         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
8320          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
8321         Define to 1.
8322         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
8323          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
8324         Define to 0.
8325         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
8326         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
8327
8328 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
8329
8330         [BZ #20198]
8331         * stdlib/Makefile (tests): Add tst-quick_exit, and
8332         tst-thread-quick_exit.
8333         [ifeq ($(have-cxx-thread_local),yes)]
8334         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
8335         (CFLAGS-tst-thread-quick_exit.o): Likewise.
8336         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
8337         (LDLIBS-tst-thread-quick_exit): Likewise.
8338         [ifneq ($(have-cxx-thread_local),yes)]
8339         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
8340         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
8341         If run_dtors is true call __call_tls_dtors.
8342         (exit): Call __run_exit_handlers with run_dtors set to true.
8343         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
8344         definition.
8345         * stdlib/quick_exit.c (quick_exit): Remove function.
8346         (__new_quick_exit): New function.
8347         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
8348         function.
8349         * stdlib/tst-quick_exit.cc: New file.
8350         * stdlib/tst-thread-quick_exit.cc: New file.
8351         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
8352         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
8353         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
8354         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
8355         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
8356         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
8357         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
8358         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
8359         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
8360         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
8361         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
8362         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
8363         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
8364         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
8365         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
8366         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
8367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
8368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
8369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
8370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
8371         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
8372         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
8373         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
8374         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
8375         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
8376         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
8377         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
8378         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
8379         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
8380         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
8381
8382 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
8383
8384         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
8385         a typo in comments.
8386
8387 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
8388
8389         [BZ #20213]
8390         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
8391         argument to itself.
8392         * math/libm-test.inc (asin_test_data): Add sNaN tests.
8393
8394 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8395
8396         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
8397         required flags.
8398         (CFLAGS-pwritev64.c): Likewise.
8399         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
8400         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
8401         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
8402         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
8403         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
8404         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
8405         syscall from auto-generation.
8406         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
8407         [WORDSIZE == 64] (pwritev64): Remove macro.
8408         [!PWRITEV] (PWRITEV): Likewise.
8409         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
8410         [!PWRITEV] (PWRITE): Likewise.
8411         [!PWRITEV] (OFF_T): Likewise.
8412         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
8413         (LO_HI_LONG): Remove macro.
8414         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
8415         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
8416         (PWRITEV): Remove macro.
8417         (PWRITEV_REPLACEMENTE): Likewise.
8418         (PWRITE): Likewise.
8419         (OFF_T): Likewise.
8420         (pwritev64): New function.
8421         * nptl/tst-cancel4.c (tf_writev): Add test.
8422
8423         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
8424         required flags.
8425         (CFLAGS-preadv64.c): Likewise.
8426         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
8427         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
8428         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
8429         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
8430         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
8431         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
8432         syscall from auto-generation.
8433         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
8434         [WORDSIZE == 64] (preadv64): Remove macro.
8435         [!PREADV] (PREADV): Likewise.
8436         [!PREADV] (PREADV_REPLACEMENT): Likewise.
8437         [!PREADV] (PREAD): Likewise.
8438         [!PREADV] (OFF_T): Likewise.
8439         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
8440         (LO_HI_LONG): Remove macro.
8441         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
8442         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
8443         (PREADV): Remove macro.
8444         (PREADV_REPLACEMENTE): Likewise.
8445         (PREAD): Likewise.
8446         (OFF_T): Likewise.
8447         (preadv64): New function.
8448         * nptl/tst-cancel4.c (tf_preadv): Add test.
8449
8450 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
8451
8452         [BZ #20212]
8453         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
8454         argument to itself.
8455         * math/libm-test.inc (acos_test_data): Add sNaN tests.
8456
8457 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8458
8459         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
8460         New symbol defined as libc_hidden_def.
8461         (strcasestr): Became a weak alias to __strcasestr.
8462         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
8463         according to multi-arch support.  Move __stpncpy hidden
8464         definition from here to...
8465         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
8466         symbol stpncpy.
8467         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
8468         libc_hidden_builtin_def.
8469         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
8470         memset symbol to use when multi-arch support is available.
8471
8472 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
8473
8474         * dlfcn/tst-rec-dlopen.c: Include string.h.
8475
8476 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
8477
8478         * manual/install.texi: Remove mention of --without-tls
8479         * INSTALL: Regenerate.
8480
8481 2016-06-05  Florian Weimer  <fweimer@redhat.com>
8482
8483         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
8484         Remove.
8485         (call_function, interposed_malloc_called): New variables.
8486         (malloc): New function.
8487         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
8488         and clear call_function as needed.
8489
8490 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
8491
8492         * include/wchar.h (__wmemset): Use __typeof.
8493
8494 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
8495
8496         * include/wchar.h (__wmemset): Declare function without typeof.
8497
8498 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
8499
8500         [BZ #20205]
8501         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
8502         exponent when incrementing negative subnormal with low mantissa
8503         word zero.
8504         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
8505         Add another test.
8506
8507 2016-06-03  Florian Weimer  <fweimer@redhat.com>
8508
8509         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
8510         __wmemset instead of wmemset.
8511
8512 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
8513
8514         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
8515         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
8516         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
8517         __USE_KERNEL_IPV6_DEFS to 0.
8518         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
8519         Update comment.
8520
8521 2016-06-01  Florian Weimer  <fweimer@redhat.com>
8522
8523         [BZ #19861]
8524         Do not use IFUNC resolver with potentially unrelocated symbol.
8525         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
8526         (DEFINE_FORK): Remove macro and inline definition.
8527         (fork_alias): Renamed from fork_ifunc.
8528         (__fork_alias): Renamed from __fork_ifunc.
8529
8530 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
8531
8532         [BZ 19653]
8533         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
8534         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
8535
8536 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8537
8538         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
8539         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
8540         i386-linux-gnu).
8541         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
8542         Set to no.
8543         * sysdeps/mach/hurd/configure: Refresh.
8544
8545 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8546
8547         [BZ #20178]
8548         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
8549         on failure instead of exit.
8550
8551 2016-05-30  Roland McGrath  <roland@hack.frob.com>
8552
8553         [BZ #3629]
8554         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
8555         of POSIX.1-2008.
8556
8557 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8558
8559         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
8560           Use PLT entry for calling _hurd_self_sigstate.
8561
8562 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
8563
8564         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
8565         available logical processors with SMT level type sharing L2
8566         cache for Intel processors.
8567
8568 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
8569
8570         [BZ #20160]
8571         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
8572         argument to itself before returning the result.
8573         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
8574         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
8575         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
8576         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
8577         Likewise.
8578         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
8579         Likewise.
8580         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
8581         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
8582         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
8583         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
8584         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
8585         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
8586
8587         [BZ #20160]
8588         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
8589         argument to itself before returning the result.
8590         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
8591         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
8592         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
8593         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
8594         Likewise.
8595         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
8596         Likewise.
8597         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
8598         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
8599         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
8600         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
8601         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
8602         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
8603
8604 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8605
8606         * libm-test.inc: Replace usage of M_El with
8607         (lit_e): New macro.
8608
8609 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8610
8611         * libm-test.inc: Replace usage of M_PI_4l with
8612         (lit_pi_4_d): New macro.
8613
8614 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8615
8616         * libm-test.inc: Replace usage of M_PIl with
8617         (lit_pi): New macro.
8618
8619 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8620
8621         * libm-test.inc: Replace usage of M_PI2l with
8622         (lit_pi_2_d): New macro.
8623
8624         * math/test-double.h (LITM): New macro.
8625         * math/test-float.h (LITM): Likewise.
8626         * math/test-ldouble.h (LITM): Likewise.
8627
8628 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8629
8630         * libm-test.inc (M_PI_34l): Rename to
8631         (lit_pi_3_m_4_d): New Macro.
8632         (M_PI_34_LOG10El): Rename to
8633         (lit_pi_3_m_4_ln10_m_d): New Macro.
8634         (M_PI2_LOG10El): Rename to
8635         (lit_pi_2_ln10_m_d):  New Macro.
8636         (M_PI4_LOG10El): Rename to
8637         (lit_pi_4_ln10_m_d):  New Macro.
8638         (M_PI_LOG10El): Rename to
8639         (lit_pi_ln10_d):  New Macro.
8640
8641 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
8642
8643         [BZ #20157]
8644         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
8645         determine whether to negate low half if [_ARCH_PPCGR], and integer
8646         comparison otherwise.
8647         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
8648         determine whether to negate low half.
8649
8650         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
8651         (NO_TEST_INLINE_DOUBLE): Likewise.
8652         (TEST_COND_x86_64): Likewise.
8653         (TEST_COND_x86): Likewise.
8654         (M_PI_6l): Likewise.
8655
8656 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8657
8658         * math/libm-test.inc:
8659         (TEST_FLOAT): Change usage to TEST_COND_binary32.
8660         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
8661         (TEST_LDOUBLE): Update usage to evaluate as true if
8662         the guarded tests match the property being tested.
8663         (LDBL_MAX_EXP): Change to MAX_EXP.
8664         (LDBL_MIN_EXP): Change to MIN_EXP.
8665         (LDBL_MANT_DIG): Change to MANT_DIG, except for
8666         nexttoward tests.
8667
8668 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8669
8670         * math/libm-test.inc:
8671         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
8672         (TYPE_MIN): Likewise.
8673         (TYPE_TRUE_MIN): Likewise.
8674         (TYPE_MAX): Likewise.
8675         (MIN_EXP): Likewise.
8676         (MAX_EXP): Likewise.
8677         (MANT_DIG): Likewise.
8678
8679         (FSTR_MAX): New macro.
8680         (__CONCATX): Likewise.
8681         (QTYPE_STR): Likewise.
8682         (TEST_COND_binary32): Likewise.
8683         (TEST_COND_binary64): Likewise.
8684         (TEST_COND_binary128): Likewise.
8685         (TEST_COND_ibm128): Likewise.
8686         (TEST_COND_intel96): Likewise.
8687         (TEST_COND_m68k96): Likewise.
8688
8689         (TEST_COND_flt_32): Redefine as equivalent format test macro.
8690         (TEST_COND_dbl_64): Likewise.
8691         (TEST_COND_ldbl_96_intel): Likewise.
8692         (TEST_COND_ldbl_96_m68k): Likewise.
8693         (TEST_COND_ldbl_128): Likewise.
8694         (TEST_COND_ldbl_128ibm): Likewise.
8695
8696         (plus_zero): Redefine using LIT macro.
8697         (minus_zero): Likewise.
8698         (plus_infty): Redefine as (INF).
8699         (minux_infty): Redefine as (-INF).
8700         (max_value): Redefine as TYPE_MAX.
8701         (min_value): Redefine as TYPE_MIN.
8702         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
8703
8704         (print_float): Refactor to use snprintf to convert FLOAT values
8705         to string. This brings it closer to dropin replacement of strtof
8706         for the TS 18661 defined types.
8707         (update_stats): Likewise.
8708         (print_complex_function_ulps): Likewise.
8709         (print_max_error): Likewise.
8710         (print_complex_max_error): Likewise.
8711         (check_float_internal): Likewise.
8712
8713         * math/test-float.h (PREFIX): New macro.
8714         (LIT): Likewise.
8715         (TYPE_STR): Likewise.
8716         (FTOSTR): Likewise.
8717
8718         * math/test-double.h (PREFIX): New macro.
8719         (LIT): Likewise.
8720         (TYPE_STR): Likewise.
8721         (FTOSTR): Likewise.
8722
8723         * math/test-ldouble.h (PREFIX): New macro.
8724         (LIT): Likewise.
8725         (TYPE_STR): Likewise.
8726         (FTOSTR): Likewise.
8727
8728 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
8729
8730         [BZ #20156]
8731         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
8732         to itself when zero or not finite.
8733         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
8734         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
8735         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
8736         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8737
8738 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
8739
8740         [BZ #20153]
8741         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
8742         x * x + x for infinities and NaNs.
8743
8744         [BZ #20151]
8745         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
8746         argument to itself before returning result.
8747         (__ieee754_y0l): Likewise.
8748         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
8749         (__ieee754_y1l).
8750
8751         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
8752         (atan_test_data): Likewise.
8753         (ceil_test_data): Likewise.
8754         (cos_test_data): Likewise.
8755         (cosh_test_data): Likewise.
8756         (erf_test_data): Likewise.
8757         (exp2_test_data): Likewise.
8758         (fabs_test_data): Likewise.
8759         (floor_test_data): Likewise.
8760         (ilogb_test_data): Likewise.
8761         (j0_test_data): Likewise.
8762         (j1_test_data): Likewise.
8763         (jn_test_data): Likewise.
8764         (lgamma_test_data): Likewise.
8765         (lrint_test_data): Likewise.
8766         (llrint_test_data): Likewise.
8767         (logb_test_data): Likewise.
8768         (lround_test_data): Likewise.
8769         (llround_test_data): Likewise.
8770         (nearbyint_test_data): Likewise.
8771         (rint_test_data): Likewise.
8772         (round_test_data): Likewise.
8773         (sin_test_data): Likewise.
8774         (sincos_test_data): Likewise.
8775         (sinh_test_data): Likewise.
8776         (sqrt_test_data): Likewise.
8777         (tan_test_data): Likewise.
8778         (tanh_test_data): Likewise.
8779         (tgamma_test_data): Likewise.
8780         (trunc_test_data): Likewise.
8781         (y0_test_data): Likewise.
8782         (y1_test_data): Likewise.
8783         (yn_test_data): Likewise.
8784
8785         * math/libm-test.inc: Update comment about NaN testing.
8786         (TEST_SNAN): New macro.
8787         (snan_value): Likewise.
8788         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
8789         (fpclassify_test_data): Add sNaN tests.
8790         (isfinite_test_data): Likewise.
8791         (isinf_test_data): Likewise.
8792         (isnan_test_data): Likewise.
8793         (isnormal_test_data): Likewise.
8794         (issignaling_test_data): Likewise.
8795         (signbit_test_data): Likewise.
8796         * math/gen-libm-test.pl (%beautify): Add snan_value.
8797         (show_exceptions): Add argument $test_snan.
8798         (parse_args): Handle snan_value as non-finite.  Update call to
8799         show_exceptions.
8800         * math/Makefile (libm-test-no-inline-cflags): Add
8801         -fsignaling-nans.
8802
8803 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8804
8805         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
8806         (CFLAGS-oldsendmsg.c): Add rule.
8807         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
8808         Correct recvmsg symbol name.
8809         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
8810         Likewise.
8811
8812 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8813
8814         * sysdeps/unix/sysv/linux/Makefile
8815         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
8816         oldsendmmsg.
8817         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
8818         sendmmsg.
8819         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8820         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8821         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8822         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8824         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8825         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8826         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
8827         Likewise.
8828         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8829         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
8830         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
8831         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
8832         iovlen and controllen fields to adjust to POSIX specification.
8833         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8834
8835         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
8836         and change to correct expected type.
8837         (msghdr.msg_controllen): Likewise.
8838         (cmsghdr.cmsg_len): Likewise.
8839         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
8840         expected POSIX assumption about the size.
8841         (msghdr.msg_controllen): Likewise.
8842         (msghdr.__glibc_reserved1): Likewise.
8843         (msghdr.__glibc_reserved2): Likewise.
8844         (cmsghdr.cmsg_len): Likewise.
8845         (cmsghdr.__glibc_reserved1): Likewise.
8846         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
8847         Add ptw-oldrecvmsg and ptw-oldsendmsg.
8848         (CFLAGS-sendmsg.c): Remove rule.
8849         (CFLAGS-recvmsg.c): Likewise.
8850         (CFLAGS-oldsendmsg.c): Add rule.
8851         (CFLAGS-oldrecvmsg.c): Likewise.
8852         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
8853         recvmsg and sendmsg.
8854         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
8855         Likewise.
8856         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
8857         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
8858         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
8859         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
8860         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
8861         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
8862         Likewise.
8863         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
8864         Likewise.
8865         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
8866         Likewise.
8867         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
8868         Likewise.
8869         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
8870         Likewise.
8871         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
8872         Likewise.
8873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
8874         (GLIBC_2.24): Likewise.
8875         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
8876         Likewise.
8877         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
8878         Likewise.
8879         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
8880         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
8881         Likewise.
8882         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
8883         Likewise.
8884         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
8885         Likewise.
8886         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
8887         (GLIBC_2.24): Likewise.
8888         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
8889         Likewise.
8890         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
8891         Likewise.
8892         * sysdeps/unix/sysv/linux/Makefile
8893         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
8894         (CFLAGS-sendmsg.c): Add rule.
8895         (CFLAGS-recvmsg.c): Likewise.
8896         (CFLAGS-oldsendmsg.c): Likewise.
8897         (CFLAGS-oldrecvmsg.c): Likewise.
8898         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
8899         initialization.
8900         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
8901         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
8902         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
8903         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
8904         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
8905         iovlen and controllen fields to adjust to POSIX specification.
8906         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
8907         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
8908         added recvmsg and sendmsg.
8909         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8910         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8911         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8912         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8913         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8914         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8915         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8916         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8917         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8918         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8919         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8920         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
8921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8922         Likewise.
8923         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
8924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8925         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8926         Likewise.
8927         Likewise.
8928         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8929         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8930         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8931         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8932         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8933         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8934         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
8935         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
8936         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
8937         Likewise.
8938         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8939         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8940
8941         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
8942         from auto-generation.
8943         (sendmsg): Likewise.
8944         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
8945         (sendmsg): Likewise.
8946         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
8947         (sendmsg): Likewise.
8948         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
8949         (sendmsg): Likewise.
8950         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
8951         (sendmsg): Likewise.
8952         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
8953         (sendmsg): Likewise.
8954         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
8955         Likewise.
8956         (sendmsg): Likewise.
8957         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
8958         (sendmsg): Likewise.
8959         * sysdeps/unix/sysv/linux/i386/kernel-features.h
8960         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8961         Remove.
8962         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8963         Likewise.
8964         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8965         Undefine.
8966         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8967         Likewise.
8968         * sysdeps/unix/sysv/linux/kernel-features.h
8969         (__ASSUME_SENDMSG_SYSCALL): Define.
8970         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8971         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8972         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8973         Remove.
8974         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8975         Likewise.
8976         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8977         Undefine.
8978         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8979         Likewise.
8980         * sysdeps/unix/sysv/linux/s390/kernel-features.h
8981         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8982         Remove.
8983         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8984         Likewise.
8985         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8986         Undefine.
8987         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8988         Likewise.
8989         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8990         (__ASSUME_SENDMSG_SYSCALL): Undefine.
8991         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8992         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8993         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8994         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8995         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8996         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8997         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8998
8999 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9000
9001         * stdlib/gen-tst-strtod-round.c: Add backslash to
9002         compile command in comment.
9003         (printfp): Remove the literal suffix, and define an infinite
9004         value as INF to avoid expansion clash with INFINITY.
9005         (round_str): Remove the literal suffix.
9006         (round_for_all): Likewise, remove the now duplicate ldbl-64
9007         entry, and remove some magic constants.
9008
9009         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
9010         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
9011         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
9012         (_CONCAT): New macro.
9013         (CONCAT): Likewise.
9014         (CHOOSE_ld): Likewise.
9015         (CHOOSE_f): Likewise.
9016         (CHOOSE_d): Likewise.
9017         (FTYPE_MEMBER): Likewise.
9018         (BOOL_MEMBER): Likewise.
9019         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
9020         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
9021         (_XNTRY): Likewise.
9022         (XNTRY): Likewise.
9023         (_ENTRY): Likewise.
9024         (ENTRY): Likewise.
9025         (test_exactness): Generate members via macro.
9026         (test_results): Likewise.
9027         (test): Update members.
9028         (TEST): Redefine using new macros.
9029         (INF): New macro.
9030         (fetestmodes): New structure.
9031         (do_test): Refactor to be type generic.
9032         (test_in_one_mode): Refactor duplicate code into
9033         (GEN_ONE_TEST): New macro.
9034
9035         * stdlib/tst-strtod-round-data.h: Regenerate.
9036
9037         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
9038         Extend to pass additional arbitrary parameters to
9039         generators.
9040
9041 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
9042
9043         [BZ #15479]
9044         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
9045         floating-point state after first floating-point operation on
9046         input.  Restore full floating-point state instead of just rounding
9047         mode.
9048         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
9049         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
9050         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
9051         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
9052         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
9053
9054         [BZ #15479]
9055         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
9056         floating-point state after first floating-point operation on
9057         input.  Restore full floating-point state instead of just rounding
9058         mode.
9059         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
9060         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
9061         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
9062         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
9063         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
9064
9065 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9066
9067         [BZ #19727]
9068         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
9069         valid high surrogate.
9070         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
9071         of an utf16 surrogate.
9072         * iconv/gconv_simple.c (BODY): Likewise.
9073         * iconvdata/bug-iconv12.c: New file.
9074         * iconvdata/Makefile (tests): Add bug-iconv12.
9075
9076 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9077
9078         [BZ #19726]
9079         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
9080         outptrp in case of an illegal input.
9081         * iconv/tst-iconv6.c: New file.
9082         * iconv/Makefile (tests): Add tst-iconv6.
9083
9084 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9085
9086         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
9087         an error in case of a value in range of an utf16 low surrogate.
9088
9089 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9090
9091         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
9092         an error in case of a value in range of an utf16 low surrogate.
9093
9094 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9095
9096         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
9097         Move to ...
9098         * sysdeps/s390/Makefile: ... here.
9099         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
9100         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
9101         (BRANCH_ON_COUNT): New define.
9102         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
9103         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
9104         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
9105         run on s390-32, too.
9106         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
9107         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
9108         run on s390-32, too.
9109         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
9110         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
9111         run on s390-32, too.
9112
9113 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9114
9115         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
9116         etf3eh or new vector loop-variant.
9117
9118 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9119
9120         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
9121         etf3eh or new vector loop-variant.
9122
9123 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9124
9125         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
9126         or new vector loop-variant.
9127
9128 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9129
9130         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
9131         Rename to TR_LOOP and usage of tr instead of troo instruction.
9132
9133 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9134
9135         * sysdeps/s390/multiarch/gconv_simple.c: New File.
9136         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
9137
9138 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9139
9140         * sysdeps/s390/multiarch/8bit-generic.c: New File.
9141         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
9142         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
9143         New override define.
9144         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
9145
9146 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9147
9148         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
9149         * sysdeps/s390/configure.ac: Add test for S390 vector register
9150         support in gcc.
9151         * sysdeps/s390/configure: Regenerated.
9152
9153 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9154
9155         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
9156         Install file from $(objpfx)gconv-modules.
9157         ($(objpfx)gconv-modules): Concatenate architecture specific file
9158         in variable sysdeps-gconv-modules and gconv-modules in src dir.
9159         * sysdeps/s390/gconv-modules: New file.
9160         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
9161         Deleted.
9162         ($(objpfx)gconv-modules-s390): Deleted.
9163         (sysdeps-gconv-modules): New variable.
9164
9165 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
9166
9167         [BZ #15479]
9168         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
9169         of immediate operand to rounding instruction.
9170         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
9171         Likewise.
9172         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
9173         Likewise.
9174         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
9175         Likewise.
9176
9177 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9178
9179         * math/libm-test.inc (MIN_EXP): Directly define as
9180         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
9181
9182 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9183
9184         * math/libm-test.inc (MANT_DIG): Directly define as
9185         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
9186
9187 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9188
9189         * stdlib/gen-tst-strtod-round.c (main):
9190           Change usage to more closely match the generated
9191           output.  Add usage and compilation instructions.
9192           (string_to_fp): Add and use FILE* parameter as
9193           output target.
9194           (print_fp): Likewise.
9195           (round_str): Likewise.
9196           (round_for_all): Likewise.
9197         * stdlib/tst-strtod-round.c (tests): Move into
9198         * stdlib/tst-strtod-round-data.h: New file.
9199
9200 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
9201
9202         [BZ #15479]
9203         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
9204         (__round): Do not force "inexact" exception.
9205         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
9206         variable.
9207         (__round): Do not force "inexact" exception.
9208         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
9209         (__roundf): Do not force "inexact" exception.
9210         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
9211         (__roundl): Do not force "inexact" exception.
9212         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
9213         (__roundl): Do not force "inexact" exception.
9214         * math/libm-test.inc (round_test_data): Do not allow spurious
9215         "inexact" exceptions.
9216
9217         [BZ #15479]
9218         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
9219         exception in comment.
9220         (huge): Remove variable.
9221         (__floor): Do not force "inexact" exception.
9222         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
9223         "inexact" exception in comment.
9224         (huge): Remove variable.
9225         (__floor): Do not force "inexact" exception.
9226         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
9227         exception in comment.
9228         (huge): Remove variable.
9229         (__floorf): Do not force "inexact" exception.
9230         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
9231         exception in comment.
9232         (huge): Remove variable.
9233         (__floorl): Do not force "inexact" exception.
9234
9235         [BZ #15479]
9236         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
9237         exception in comment.
9238         (huge): Remove variable.
9239         (__ceil): Do not force "inexact" exception.
9240         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
9241         "inexact" exception in comment.
9242         (huge): Remove variable.
9243         (__ceil): Do not force "inexact" exception.
9244         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
9245         (__ceilf): Do not force "inexact" exception.
9246         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
9247         exception in comment.
9248         (huge): Remove variable.
9249         (__ceill): Do not force "inexact" exception.
9250
9251 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
9252
9253         * config.h.in (BIND_NOW): New.
9254         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
9255         * configure: Regenerated.
9256         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
9257         indirect branch via the GOT slot.
9258
9259 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
9260
9261         [BZ #19765]
9262         * sysdeps/s390/mempcpy.S: New File.
9263         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
9264         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
9265         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
9266         Add mempcpy variants.
9267         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
9268         (memcpy): Adjust to be usable from mempcpy entry point.
9269         (__memcpy_mvcle): Likewise.
9270         * sysdeps/s390/s390-64/memcpy.S: Likewise.
9271         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
9272         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
9273         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
9274         (__memcpy_z10): Likewise.
9275         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
9276
9277 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
9278
9279         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
9280         Remove __GI_ symbol.
9281         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
9282         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
9283         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
9284         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
9285         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
9286         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
9287
9288 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
9289
9290         * sysdeps/s390/s390-64/memcpy.S (memcpy):
9291         Use cghi instead of chi to compare 64bit value.
9292
9293 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
9294
9295         * sysdeps/s390/s390-32/memcpy.S (memcpy):
9296         Jump to 1MB check before executing mvc-loop.
9297
9298 2016-05-24  Florian Weimer  <fweimer@redhat.com>
9299
9300         [BZ #6527]
9301         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
9302         unconditionally.
9303         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
9304
9305 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9306
9307         * stdlib/tst-strtod6.c (do_test): Use new type generic
9308         invocation of the test function.
9309         (test): Refactor into ...
9310         (TEST_STRTOD): New macro base function.
9311
9312 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9313
9314         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
9315         (TEST_STRTOD): New macro.
9316         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
9317
9318 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9319
9320         * stdlib/tst-strtod6.c (do_test): Use new type generic
9321         invocation of the test function.
9322         (test): Refactor into ...
9323         (TEST_STRTOD): New macro base function.
9324
9325 2016-05-23  Florian Weimer  <fweimer@redhat.com>
9326
9327         CVE-2016-4429
9328         [BZ #20112]
9329         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
9330         payload.
9331
9332 2016-05-23  Florian Weimer  <fweimer@redhat.com>
9333
9334         [BZ #20111]
9335         * bits/sockaddr.h (_SS_SIZE): Define.
9336         * bits/socket.h (_SS_SIZE): Remove.
9337         (_SS_PADSIZE): Adjust to account for all padding.
9338         (struct sockaddr_storage): Update comment.  Avoid implicit
9339         padding.
9340         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
9341         (_SS_PADSIZE): Adjust to account for all padding.
9342         (struct sockaddr_storage): Update comment.  Avoid implicit
9343         padding.
9344         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
9345         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
9346         (_SS_PADSIZE): Adjust to account for all padding.
9347         (struct sockaddr_storage): Update comment.  Avoid implicit
9348         padding.
9349         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
9350         __SS_SIZE is 126 in this version.
9351         * inet/tst-sockaddr.c: New file.
9352         * inet/Makefile (tests): Add tst-sockaddr.c
9353         (tst-sockaddr.c): Compile with non-strict aliasing.
9354
9355 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
9356
9357         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
9358         [XPG3 || XPG4].
9359         (NL_ARGMAX): Also expect for [XPG3].
9360         (NL_LANGMAX): Likewise.
9361         (NL_MSGMAX): Likewise.
9362         (NL_NMAX): Likewise.
9363         (NL_SETMAX): Likewise.
9364         (NL_TEXTMAX): Likewise.
9365         (NZERO): Likewise.
9366         (TMP_MAX): Likewise.
9367         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
9368         variable.
9369
9370         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
9371         (PF_MAX): Update value.
9372         (AF_KCM): New macro.
9373         (SOL_NETBEUI): Likewise.
9374         (SOL_LLC): Likewise.
9375         (SOL_DCCP): Likewise.
9376         (SOL_NETLINK): Likewise.
9377         (SOL_TIPC): Likewise.
9378         (SOL_RXRPC): Likewise.
9379         (SOL_PPPOL2TP): Likewise.
9380         (SOL_BLUETOOTH): Likewise.
9381         (SOL_PNPIPE): Likewise.
9382         (SOL_RDS): Likewise.
9383         (SOL_IUCV): Likewise.
9384         (SOL_CAIF): Likewise.
9385         (SOL_ALG): Likewise.
9386         (SOL_NFC): Likewise.
9387         (SOL_KCM): Likewise.
9388         (MSG_BATCH): New enum value and macro.
9389
9390 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
9391
9392         [BZ #18185]
9393         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
9394         sharing L2 cache to 2 for Knights Landing.
9395
9396 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
9397
9398         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
9399         (FTW_DP): Do not expect for [XPG3 || XPG4].
9400         (FTW_SL): Do not expect for [XPG3].
9401         (FTW_SLN): Likewise.
9402         (FTW_PHYS): Likewise.
9403         (FTW_MOUNT): Likewise.
9404         (FTW_DEPTH): Likewise.
9405         (FTW_CHDIR): Likewise.
9406         (nftw): Likewise.
9407         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
9408         variable.
9409
9410 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
9411
9412         * manual/errno.texi: Fix various typos & grammar errors.
9413
9414 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
9415
9416         * manual/intro.texi: Fix duplicated typo.
9417
9418 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
9419
9420         [BZ #13304]
9421         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
9422         <float.h>, <math_private.h> and <stdlib.h>.
9423         (add_split): New function.
9424         (mul_split): Likewise.
9425         (ext_val): New typedef.
9426         (store_ext_val): New function.
9427         (mul_ext_val): New function.
9428         (compare): New function.
9429         (add_split_ext): New function.
9430         (__fmal): After checking for Inf, NaN and zero, compute result as
9431         an exact sum of scaled double values in round-to-nearest before
9432         adding those up and adjusting for other rounding modes.
9433         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
9434         tests of fma.
9435         * math/auto-libm-test-out: Regenerated.
9436
9437 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9438
9439         [BZ #20119]
9440         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
9441         processor level type mask for CPUID with EAX == 11.
9442
9443 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9444
9445         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
9446         logical threads if the HTT bit is 0.
9447         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
9448         (index_cpu_HTT): Likewise.
9449         (reg_HTT): Likewise.
9450
9451 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9452
9453         [BZ #20115]
9454         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
9455         Remove alignments on jump targets.
9456
9457 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
9458
9459         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
9460         (getpwent): Likewise.
9461         (setpwent): Likewise.
9462         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
9463         variable.
9464
9465         * conform/data/search.h-data (insque): Do not expect for [XPG3].
9466         (remque): Likewise.
9467         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
9468         variable.
9469
9470 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
9471
9472         * math/libm-test.inc: Update comment not to refer to signs of NaNs
9473         not being tested.
9474
9475 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9476
9477         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
9478         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
9479         call.
9480         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
9481         (__condvar_cleanup1): Likewise.
9482
9483 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9484
9485         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
9486         New
9487         (__pthread_unwind): Renamed to ...
9488         (PTHREAD_UNWIND): This.
9489         (__pthread_enable_asynccancel): Replace
9490         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
9491
9492 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
9493
9494         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
9495         (CLONE_NEWCGROUP): New macro.
9496
9497         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
9498         (Q_GETNEXTQUOTA): New macro.
9499
9500 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9501
9502         [BZ #19907]
9503         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
9504         buffer updated by the previous run.
9505         * string/test-memcpy.c (do_one_test): Likewise.
9506         * benchtests/bench-memmove.c (do_one_test): Add a comment.
9507         * string/test-memmove.c (do_one_test): Likewise.
9508
9509 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
9510
9511         [BZ #20094]
9512         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
9513         not [__USE_XOPEN].
9514         (unlockpt): Likewise.
9515         (ptsname): Likewise.
9516         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
9517         variable.
9518
9519         [BZ #20076]
9520         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
9521         instead of [__USE_UNIX98].
9522         (S_ISSOCK): Likewise.
9523         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
9524         variable.
9525
9526         [BZ #20074]
9527         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
9528         [__USE_POSIX].
9529         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
9530         variable.
9531
9532         [BZ #20051]
9533         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
9534         (ttyslot): Do not declare.
9535         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
9536         (ttyslot): New prototype.
9537         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
9538         variable.
9539         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
9540
9541 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
9542
9543         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
9544
9545 2016-05-13  Florian Weimer  <fweimer@redhat.com>
9546
9547         Fix race condition in tst-mallocfork2, use fewer resources.
9548         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
9549         to current process group.
9550         (signal_sender): Yield in the non-sleeping case.
9551
9552 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
9553
9554         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
9555         (ecvt): Likewise.
9556         (fcvt): Likewise.
9557         (gcvt): Likewise.
9558         (getsubopt): Likewise.
9559         (grantpt): Likewise.
9560         (initstate): Likewise.
9561         (l64a): Likewise.
9562         (mktemp): Likewise.
9563         (mkstemp): Likewise.
9564         (ptsname): Likewise.
9565         (random): Likewise.
9566         (realpath): Likewise.
9567         (setstate): Likewise.
9568         (srandom): Likewise.
9569         (ttyslot): Likewise.
9570         (unlockpt): Likewise.
9571         (valloc): Likewise.
9572
9573         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
9574         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
9575         variable.
9576
9577 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
9578
9579         [BZ #20072]
9580         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
9581         init_cpu_features only if SHARED is defined.
9582         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
9583
9584 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
9585
9586         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
9587         non-inclusive caches on Intel processors.
9588
9589 2016-05-13  Florian Weimer  <fweimer@redhat.com>
9590
9591         * malloc/malloc.c (dumped_main_arena_start)
9592         (dumped_main_arena_end): New variables.
9593         (DUMPED_MAIN_ARENA_CHUNK): New macro.
9594         (do_check_chunk): Skip dumped fake mmapped chunks.
9595         (munmap_chunk): Likewise.
9596         (__libc_free): Do not adjust statistics for fake mmapped chunks.
9597         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
9598         mmapped chunks.
9599         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
9600         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
9601         and dumped_main_arena_end to cover the dumped heap.
9602
9603 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
9604
9605         * conform/data/time.h-data (getdate_err): Do not expect for
9606         [XPG3].
9607         (getdate): Likewise.
9608         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
9609         variable.
9610
9611         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
9612         (F_ULOCK): Likewise.
9613         (F_TEST): Likewise.
9614         (F_TLOCK): Likewise.
9615         (useconds_t): Likewise.
9616         (intptr_t): Do not expect for [XPG3] or [XPG4].
9617         (brk): Do not expect for [XPG3]
9618         (fchown): Likewise.
9619         (fchdir): Likewise.
9620         (ftruncate): Likewise.
9621         (getdtablesize): Likewise.
9622         (gethostid): Likewise.
9623         (getpagesize): Likewise.
9624         (getpgid): Likewise.
9625         (getsid): Likewise.
9626         (getwd): Likewise.
9627         (lchown): Likewise.
9628         (lockf): Likewise.
9629         (readlink): Likewise.
9630         (sbrk): Likewise.
9631         (setpgrp): Likewise.
9632         (setregid): Likewise.
9633         (setreuid): Likewise.
9634         (symlink): Likewise.
9635         (sync): Likewise.
9636         (truncate): Likewise.
9637         (ualarm): Likewise.
9638         (usleep): Likewise.
9639         (vfork): Likewise.
9640         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
9641         variable.
9642
9643         [BZ #20054]
9644         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
9645         not [__USE_UNIX98].
9646         * conform/data/unistd.h-data (gethostname): Do not expect for
9647         [XPG3].
9648
9649         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
9650         [!POSIX] (S_IFBLK): Likewise.
9651         [!POSIX] (S_IFCHR): Likewise.
9652         [!POSIX] (S_IFIFO): Likewise.
9653         [!POSIX] (S_IFREG): Likewise.
9654         [!POSIX] (S_IFDIR): Likewise.
9655         [!POSIX] (S_IFLNK): Likewise.
9656         [!POSIX] (S_IFSOCK): Likewise.
9657         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
9658         variable.
9659         (test-xfail-XPG4/fcntl.h/conform): Likewise.
9660
9661 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
9662
9663         * sysdeps/aarch64/memset.S (__memset):
9664         Rewrite of optimized memset.
9665
9666 2016-05-12  Florian Weimer  <fweimer@redhat.com>
9667
9668         [BZ #19703]
9669         Partially async-signal-safe fork for single-threaded processes.
9670         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
9671         variable.  Do not acquire and reset/release malloc and libio locks
9672         in single-threaded processes.
9673         * malloc/tst-mallocfork2.c: New file.
9674         * malloc/Makefile (tests): Add it.
9675
9676 2016-05-12  Florian Weimer  <fweimer@redhat.com>
9677
9678         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
9679         argument.  Use scratch buffer instead of extend_alloca.
9680         (gethosts): Use scratch buffer instead of extend_alloca.
9681         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
9682         extend_alloca.
9683         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
9684
9685 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
9686
9687         [BZ #20055]
9688         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
9689         instead of [__USE_UNIX98].
9690         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
9691         [__USE_UNIX98].
9692         * conform/data/termios.h-data (tcgetsid): Do not expect for
9693         [XPG3].
9694         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
9695         variable.
9696         (test-xfail-XPG4/termios.h/conform): Likewise.
9697
9698 2016-05-11  Florian Weimer  <fweimer@redhat.com>
9699
9700         Do not use mcheck in localedef.
9701         * locale/programs/localedef.c (turn_on_mcheck)
9702         (__malloc_initialize_hook): Remove.
9703
9704 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
9705
9706         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
9707         * sysdeps/s390/s390-64/Makefile: Likewise.
9708
9709 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9710
9711         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
9712         Remove ifunc-defines.sym.
9713         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
9714         Likewise.
9715         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
9716         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
9717         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
9718         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
9719         rtld-global-offsets.sym.
9720         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
9721         * sysdeps/x86/cpu-features-offsets.sym: This.
9722         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
9723         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
9724
9725 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
9726
9727         [BZ #20073]
9728         * io/sys/stat.h (fchmod): Declare for
9729         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
9730         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
9731         variable.
9732
9733         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
9734         [XPG3] (S_IFSOCK): Likewise.
9735         [XPG3] (S_ISVTX): Likewise.
9736         [XPG3] (S_ISLNK): Likewise.
9737         [XPG3] (S_ISSOCK): Likewise.
9738         [XPG3] (fchmod): Likewise.
9739         [XPG3] (lstat): Likewise.
9740         [XPG3] (mknod): Likewise.
9741
9742         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
9743         [XPG3].  Expect type long and XFAIL for [XPG4].
9744         (st_blocks): Likewise.
9745
9746         [BZ #20044]
9747         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
9748         (pthread_atfork): New prototype.
9749         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
9750         variable.
9751
9752         [BZ #20043]
9753         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
9754         prototype.
9755
9756 2016-05-10  Florian Weimer  <fweimer@redhat.com>
9757
9758         [BZ #20017]
9759         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
9760         gmtime.
9761
9762 2016-05-10  Florian Weimer  <fweimer@redhat.com>
9763
9764         [BZ #19994]
9765         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
9766         flag in _res.options.
9767
9768 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
9769
9770         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
9771         [XPG3 || XPG4].
9772         (blksize_t): Likewise.
9773         (clockid_t): Likewise.
9774         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
9775         variable.
9776         (test-xfail-XPG4/sys/types.h/conform): Likewise.
9777
9778 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
9779
9780         * sysdeps/unix/sysv/linux/s390/init-first.c:
9781         Add VDSO_SYMBOL(getcpu).
9782         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
9783         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
9784         Add VDSO_SYMBOL(getcpu).
9785         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9786         New define HAVE_GETCPU_VSYSCALL.
9787         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9788
9789 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9790
9791         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
9792         instead of <sysdeps/x86_64/cacheinfo.c>.
9793         * sysdeps/x86_64/cacheinfo.c: Moved to ...
9794         * sysdeps/x86/cacheinfo.c: Here.
9795
9796 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9797
9798         * malloc/malloc-internal.h: Adjust header file guard.
9799
9800 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9801
9802         [BZ #19787]
9803         * inet/getnameinfo.c (check_sprintf_result): New function.
9804         (CHECKED_SNPRINTF): New macro.
9805         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
9806         to the host buffer.
9807         (gni_host_local): Use checked_copy to copy the host name.
9808         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
9809         (gni_serv_local): Use checked_copy to copy the service name.
9810         (getnameinfo): Remove unnecessary truncation of result buffers.
9811
9812 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9813
9814         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
9815         in case of inet_ntop failure.
9816
9817 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9818
9819         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
9820         avoid long lines.
9821         (gni_host_inet_numeric): Likewise.  Reduce scope of local
9822         variables.
9823         (gni_host_inet, gni_host_local): Add comment.
9824         (gni_host): Add comment.  Use temporary to avoid long lines.
9825
9826 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9827
9828         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
9829         registers specifiers where general purpose registers specifiers should
9830         have been used.
9831
9832 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9833
9834         [BZ #19779]
9835         CVE-2016-1234
9836         Avoid copying names of directory entries.
9837         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
9838         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
9839         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
9840         (struct readdir_result): New type.
9841         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
9842         (GL_READDIR): New macros.
9843         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
9844         (convert_dirent, convert_dirent64): New functions.
9845         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
9846         convert_dirent64.  Adjust references to the readdir result.
9847         * sysdeps/unix/sysv/linux/i386/glob64.c:
9848         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
9849         * posix/bug-glob2.c (LONG_NAME): Define.
9850         (filesystem): Add LONG_NAME.
9851         (my_DIR): Increase the size of room_for_dirent.
9852
9853 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
9854
9855         [BZ #20041]
9856         * misc/sys/select.h (__need_timespec): Only define if
9857         [__USE_XOPEN2K].
9858         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
9859         variable.
9860         (test-xfail-XPG4/utmpx.h/conform): Likewise.
9861         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
9862         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
9863
9864 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9865             Segher Boessenkool  <segher@gcc.gnu.org>
9866
9867         [BZ #20004]
9868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
9869         (__novec_swapcontext): Add missing load.
9870
9871 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
9872
9873         [BZ #20023]
9874         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
9875         <time.h>.
9876         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
9877         variable.
9878         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
9879
9880 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9881
9882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
9883         flags CLONE_VM compare.
9884
9885 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9886
9887         [BZ #20031]
9888         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
9889         completely empty.
9890
9891 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9892
9893         [BZ #19573]
9894         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
9895         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
9896         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
9897         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
9898         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
9899         (hesiod_free_list): Mark as hidden.
9900         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
9901         res_set, res_get.
9902         * hesiod/hesiod.c: Remove unnecessary forward declarations.
9903         (init, __hesiod_res_get, __hesiod_res_set): Remove.
9904         (hesiod_init): Remove obsolete res_ninit call.
9905         (hesiod_end): Do not free resolver state.  Do not invoke callback.
9906         (hesiod_bind): Do not call init.
9907         (get_txt_records): Use res_mkquery, res_send instead of
9908         res_nmkquery, res_nsend.
9909         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
9910         instead of _nss_hesiod_init.
9911         (_nss_hesiod_initgroups_dyn): Likewise.
9912         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
9913         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
9914         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
9915
9916 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9917
9918         * hesiod/hesiod_p.h (DEF_RHS): Remove.
9919         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
9920
9921 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9922
9923         * hesiod/hesiod.h: Remove RCS keyword.
9924         * hesiod/hesiod_p.h: Likewise.
9925
9926         * hesiod/hesiod.c: Likewise.
9927
9928 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
9929
9930         [BZ #12450]
9931         * locale/iso-639.def: Add Samogitian/sgs.
9932
9933 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
9934
9935         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
9936
9937         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
9938
9939 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
9940             Carlos O'Donell  <carlos@redhat.com>
9941
9942         [BZ #19072]
9943         * grp/Makefile (headers): Add grp-merge.h
9944         (routines): Add grp-merge.
9945         * grp/getgrgid_r.c: Include grp-merge.h.
9946         (DEEPCOPY_FN): Define.
9947         (MERGE_FN): Define.
9948         * grp/getgrname_r.c: Include grp-merge.h.
9949         (DEEPCOPY_FN): Define.
9950         (MERGE_FN): Define.
9951         * grp/grp-merge.c: New file.
9952         * grp/grp-merge.h: New file.
9953         * include/grp-merge.h: New file.
9954         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
9955         __copy_grp@GLIBC_PRIVATE.
9956         * manual/nss.texi (Actions in the NSS configuration): Describe
9957         return, continue, and merge.
9958         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
9959         (DEEPCOPY_FN): Define.
9960         (MERGE_FN): Define.
9961         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
9962         (DEEPCOPY_FN): Define.
9963         (MERGE_FN): Define.
9964         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
9965         [!MERGE_FN]: Define __merge_einval.
9966         (CHECK_MERGE): Define.
9967         (REENTRANT_NAME): Process merge if do_merge is true.
9968         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
9969         (__nss_getent_r): Likewise.
9970         * nss/nsswitch.c (nss_parse_service_list): Likewise.
9971         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
9972
9973 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9974
9975         [BZ #20012]
9976         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
9977         length to calculate the buffer to read.
9978         (fmemopen_write): Set the buffer position based on bytes written.
9979         (fmemopen_seek): Return EINVAL for invalid whence modes.
9980
9981         [BZ #19957]
9982         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
9983         tst-getpid2.
9984         (test): Add tst-clone2.
9985         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
9986         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
9987         pid/tid fields for CLONE_VM.
9988         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
9989         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
9990         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
9991         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
9992         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
9993         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
9994         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
9995         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
9996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
9997         Likewise.
9998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
9999         Likewise.
10000         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
10001         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
10002         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
10003         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
10004         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
10005         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
10006         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
10007         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
10008
10009 2016-04-29  Florian Weimer  <fweimer@redhat.com>
10010
10011         [BZ #19642]
10012         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
10013         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
10014         (gni_serv_local, gni_serv): New functions extracted from
10015         getnameinfo.
10016         (getnameinfo): Call gni_host and gni_serv to perform the
10017         processing.  Always free scratch buffer.
10018
10019 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10020
10021         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
10022         remaining bytes in the dest string, with zeros.
10023
10024 2016-04-29  Florian Weimer  <fweimer@redhat.com>
10025
10026         [BZ #20010]
10027         CVE-2016-3706
10028         * sysdeps/posix/getaddrinfo.c
10029         (convert_hostent_to_gaih_addrtuple): New function.
10030         (gethosts): Call convert_hostent_to_gaih_addrtuple.
10031         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
10032         AF_INET data.
10033
10034 2016-04-29  Florian Weimer  <fweimer@redhat.com>
10035
10036         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
10037         callback function gl_readdir.
10038         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
10039         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
10040         (glob_in_dir): Remove len.  Use strdup instead of malloc and
10041         memcpy to copy the name.
10042         * manual/pattern.texi (Calling Glob): Document requirements for
10043         implementations of the gl_readdir callback function.
10044         * manual/examples/mkdirent.c: New example.
10045         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
10046         per the manual guidance.
10047         * posix/tst-gnuglob.c (my_readdir): Likewise.
10048
10049 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
10050
10051         [BZ #20014]
10052         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
10053         not [__USE_POSIX].
10054         (getchar_unlocked): Likewise.
10055         (putc_unlocked): Likewise.
10056         (putchar_unlocked): Likewise.
10057         (flockfile): Likewise.
10058         (ftrylockfile): Likewise.
10059         (funlockfile): Likewise.
10060         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
10061         variable.
10062         (test-xfail-XPG4/stdio.h/conform): Likewise.
10063
10064         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
10065         Expect constant.
10066         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
10067         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
10068         variable.
10069         (test-xfail-XPG4/langinfo.h/conform): Likewise.
10070         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
10071
10072         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
10073         [__USE_LARGEFILE64] (off64_t): Likewise.
10074         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
10075         variable.
10076
10077 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10078
10079         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
10080
10081 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10082
10083         * resolv/inet_addr.c: Reindent preprocessor conditionals.
10084         * resolv/res_init.c: Likewise.
10085         * resolv/res_mkquery.c: Likewise.
10086
10087 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10088
10089         * resolv/res_init.c (isascii): Do not define.  Use definition in
10090         <ctype.h>.
10091         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
10092         (LOG_AUTH): Remove.
10093         (SPRINTF): Remove, adjust caller.
10094         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
10095
10096 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10097
10098         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
10099         SUNSECURITY conditional.
10100         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
10101
10102 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10103
10104         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
10105         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
10106         Remove BSD-related preprocessor conditionals.
10107         * conf/portability.h: Remove.
10108
10109 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10110
10111         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
10112         * resolv/res_data.c: Likewise.
10113
10114 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10115
10116         * resolv/res_comp.c: Remove code conditional on __ultrix__.
10117         * resolv/res_data.c: Remove code conditional on ultrix.
10118
10119 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10120
10121         * resolv/res_init.c (RFC1535): Do not define.  Remove
10122         RFC1535 preprocessor conditionals.
10123         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
10124         because there configuration options which make the resolver
10125         behavior different.
10126
10127 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10128
10129         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
10130         RESOLVSORT preprocessor conditionals.
10131         * resolv/nss_dns/dns-host.c: Likewise.
10132         * resolv/res_init.c: Likewise.
10133
10134 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10135
10136         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
10137         is never defined.
10138
10139 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10140
10141         * inet/inet_lnaof.c: Remove SCSS keyword.
10142         * inet/inet_mkadr.c: Likewise.
10143         * inet/inet_net.c: Likewise.
10144         * inet/inet_netof.c: Likewise.
10145         * inet/rcmd.c: Likewise.
10146         * inet/rexec.c: Likewise.
10147         * inet/ruserpass.c: Likewise.
10148
10149 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10150
10151         * resolv/inet_addr.c: Remove _LIBC conditionals.
10152         * resolv/res_data.c: Likewise.
10153         * resolv/res_init.c: Likewise.
10154         * resolv/res_mkquery.c: Likewise.
10155         * resolv/res_libc.c: Update comment.
10156         * resolv/README: Update.
10157
10158 2016-04-28  Florian Weimer  <fweimer@redhat.com>
10159
10160         * resolv/gethnamaddr.c: Remove SCSS keyword.
10161         * resolv/herror.c: Likewise.
10162         * resolv/inet_addr.c: Likewise.
10163         * resolv/inet_net_ntop.c: Likewise.
10164         * resolv/inet_net_pton.c: Likewise.
10165         * resolv/inet_neta.c: Likewise.
10166         * resolv/inet_ntop.c: Likewise.
10167         * resolv/inet_pton.c: Likewise.
10168         * resolv/ns_date.c: Remove RCS keyword.
10169         * resolv/ns_name.c: Likewise.
10170         * resolv/ns_netint.c: Likewise.
10171         * resolv/ns_parse.c: Likewise.
10172         * resolv/ns_print.c: Likewise.
10173         * resolv/ns_samedomain.c: Likewise.
10174         * resolv/ns_ttl.c: Likewise.
10175         * resolv/nsap_addr.c: Likewise.
10176         * resolv/res_comp.c: Remove SCSS and RCS keyword.
10177         * resolv/res_data.c: Remove RCS keyword.
10178         * resolv/res_debug.c: Remove SCSS and RCS keyword.
10179         * resolv/res_init.c: Likewise.
10180         * resolv/res_mkquery.c: Likewise.
10181         * resolv/res_query.c: Likewise.
10182         * resolv/res_send.c: Likewise.
10183
10184 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
10185
10186         * conform/data/stdio.h-data (fdopen): Expect also for
10187         [XPG3 || XPG4].
10188
10189         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
10190         (fseeko): Likewise.
10191         (ftello): Likewise.
10192         (ftrylockfile): Likewise.
10193         (funlockfile): Likewise.
10194         (getc_unlocked): Likewise.
10195         (getchar_unlocked): Likewise.
10196         (putc_unlocked): Likewise.
10197         (putchar_unlocked): Likewise.
10198
10199 2016-04-27  Florian Weimer  <fweimer@redhat.com>
10200
10201         [BZ #19868]
10202         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
10203         DNS packet syntax checks (which were not needed before).  Skip
10204         over non-PTR records.
10205
10206 2016-04-27  Florian Weimer  <fweimer@redhat.com>
10207
10208         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
10209         definition.  Include <stddef.h> instead.
10210
10211 2016-04-27  Florian Weimer  <fweimer@redhat.com>
10212
10213         [BZ #19831]
10214         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
10215         function.
10216         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
10217         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
10218
10219 2016-04-27  Florian Weimer  <fweimer@redhat.com>
10220
10221         [BZ #19862]
10222         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
10223         (getanswer_r): Do not call syslog.
10224         (gaih_getanswer_slice): Likewise.
10225         * resolv/gethnamaddr.c (AskedForGot): Remove.
10226         (getanswer): Do not call syslog.
10227         (gethostbyaddr): Likewise.
10228
10229 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
10230
10231         * conform/data/signal.h-data (union sigval): Expect also if
10232         [XOPEN2K].
10233         (struct sigevent): Likewise.
10234         (SIGEV_NONE): Likewise.
10235         (SIGEV_SIGNAL): Likewise.
10236         (SIGEV_THREAD): Likewise.
10237         (SIGRTMIN): Likewise.
10238         (SIGRTMAX): Likewise.
10239         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
10240         variable.
10241         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
10242
10243 2016-04-27  Florian Weimer  <fweimer@redhat.com>
10244
10245         [BZ #19830]
10246         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
10247         (gaih_getanswer_slice): Likewise.
10248         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
10249         Also check for availability of RR metadata.
10250
10251 2016-04-27  Florian Weimer  <fweimer@redhat.com>
10252
10253         [BZ #19825]
10254         * resolv/res_send.c (send_vc): Remove early *resplen2
10255         initialization.  Set *resplen2 on socket error.  Call
10256         close_and_return_error for other errors.
10257
10258 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
10259
10260         * sysdeps/unix/sysv/linux/netiucv/iucv.h
10261         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
10262         (SCM_IUCV_TRGCLS): New define.
10263
10264 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10265
10266         [BZ #20005]
10267         * libio/fmemopen.c (fmemopen_write): Update internal position after
10268         write.
10269         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
10270         * stdio-common/tst-fmemopen4.c: New file..
10271
10272 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
10273
10274         [BZ #19996]
10275         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
10276         not [__USE_XOPEN2K].
10277         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
10278         variable.
10279
10280         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
10281         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
10282         variable.
10283
10284         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
10285         [__USE_XOPEN2K8].
10286         [__USE_LARGEFILE64] (off64_t): Likewise.
10287         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
10288         variable.
10289
10290 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
10291
10292         [BZ #19989]
10293         * libio/stdio.h (cuserid): Do not declare if
10294         [__USE_XOPEN2K && !__USE_GNU].
10295         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
10296         variable.
10297
10298 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10299
10300         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
10301         (sysdep_routines): Add P8 and PPC64 strcspn targets.
10302         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10303         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
10304         ifunc'ed strcspn.
10305         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
10306         [EALIGN]: Removed.
10307         [END]: Likewise
10308         [STRSPN]: Define instead of the above to control symbol name.
10309         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
10310         New file.
10311         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
10312         Likewise.
10313         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
10314         Likewise.
10315         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
10316         Likewise.
10317         * sysdeps/powerpc/powerpc64/power8/strspn.S:
10318         [INITIAL_MASK]: New macro.
10319         [STRCSPN]: Likewise.
10320         [UPDATE_MASK]: Likewise.
10321         [USE_AS_STRCSPN]: Lisewise.
10322
10323 2016-04-25  Florian Weimer  <fweimer@redhat.com>
10324
10325         [BZ #19931]
10326         * stdio-common/tst-vfprintf-width-prec.c: New file.
10327         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
10328         (tests-special): Add tst-vfprintf-width-prec-mem.out.
10329         (generated): Add mtrace-related files.
10330         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
10331         (tst-%-mem.out): New pattern rule, replaces
10332         tst-printf-bz18872-mem.out.
10333         * stdio-common/vfprintf.c (vfprintf): When handling a precision
10334         specifier, deallocate any previously allocated work buffer.
10335
10336 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10337
10338         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
10339         Add nop before __startcontext, add explaining comments.
10340
10341 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
10342
10343         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
10344         any more. Notably since IPV6_PKTINFO has been reintroduced with a
10345         completely different API.
10346
10347         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
10348         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
10349         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
10350         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
10351         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
10352         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
10353         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
10354         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
10355         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
10356         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
10357
10358 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
10359
10360         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
10361
10362 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
10363
10364         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
10365         when it is the default of 0.
10366
10367 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10368
10369         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
10370         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
10371         (sysdep_routines): Add new strcasestr targets.
10372         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10373         (__libc_ifunc_impl_list): Likewise.
10374         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
10375         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
10376         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
10377         * sysdeps/powerpc/powerpc64/power8/Makefile:
10378         New file to add strcasestr-ppc64 to sysdep_routines.
10379         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
10380         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
10381
10382 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
10383
10384         * benchtests/Makefile (wcsmbs-benchset): Include only for
10385         native builds and runs.
10386         (LOCALES): Likewise.
10387         (bench-build): Build timing-type here instead of the bench
10388         target.  Generate locale only for native builds.
10389         * benchtests/README: Add note for cross-building.
10390
10391         * benchtests/Makefile (bench-clean): Clean up extra-objs.
10392
10393         * benchtests/README: Update README to include instructions on
10394         using bench-build.
10395
10396         * Makefile.in (bench-build): New target.
10397         * Rules (PHONY): Add bench-build target.
10398         * benchtests/Makefile (bench): Depend on bench-build.
10399         (bench-build): New target.
10400
10401 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10402
10403         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
10404         profil_reply_port.
10405         (profile_waiter): Do not initialize profil_reply_port.
10406         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
10407         frequency instead of tick length in us.
10408
10409 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
10410
10411         [BZ #18712]
10412         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
10413         (__old_mempcpy_small): Likewise.
10414         (__old_strcpy_small): Likewise.
10415         (__old_stpcpy_small): Likewise.
10416         (__old_strpbrk_c2): Fix compat symbol name.
10417         (__old_strpbrk_c3): Likewise.
10418         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
10419         (__mempcpy_small): Remove.
10420         (__strcpy_small): Remove.
10421         (__stpcpy_small): Remove.
10422
10423 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
10424
10425         [BZ #19400]
10426         * locale/iso-639.def: Add the Talossan/tzl language.
10427
10428 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
10429
10430         [BZ #16983]
10431         * locale/programs/ld-address.c (address_finish): Update postal_fmt
10432         comment.  Add "ln" to strchr check on postal_fmt.
10433
10434 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
10435
10436         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
10437         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
10438         tel_dom_fmt.
10439
10440 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
10441
10442         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
10443         (sysdep_routines): Added __strlen_power8.
10444         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
10445         __strlen_power8 entry.
10446         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
10447         Implementation for POWER8.
10448         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
10449         for __strlen_power8.
10450         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
10451         Implementation for POWER8.
10452
10453 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
10454
10455         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
10456
10457 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
10458
10459         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
10460         Goldmont and Airmont processors.
10461
10462 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
10463
10464         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
10465         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
10466         (__STRING2_SMALL_GET32): Remove.
10467         (memset): Remove.
10468         (__memset_1): Remove.
10469         (__memset_gc): Remove.
10470         (__mempcpy): Remove.
10471         (mempcpy): Remove.
10472         (__mempcpy_args): Remove.
10473         (strchr): Remove.
10474         (strcpy): Remove.
10475         (strcpy_args): Remove.
10476         (__stpcpy_args): Remove.
10477         (__strcmp_cc): Remove.
10478         (__strcmp_gc): Remove.
10479         (strstr): Remove.
10480
10481 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
10482
10483         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
10484         * nis/nis_call.c (nis_server_cache_add): Likewise.
10485
10486 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10487
10488         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
10489
10490 2016-04-14  Florian Weimer  <fweimer@redhat.com>
10491
10492         * malloc/arena.c (__malloc_fork_lock_parent)
10493         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
10494         internal_function attribute.
10495
10496 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
10497
10498         * stdio-common/printf_fp.c (__printf_fp_l):
10499         Rename ___printf_fp_l to __printf_fp_l and
10500         remove strong alias. Use libc_hidden_def instead
10501         of ldbl_hidden_def macro.
10502
10503 2016-04-14  Florian Weimer  <fweimer@redhat.com>
10504
10505         Remove malloc hooks from fork handler.  They are no longer needed
10506         because malloc runs right before fork, and no malloc calls from
10507         other fork handlers are not possible anymore.
10508         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
10509         declarations.
10510         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
10511         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
10512         (atfork_recursive_cntr): Remove.
10513         (__malloc_fork_lock_parent): Do not override malloc hooks and
10514         thread_arena.
10515         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
10516         thread_arena.
10517         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
10518         thread_arena instead of save_arena.
10519
10520 2016-04-14  Florian Weimer  <fweimer@redhat.com>
10521
10522         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
10523         (thread_atfork, thread_atfork_static): Remove.
10524         * sysdeps/mach/hurd/malloc-machine.h:
10525         (thread_atfork, thread_atfork_static): Remove.
10526
10527 2016-04-14  Florian Weimer  <fweimer@redhat.com>
10528
10529         [BZ #19431]
10530         Run the malloc fork handler as late as possible to avoid deadlocks.
10531         * malloc/malloc-internal.h: New file.
10532         * malloc/malloc.c: Include it.
10533         * malloc/arena.c (ATFORK_MEM): Remove.
10534         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
10535         Update comment.
10536         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
10537         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
10538         Remove outdated comment.
10539         (ptmalloc_init): Do not call thread_atfork.  Remove
10540         thread_atfork_static.
10541         * malloc/tst-malloc-fork-deadlock.c: New file.
10542         * Makefile (tests): Add tst-malloc-fork-deadlock.
10543         (tst-malloc-fork-deadlock): Link against libpthread.
10544         * manual/memory.texi (Aligned Memory Blocks): Update safety
10545         annotation comments.
10546         * sysdeps/nptl/fork.c (__libc_fork): Call
10547         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
10548         __malloc_fork_unlock_child.
10549         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10550
10551 2016-04-14  Florian Weimer  <fweimer@redhat.com>
10552
10553         [BZ #19613]
10554         Remove union wait.
10555         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
10556         (w_stopsig, w_stopval): Remove.
10557         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
10558         stat_loc argument.
10559         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
10560         (__WAIT_STATUS_DEFN): Remove.
10561         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
10562         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
10563         (wait, wait3, wait4): Use int * for the stat_loc argument.
10564         * posix/wait.c (__wait): Likewise.
10565         * posix/wait3.c (__wait3): Likewise.
10566         * posix/wait4.c (__wait4): Likewise.
10567         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
10568         (__WAIT_STATUS_DEFN): Remove.
10569         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
10570         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
10571         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
10572         argument.
10573         * sysdeps/posix/wait.c (__libc_wait): Likewise.
10574         * sysdeps/posix/wait3.c (__wait3): Likewise.
10575         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
10576         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
10577         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
10578         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
10579         stat_loc argument.
10580         * manual/process.texi (BSD Wait Functions): Remove union wait.
10581
10582 2016-04-13  Andreas Schwab  <schwab@suse.de>
10583
10584         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
10585         (test-extras): Add tst-tlsalign-vars.
10586         * math/Makefile: Wrap long lines.
10587         (libm-vec-test-wrappers): Define.
10588         (test-extras): Add $(libm-vec-test-wrappers).
10589         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
10590         * nss/Makefile (extra-test-objs): Add nss_test1.os.
10591         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
10592         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
10593         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
10594         (extra-test-objs): Add corresponding objects.
10595
10596 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
10597
10598         [BZ #19928]
10599         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
10600         New.
10601         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
10602         times of shared cache size.
10603         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
10604         (VMOVNT): New.
10605         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
10606         (VMOVNT): Likewise.
10607         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10608         (VMOVNT): Likewise.
10609         (VMOVU): Changed to movups for smaller code sizes.
10610         (VMOVA): Changed to movaps for smaller code sizes.
10611         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
10612         comments.
10613         (PREFETCH): New.
10614         (PREFETCH_SIZE): Likewise.
10615         (PREFETCHED_LOAD_SIZE): Likewise.
10616         (PREFETCH_ONE_SET): Likewise.
10617         Rewrite to use forward and backward loops, which move 4 vector
10618         registers at a time, to support overlapping addresses and use
10619         non temporal store if size is above the threshold and there is
10620         no overlap between destination and source.
10621
10622 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
10623
10624         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
10625         Include dl-vdso.
10626         * sysdeps/unix/sysv/linux/mips/Versions: Add
10627         __vdso_clock_gettime.
10628         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
10629         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
10630         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
10631         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
10632         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
10633         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
10634         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
10635         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10636         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10637
10638 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10639
10640         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
10641         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
10642         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
10643         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
10644         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
10645         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
10647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
10648         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
10649         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
10650         syscalls generation.
10651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10652         [__NR_pwrite64] (__NR_write): Remove define.
10653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10654         [__NR_pwrite64] (__NR_write): Remove define.
10655         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
10656         Remove define.
10657         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
10658         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
10659         Remove define.
10660         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
10661         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
10662         Linux implementation as base.
10663         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
10664
10665         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
10666         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
10667         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
10668         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
10669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
10670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
10671         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
10672         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
10673         syscall generation.
10674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10675         [__NR_pread64] (__NR_pread): Remove define.
10676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10677         [__NR_pread64] (__NR_pread): Likewise.
10678         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
10679         define.
10680         (__libc_pread): Use SYSCALL_LL macro on offset argument.
10681         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
10682         Remove define.
10683         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
10684         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
10685         Linux implementation as base.
10686         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
10687         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
10688         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10689
10690         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
10691         definition.
10692         (__ALIGNMENT_COUNT): Likewise.
10693         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
10694         (__ALIGNMENT_COUNT): Likewise.
10695         (SYSCALL_LL): New define.
10696         (SYSCALL_LL64): Likewise.
10697         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
10698         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
10699         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
10700         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
10701
10702         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10703         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
10704         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10705         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
10706         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10707         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
10708
10709 2016-04-11  Florian Weimer  <fweimer@redhat.com>
10710
10711         [BZ #19865]
10712         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
10713         original buffer before retry.
10714
10715 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10716
10717         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
10718         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
10719         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
10720         GLRO(dl_auxv) list.
10721         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
10722         including <ldsodefs.h>.
10723         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
10724
10725 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
10726
10727         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
10728         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
10729         $(CPPFLAGS).
10730
10731 2016-04-09  Khem Raj  <raj.khem@gmail.com>
10732
10733         [BZ #17950]
10734         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
10735         Add -mfpmath=387.
10736
10737 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
10738
10739         * sysdeps/i386/configure.ac: Change == to = when calling test.
10740         * sysdeps/x86_64/configure.ac: Likewise.
10741         * sysdeps/i386/configure: Regenerated.
10742         * sysdeps/x86_64/configure: Likewise.
10743
10744 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
10745
10746         [BZ #16137]
10747         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
10748         * benchtests/bench-strcoll.c (input_files): Likewise.
10749         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
10750         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
10751         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
10752
10753 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
10754
10755         [BZ #19929]
10756         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
10757         [__USE_XOPEN2K8 && !__USE_GNU].
10758         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
10759         variable.
10760
10761         [BZ #19925]
10762         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
10763         define if [!__USE_MISC && __USE_XOPEN2K].
10764         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
10765         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
10766         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
10767         Likewise.
10768         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
10769         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
10770         variable.
10771         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
10772
10773 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10774
10775         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
10776         (sysdep_routines): Add new strspn targets.
10777         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10778         (__libc_ifunc_impl_list): Add strspn.
10779         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
10780         New file.
10781         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
10782         Likewise.
10783         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
10784         Likewise.
10785         * sysdeps/powerpc/powerpc64/power8/strspn.S:
10786         Likewise.
10787
10788 2016-04-07  Florian Weimer  <fweimer@redhat.com>
10789
10790         * misc/hsearch_r.c: Include <limits.h>.
10791
10792 2016-04-07  Florian Weimer  <fweimer@redhat.com>
10793
10794         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
10795
10796 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
10797
10798         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10799         (MEMCPY_SYMBOL): New.
10800         (MEMPCPY_SYMBOL): Likewise.
10801         (MEMMOVE_CHK_SYMBOL): Likewise.
10802         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
10803         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
10804         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
10805         Provide alias for memcpy in libc.a and ld.so.
10806
10807 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
10808
10809         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10810         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
10811         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
10812         Disabled fro now.
10813         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
10814         symbols.  Properly check USE_MULTIARCH on __memset symbols.
10815
10816 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
10817
10818         * benchtests/Makefile (string-benchset): Add memcpy-large,
10819         memmove-large and memset-large.
10820         * benchtests/bench-memcpy-large.c: New file.
10821         * benchtests/bench-memmove-large.c: Likewise.
10822         * benchtests/bench-memmove-large.c: Likewise.
10823         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
10824
10825 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
10826
10827         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
10828         32-bit displacement to avoid long nop between instructions.
10829
10830 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
10831
10832         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
10833         a comment on VMOVU and VMOVA.
10834
10835 2016-04-04  Florian Weimer  <fweimer@redhat.com>
10836
10837         [BZ #19633]
10838         Use specified locale for number formatting in strfmon_l.
10839         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
10840         (__nl_lookup_word): New inline functions.
10841         * include/printf.h (__print_fp_l): Declare.
10842         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
10843         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
10844         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
10845         (___printf_fp): New function.
10846         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
10847         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
10848         * stdlib/tst-strfmon_l.c (do_test): New test.
10849         * stdlib/Makefile (tests): Add kt.
10850         (LOCALES): Build additional locales.
10851         (tst-strfmon_l.out): Require locales.
10852
10853 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10854
10855         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
10856         if not in libc.
10857         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
10858         Likewise.
10859         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
10860         Likewise.
10861         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10862         Likewise.
10863
10864 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10865
10866         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
10867         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
10868         with unaligned_erms.
10869         (__memmove_erms): Skip if source == destination.
10870         (__memmove_unaligned_erms): Don't check source == destination
10871         first.
10872
10873 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10874
10875         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
10876         bit_arch_Fast_Copy_Backward for Intel Core proessors.
10877
10878 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10879
10880         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
10881         * string/strspn.c (strspn): Likewise.
10882
10883 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10884
10885         * benchtests/bench-memset.c (do_test): Support 64-byte
10886         alignment.
10887         (test_main): Test 64-byte alignment.
10888
10889 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10890
10891         * benchtests/bench-memmove.c (test_main): Test 64-byte
10892         alignment.
10893
10894 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10895
10896         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
10897
10898 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10899
10900         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
10901         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
10902         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
10903
10904         * string/strpbrk.c (strpbrk): Rewrite function.
10905         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
10906         (__strpbrk_c2): Likewise.
10907         (__strpbrk_c3): Likewise.
10908         * string/string-inlines.c
10909         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
10910         Likewise.
10911         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
10912         Likewise.
10913
10914         * string/strspn.c (strcspn): Rewrite function.
10915         * string/bits/string2.h (strspn): Use __builtin_strcspn.
10916         (__strspn_c1): Remove inline function.
10917         (__strspn_c2): Likewise.
10918         (__strspn_c3): Likewise.
10919         * string/string-inlines.c
10920         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
10921         compatibility symbol.
10922         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
10923         Likewise.
10924         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
10925         Likewise.
10926         * string/string-inlines.c: Include generic version.
10927
10928 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
10929             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10930
10931         * string/Version (libc): Add GLIBC_2.24.
10932         * string/strcspn.c (strcspn): Rewrite function.
10933         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
10934         (__strcspn_c1): Remove inline function.
10935         (__strcspn_c2): Likewise.
10936         (__strcspn_c3): Likewise.
10937         * string/string-inline.c
10938         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
10939         compatibility symbol.
10940         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
10941         Likewise.
10942         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
10943         Likewise.
10944         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
10945
10946 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
10947
10948         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10949         Use ahi instead of aghi to adjust stack pointer.
10950
10951 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10952
10953         [BZ #19853]
10954         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
10955         TEST to take significant digits as second parameter.
10956         [TEST]: Redefine in terms of TEST_N taking 30
10957         significant digits.
10958         (do_test): Add test case to demonstrate precision
10959         failure in the ldbl-128ibm printf.
10960         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
10961         (__mpn_extract_long_double): Carry 7 extra intermediate
10962         bits of precision to aide computing difference when
10963         signs differ.
10964
10965 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10966
10967         [BZ #19881]
10968         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10969         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
10970         memset-avx512-unaligned-erms.
10971         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10972         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
10973         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
10974         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
10975         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
10976         __memset_sse2_unaligned_erms, __memset_erms,
10977         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
10978         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
10979         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
10980         file.
10981         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10982         Likewise.
10983         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
10984         Likewise.
10985         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
10986         Likewise.
10987
10988 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10989
10990         [BZ #19776]
10991         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10992         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
10993         memmove-avx512-unaligned-erms.
10994         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10995         (__libc_ifunc_impl_list): Test
10996         __memmove_chk_avx512_unaligned_2,
10997         __memmove_chk_avx512_unaligned_erms,
10998         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
10999         __memmove_chk_sse2_unaligned_2,
11000         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
11001         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
11002         __memmove_avx512_unaligned_erms, __memmove_erms,
11003         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
11004         __memcpy_chk_avx512_unaligned_2,
11005         __memcpy_chk_avx512_unaligned_erms,
11006         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
11007         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
11008         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
11009         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
11010         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
11011         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
11012         __mempcpy_chk_avx512_unaligned_erms,
11013         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
11014         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
11015         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
11016         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
11017         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
11018         __mempcpy_erms.
11019         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
11020         file.
11021         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
11022         Likwise.
11023         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
11024         Likwise.
11025         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
11026         Likwise.
11027
11028 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
11029
11030         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
11031         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
11032         (La_s390_64_regs): Likewise.
11033         (La_s390_32_retval): Append vector register lrv_v24.
11034         (La_s390_64_retval): Likeweise.
11035         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
11036         Handle extended structs La_s390_32_regs and La_s390_32_retval.
11037         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
11038         Handle extended structs La_s390_64_regs and La_s390_64_retval.
11039
11040 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
11041
11042         [BZ #19916]
11043         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
11044         to create a non-vector/vector version for _dl_runtime_resolve and
11045         _dl_runtime_profile. Move implementation to ...
11046         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
11047         (_dl_runtime_resolve) Save and restore fpr/vrs.
11048         (_dl_runtime_profile) Save and restore vrs and fix some issues
11049         if _dl_call_pltexit is called.
11050         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11051         Choose the correct resolver function if running on a machine with vx.
11052         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
11053         to create a non-vector/vector version for _dl_runtime_resolve and
11054         _dl_runtime_profile. Move implementation to ...
11055         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
11056         (_dl_runtime_resolve) Save and restore fpr/vrs.
11057         (_dl_runtime_profile) Save and restore vrs and fix some issues
11058         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
11059         Choose the correct resolver function if running on a machine with vx.
11060
11061 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11062
11063         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
11064
11065 2016-03-31  Florian Weimer  <fweimer@redhat.com>
11066
11067         [BZ #19509]
11068         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
11069         skip_map != NULL.
11070         * elf/tst-dlsym-error.c: New file.
11071         * elf/Makefile (tests): Add tst-dlsym-error.
11072         (tst-dlsym-error): Link against libdl.
11073
11074 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
11075
11076         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11077         (__ASSUME_FUTIMESAT): Remove macro.
11078         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
11079
11080 2016-03-29  Florian Weimer  <fweimer@redhat.com>
11081
11082         [BZ #19879]
11083         CVE-2016-3075
11084         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
11085         copy name.
11086
11087 2016-03-29  Florian Weimer  <fweimer@redhat.com>
11088
11089         [BZ #19837]
11090         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
11091         error if parse_line fails.
11092
11093 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
11094
11095         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
11096         (index_cpu_ERMS): Likewise.
11097         (reg_ERMS): Likewise.
11098
11099 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
11100
11101         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
11102         PER_LINUX_FDPIC): Add.
11103
11104 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
11105
11106         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11107         memcpy-avx512-no-vzeroupper.
11108         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
11109         to ...
11110         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
11111         (MEMCPY): Don't define.
11112         (MEMCPY_CHK): Likewise.
11113         (MEMPCPY): Likewise.
11114         (MEMPCPY_CHK): Likewise.
11115         (MEMPCPY_CHK): Renamed to ...
11116         (__mempcpy_chk_avx512_no_vzeroupper): This.
11117         (MEMPCPY_CHK): Renamed to ...
11118         (__mempcpy_chk_avx512_no_vzeroupper): This.
11119         (MEMCPY_CHK): Renamed to ...
11120         (__memmove_chk_avx512_no_vzeroupper): This.
11121         (MEMCPY): Renamed to ...
11122         (__memmove_avx512_no_vzeroupper): This.
11123         (__memcpy_avx512_no_vzeroupper): New alias.
11124         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
11125
11126 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
11127
11128         [BZ #18858]
11129         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11130         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
11131         and mempcpy-avx512-no-vzeroupper.
11132         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
11133         New.
11134         (MEMPCPY): Likewise.
11135         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
11136         (MEMPCPY_CHK): New.
11137         (MEMPCPY): Likewise.
11138         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
11139         (MEMPCPY): Likewise.
11140         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
11141         (MEMPCPY): Likewise.
11142         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
11143         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
11144         Likewise.
11145         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
11146         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
11147
11148 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
11149              Amit Pawar  <Amit.Pawar@amd.com>
11150
11151         [BZ #19583]
11152         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
11153         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
11154         processors.  Set Fast_Copy_Backward for AMD Excavator
11155         processors.
11156         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
11157         New.
11158         (index_arch_Fast_Unaligned_Copy): Likewise.
11159         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
11160         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
11161
11162 2016-03-25  Florian Weimer  <fweimer@redhat.com>
11163
11164         [BZ #19791]
11165         * resolv/res_send.c (close_and_return_error): New function.
11166         (send_dg): Initialize *resplen2 after reopen failure.  Call
11167         close_and_return_error for error returns.  On error paths without
11168         __res_iclose, initialze *resplen2 explicitly.  Update comment for
11169         successful return.
11170
11171 2016-03-25  Florian Weimer  <fweimer@redhat.com>
11172
11173         [BZ# 19860]
11174         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
11175         zero if the compiler does not provide the AVX512F bit.
11176
11177 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
11178
11179         [BZ #19848]
11180         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
11181         from 8 to 4.
11182         (__ieee754_powl): Compare integer exponent against 4 not 8.
11183         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
11184         from 8 to 4.
11185         (__ieee754_powl): Compare integer exponent against 4 not 8.
11186         * math/auto-libm-test-in: Add more tests of pow.
11187         * math/auto-libm-test-out: Regenerated.
11188         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
11189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11190
11191 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
11192
11193         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
11194         Make code unconditional.
11195         [!__NR_utimensat]: Remove conditional code.
11196         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
11197         Make code unconditional.
11198         [!__NR_utimensat]: Remove conditional code.
11199         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
11200         Make code unconditional.
11201         [!__NR_utimensat]: Remove conditional code.
11202
11203 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
11204
11205         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
11206         Make code unconditional.
11207
11208 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
11209
11210         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
11211         call-clobbered %eax on retry path.
11212         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
11213
11214 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11215
11216         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
11217         Don't set %rcx twice before "rep movsb".
11218
11219 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11220
11221         [BZ #19583]
11222         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
11223         inline.  Check family before setting family, model and
11224         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
11225         bits here.
11226         (init_cpu_features): Replace HAS_CPU_FEATURE and
11227         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
11228         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
11229         for Intel processors with usable AVX2.  Call get_common_indeces
11230         for other processors with family == NULL.
11231         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
11232         (CPU_FEATURES_ARCH_P): Likewise.
11233         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
11234         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
11235
11236 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11237
11238         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
11239         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
11240         $(shared-thread-library) instead of hardcoding the path to libpthread.
11241
11242 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
11243
11244         * sysdeps/unix/sysv/linux/kernel-features.h
11245         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
11246         * sysdeps/unix/sysv/linux/getdents.c
11247         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
11248         [!have_no_getdents64_defined]: Likewise.
11249         (__GETDENTS): Remove __have_no_getdents64 conditional.
11250
11251 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
11252
11253         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
11254         Remove macro.
11255         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
11256         <kernel-features.h>.
11257         (signalfd) [__NR_signalfd4]: Make code unconditional.
11258         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
11259
11260 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11261
11262         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
11263         style.
11264
11265 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11266
11267         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
11268         (__pthread_enable_asynccancel): Use JUMPTARGET to call
11269         __pthread_unwind.
11270         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
11271         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
11272         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
11273         (__condvar_cleanup1): Likewise.
11274
11275 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
11276
11277         [BZ #19822]
11278         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
11279         move it to the final $@ location.
11280
11281 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11282
11283         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
11284         access where posix_spawn success and pid argument is null.
11285         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
11286         success case.
11287
11288 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
11289
11290         * sysdeps/mach/hurd/i386/c++-types.data: New file.
11291
11292         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
11293
11294         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
11295         and __fcntl.
11296         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
11297         __fcntl only.
11298         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
11299         adding attribute_hidden to __open and __fcntl.
11300
11301         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
11302         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
11303         depend on libc-modules.h,
11304         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
11305
11306 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
11307
11308         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
11309         Remove macro.
11310         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
11311         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
11312         entry.
11313
11314         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
11315         Remove macro.
11316         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
11317         include <kernel-features.h>.
11318         [!__ASSUME_FALLOCATE]: Remove conditional code.
11319         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
11320
11321 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11322
11323         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
11324         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
11325         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
11326         (_ZGVdN4v_cos_avx2): Likewise.
11327         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
11328         (_ZGVdN4v_cos): Likewise.
11329         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
11330         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
11331         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
11332         (_ZGVdN4v_exp_avx2): Likewise.
11333         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
11334         (_ZGVdN4v_exp): Likewise.
11335         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
11336         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
11337         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
11338         (_ZGVdN4v_log_avx2): Likewise.
11339         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
11340         (_ZGVdN4v_log): Likewise.
11341         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
11342         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
11343         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
11344         (_ZGVdN4vv_pow_avx2): Likewise.
11345         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
11346         (_ZGVdN4vv_pow): Likewise.
11347         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
11348         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
11349         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
11350         (_ZGVdN4v_sin_avx2): Likewise.
11351         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
11352         (_ZGVdN4v_sin): Likewise.
11353         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
11354         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
11355         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
11356         (_ZGVdN4vvv_sincos_avx2): Likewise.
11357         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
11358         (_ZGVdN4vvv_sincos): Likewise.
11359         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
11360         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
11361         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
11362         (_ZGVbN4v_cosf_sse4): Likewise.
11363         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
11364         (_ZGVdN8v_cosf_avx2): Likewise.
11365         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
11366         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
11367         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
11368         (_ZGVbN4v_expf_sse4): Likewise.
11369         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
11370         (_ZGVdN8v_expf_avx2): Likewise.
11371         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
11372         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
11373         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
11374         (_ZGVbN4v_logf_sse4): Likewise.
11375         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
11376         (_ZGVdN8v_logf_avx2): Likewise.
11377         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
11378         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
11379         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
11380         (_ZGVbN4vv_powf_sse4): Likewise.
11381         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
11382         (_ZGVdN8vv_powf_avx2): Likewise.
11383         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
11384         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
11385         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
11386         (_ZGVbN4vvv_sincosf_sse4): Likewise.
11387         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
11388         (_ZGVdN8vvv_sincosf_avx2): Likewise.
11389         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
11390         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
11391         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
11392         (_ZGVbN4v_sinf_sse4): Likewise.
11393         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
11394         (_ZGVdN8v_sinf_avx2): Likewise.
11395         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
11396         Use JUMPTARGET to call callee.
11397         (WRAPPER_IMPL_SSE2_ff): Likewise.
11398         (WRAPPER_IMPL_SSE2_fFF): Likewise.
11399         (WRAPPER_IMPL_AVX): Likewise.
11400         (WRAPPER_IMPL_AVX_ff): Likewise.
11401         (WRAPPER_IMPL_AVX_fFF): Likewise.
11402         (WRAPPER_IMPL_AVX512): Likewise.
11403         (WRAPPER_IMPL_AVX512_ff): Likewise.
11404         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
11405         Likewise.
11406         (WRAPPER_IMPL_SSE2_ff): Likewise.
11407         (WRAPPER_IMPL_SSE2_fFF): Likewise.
11408         (WRAPPER_IMPL_AVX): Likewise.
11409         (WRAPPER_IMPL_AVX_ff): Likewise.
11410         (WRAPPER_IMPL_AVX_fFF): Likewise.
11411         (WRAPPER_IMPL_AVX512): Likewise.
11412         (WRAPPER_IMPL_AVX512_ff): Likewise.
11413         (WRAPPER_IMPL_AVX512_fFF): Likewise.
11414
11415 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11416
11417         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
11418         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
11419         qualifier.
11420         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
11421         internal_function qualifiers.
11422
11423 2016-03-15  Carlos O'Donell <carlos@redhat.com>
11424
11425         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
11426         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
11427         * math/atest-exp.c (exp_mpn): Mark chk unused.
11428         * math/atest-exp2.c (exp_mpn): Likwise.
11429         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
11430         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
11431
11432 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
11433
11434         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
11435         Remove macro.
11436         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
11437         <kernel-features.h>.
11438         [__NR_ppoll]: Make code unconditional.
11439         [!__ASSUME_PPOLL]: Remove conditional code.
11440
11441         * sysdeps/unix/sysv/linux/kernel-features.h
11442         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
11443         (__ASSUME_ACCEPT4): Likewise.
11444         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
11445         Define.
11446         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
11447         Likewise.
11448         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
11449         Likewise.
11450         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
11451         Likewise.
11452         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
11453         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
11454         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11455         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
11456         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
11457         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11458         * sysdeps/unix/sysv/linux/arm/kernel-features.h
11459         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11460         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
11461         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11462         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11463         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
11464         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11465         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11466         * sysdeps/unix/sysv/linux/i386/kernel-features.h
11467         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
11468         Likewise.
11469         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
11470         Likewise.
11471         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
11472         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
11473         0x040300].
11474         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
11475         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
11476         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11477         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
11478         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
11479         0x030300].
11480         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
11481         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11482         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
11483         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
11484         0x040300].
11485         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11486         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11487         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11488         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
11489         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11490         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
11491         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
11492         0x030300].
11493         * sysdeps/unix/sysv/linux/mips/kernel-features.h
11494         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
11495         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11496         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11497         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11498         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
11499         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11500         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11501         * sysdeps/unix/sysv/linux/s390/kernel-features.h
11502         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
11503         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
11504         0x040300].
11505         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11506         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11507         * sysdeps/unix/sysv/linux/sh/kernel-features.h
11508         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
11509         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11510         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11511         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11512         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
11513         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11514         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11515         * sysdeps/unix/sysv/linux/tile/kernel-features.h
11516         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
11517         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
11518         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
11519         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
11520         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
11521         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
11522         Likewise.
11523         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
11524         Likewise.
11525
11526 2016-03-15  Andreas Schwab  <schwab@suse.de>
11527
11528         [BZ #19257]
11529         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
11530         statp->_u._ext.nscount as loop count.
11531
11532 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
11533
11534         * math/test-signgam-finite-c99.c: Also #undef
11535         __LIBC_INTERNAL_MATH_INLINES.
11536         * math/test-signgam-main.c: Likewise.
11537
11538 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
11539
11540         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
11541         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11542         (MADV_FREE): Likewise.
11543         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
11544         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
11545         EPOLLEXCLUSIVE.
11546
11547 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
11548
11549         * timezone/README: Remove mention of checktab.awk. Mention wiki
11550         SharedSourceFiles.
11551
11552 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
11553
11554         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
11555         WUNTRACED.
11556
11557 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11558
11559         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
11560         order to match the type of p when calling atomic_exchange_acq().
11561
11562 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11563
11564         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
11565         cfi_offset calls.
11566         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
11567         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
11568         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
11569         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
11570         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
11571
11572 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
11573
11574         * timezone/checktab.awk: Removed.
11575
11576 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
11577
11578         * manual/math.texi (Errors in Math Functions): Document relaxed
11579         accuracy goals for IBM long double.
11580         * math/libm-test.inc (test_exceptions): Always allow spurious
11581         "underflow" and "inexact" exceptions for IBM long double.
11582
11583 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11584
11585         [BZ #19762]
11586         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
11587         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
11588         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
11589         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
11590         (bit_arch_*): This for feature array.
11591         (bit_*): Renamed to ...
11592         (bit_cpu_*): This for cpu array.
11593         (index_*): Renamed to ...
11594         (index_arch_*): This for feature array.
11595         (index_*): Renamed to ...
11596         (index_cpu_*): This for cpu array.
11597         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
11598         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
11599         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
11600         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
11601         bit_##name with index_cpu_##name and bit_cpu_##name.
11602         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
11603         bit_##name with index_arch_##name and bit_arch_##name.
11604
11605 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
11606
11607         [BZ #19792]
11608         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
11609         Terminate FDE before return label.
11610
11611 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
11612
11613         [BZ #19790]
11614         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
11615         (rintl): Define as macro.
11616         [USE_AS_NEARBYINTL] (__rintl): Likewise.
11617         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
11618         of fesetround.  Ensure results are evaluated before end of scope.
11619         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
11620         USE_AS_NEARBYINTL and include s_rintl.c.
11621         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
11622         Disable exception traps in new environment.
11623         (libc_feholdsetround_ppc_ctx): Likewise.
11624
11625 2016-03-08  Roland McGrath  <roland@hack.frob.com>
11626
11627         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
11628         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
11629         (tst_audit10_aux) [__AVX512F__]: ... here.
11630
11631 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
11632
11633         * include/sys/auxv.h: New file.
11634
11635 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
11636
11637         [BZ #19759]
11638         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
11639
11640 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11641
11642         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
11643         operand modifier.
11644         (feclearexcept): Likewise.
11645
11646 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11647
11648         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
11649         to reflect the entire 32-bit HWCAP.
11650         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
11651         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
11652
11653 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
11654
11655         [BZ #19783]
11656         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
11657         $(test-via-rtld-prefix).
11658         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
11659
11660 2016-03-08  Florian Weimer  <fweimer@redhat.com>
11661
11662         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
11663         union wait.  Report any non-zero exit status as error.
11664
11665 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11666
11667         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
11668         configured with --enable-hardcoded-path-in-tests.
11669
11670 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
11671
11672         [BZ #19677]
11673         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11674         (__ieee754_remainderl): Put zero low parts in canonical form.
11675         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
11676         file.  Based on
11677         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
11678         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
11679         with wrapper round test-fmodrem-ldbl-128ibm.c.
11680         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
11681         file.
11682         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
11683         Likewise.
11684         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
11685         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
11686
11687 2016-03-07  Florian Weimer  <fweimer@redhat.com>
11688
11689         [BZ #19610]
11690         * elf/ldconfig.c (opt_link): Update comment.
11691         (options): Update help string for option -X.
11692         (search_dir): Unlink stale symbolic link only if updating symbolic
11693         links.
11694         * elf/tst-ldconfig-X.sh: New file.
11695         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
11696         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
11697
11698 2016-03-07  Andreas Schwab  <schwab@suse.de>
11699
11700         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
11701         needed arguments.
11702
11703 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
11704
11705         [BZ #15333]
11706         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
11707         to lstat64.
11708
11709 2016-03-07  Florian Weimer  <fweimer@redhat.com>
11710
11711         * libio/filedoalloc.c (isatty): Remove.
11712         (local_isatty): Add comment.  Call __isatty directly.
11713         (_IO_file_doallocate): Update comment.  Assume _LIBC.
11714         * libio/wfiledoalloc.c (isatty): Remove.
11715         (_IO_wfile_doallocate): Update comment.
11716
11717 2016-03-07  Florian Weimer  <fweimer@redhat.com>
11718
11719         [BZ #19269]
11720         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
11721         tst-audit4-aux.o.
11722         (tst-audit10): Depend on tst-audit10-aux.o.
11723         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
11724         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
11725         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
11726         instead of inline AVX code.
11727         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
11728         instead of inline AVX512 code.
11729         * sysdeps/x86_64/tst-audit4-aux.c: New file
11730         * sysdeps/x86_64/tst-audit10-aux.c: New file
11731
11732         [BZ #19648]
11733         * test-skeleton.c (main): Do not set RLIMIT_DATA.
11734
11735 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11736
11737         [BZ #14750]
11738         [BZ #10354]
11739         [BZ #18433]
11740         * include/sched.h (__clone): Add hidden prototype.
11741         (__clone2): Likewise.
11742         * include/unistd.h (__dup): Likewise.
11743         * posix/Makefile (tests): Add tst-spawn2.
11744         * posix/tst-spawn2.c: New file.
11745         * sysdeps/posix/dup.c (__dup): Add hidden definition.
11746         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
11747         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
11748         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
11749         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
11750         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
11751         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
11752         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
11753         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
11754         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
11755         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
11756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
11757         Likewise.
11758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11759         Likewise.
11760         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
11761         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
11762         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
11763         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
11764         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
11765         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
11766         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
11767         * sysdeps/unix/sysv/linux/nptl-signals.h
11768         (____nptl_is_internal_signal): New function.
11769         * sysdeps/unix/sysv/linux/spawni.c: New file.
11770
11771         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
11772         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
11773         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
11774         * posix/tst-execvp2.c (do_test): Likewise.
11775         * posix/tst-execvp3.c (do_test): Likewise.
11776         * posix/tst-execvp4.c (do_test): Likewise.
11777         * posix/tst-execvpe1.c: New file.
11778         * posix/tst-execvpe2.c: Likewise.
11779         * posix/tst-execvpe3.c: Likewise.
11780         * posix/tst-execvpe4.c: Likewise.
11781         * posix/tst-execvpe5.c: Likewise.
11782         * posix/tst-execvpe6.c: Likewise.
11783
11784         [BZ #19534]
11785         * posix/execl.c (execl): Remove dynamic memory allocation.
11786         * posix/execle.c (execle): Likewise.
11787         * posix/execlp.c (execlp): Likewise.
11788
11789 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
11790
11791         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
11792         Replace .text with .text.avx512.
11793         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
11794         Likewise.
11795
11796 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
11797
11798         * sysdeps/generic/libnsl.abilist: New file.
11799         * sysdeps/generic/libutil.abilist: New file.
11800
11801 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
11802
11803         [BZ #19762]
11804         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
11805         HAS_ARCH_FEATURE with Fast_Rep_String.
11806         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
11807         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
11808         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
11809         Likewise.
11810         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
11811         Likewise.
11812         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
11813         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
11814         Likewise.
11815         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
11816         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
11817         Likewise.
11818
11819 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11820
11821         [BZ #19745]
11822         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11823         with *%rax in call.
11824
11825 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11826
11827         [BZ #19745]
11828         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
11829         with *__libc_start_main@GOTPCREL(%rip) in call.
11830
11831 2016-03-04  Roland McGrath  <roland@hack.frob.com>
11832
11833         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
11834         inside conditional for nonempty $(CXX).
11835
11836         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
11837         nonempty.
11838
11839         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
11840         to test for empty $(CXX) rather than $(CXX) of "no".
11841
11842 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11843
11844         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
11845
11846 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
11847             H.J. Lu  <hongjiu.lu@intel.com>
11848
11849         [BZ #18880]
11850         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
11851         instead of Slow_BSF, and also check for Fast_Copy_Backward to
11852         enable __memcpy_ssse3_back.
11853
11854 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11855
11856         [BZ #19758]
11857         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
11858         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
11859
11860 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11861
11862         [BZ #19490]
11863         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
11864         (__fentry__): Likewise.
11865
11866 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11867
11868         * gmon/Makefile (noprof): Add $(sysdep_noprof).
11869         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
11870
11871 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11872
11873         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
11874         __mcount_internal directly.
11875         (C_LABEL(__fentry__)): Likewise.
11876         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
11877         directly.
11878
11879 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11880
11881         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11882         (__start_context): Call __setcontext directly.
11883
11884 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
11885
11886         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11887         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11888         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
11889         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11890         * sysdeps/unix/sysv/linux/arm/kernel-features.h
11891         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11892         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
11893         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11894         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11895         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
11896         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11897         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11898         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
11899         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11900         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11901         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11902         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
11903         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11904         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11905         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11906         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
11907         * sysdeps/unix/sysv/linux/mips/kernel-features.h
11908         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11909         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11910         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
11911         Remove conditional code.
11912         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11913         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
11914         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11915         * sysdeps/unix/sysv/linux/sh/kernel-features.h
11916         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
11917         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11918         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11919         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11920         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11921         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11922         * sysdeps/unix/sysv/linux/tile/kernel-features.h
11923         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11924
11925 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
11926
11927         * NEWS (2.23): Fix typo in bug 19048 text.
11928
11929 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
11930
11931         [BZ #14259]
11932         * Makeconfig: Rename msgcatdir to localedir.
11933         Rename inst_msgcatdir to inst_localedir.
11934         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
11935         * config.make.in: Add localedir.
11936         * elf/Makefile ($(objpfx)sotruss): Use localedir.
11937         (ldd-rewrite): Likewise.
11938         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
11939         (install-others): Use inst_localedir.
11940         (CPPFLAGS): Use localedir.
11941         * locale/Makefile (locale-CPPFLAGS): Likewise.
11942         * po/Makefile (mo-installed): Use inst_localedir.
11943
11944         [BZ #19575]
11945         * localedata/charmaps/GB18030: Update comments regarding PAU to
11946         non-PUA mappings.
11947
11948 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
11949
11950         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
11951         test for header.
11952         * sysdeps/unix/sysv/linux/configure: Regenerated.
11953         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
11954         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
11955         Remove conditional code.
11956         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
11957
11958         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
11959         Define to 3.2.0.
11960         (arch_minimum_kernel): Likewise.
11961         * sysdeps/unix/sysv/linux/configure: Regenerated.
11962         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
11963         Define to 2.6.32.
11964         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
11965         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
11966         (arch_minimum_kernel): Define to 2.6.32.
11967         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
11968         * README: Document Linux 3.2 requirement.
11969         * manual/install.texi (Linux): Document Linux 3.2 headers
11970         requirement.
11971         * INSTALL: Regenerated.
11972
11973 2016-02-24  Andreas Schwab  <schwab@suse.de>
11974
11975         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
11976         if !NO_LONG_DOUBLE.
11977
11978 2016-02-22  Roland McGrath  <roland@hack.frob.com>
11979
11980         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
11981         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
11982
11983 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
11984
11985         [BZ #19512]
11986         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
11987
11988 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11989
11990         * posix/tst-dir.c: Include libc-internal.h.
11991
11992 2016-02-20  Florian Weimer  <fweimer@redhat.com>
11993
11994         [BZ #19056]
11995         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
11996         * manual/filesys.texi (Reading/Closing Directory): Mention
11997         deprecaion.
11998         * posix/tst-dir.c (main): Disable deprecation warning in test.
11999
12000 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
12001
12002         [BZ #19679]
12003         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
12004         Renamed to ...
12005         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
12006         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
12007         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
12008         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
12009         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
12010         * sysdeps/x86_64/dl-trampoline.h
12011         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
12012         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
12013
12014 2016-02-19  Mark Wielaard  <mjw@redhat.com>
12015
12016         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
12017
12018 2016-02-19  Mark Wielaard  <mjw@redhat.com>
12019
12020         * elf/elf.h (R_386_GOT32X): New.
12021         (R_386_NUM): Update.
12022         (R_X86_64_GOTPCRELX: New.
12023         (R_X86_64_REX_GOTPCRELX): New.
12024         (R_X86_64_NUM): Update.
12025
12026 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
12027
12028         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
12029
12030 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
12031
12032         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
12033         assign attr->stackaddr to it, and adjust it down when
12034         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
12035         [_STACK_GROWS_UP]: Delete assert.
12036         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
12037         Implement stack grows up logic.
12038         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
12039         stack grows up logic.
12040
12041 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12042
12043         * NEWS: Update with 2.24 template.
12044
12045 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
12046
12047         [BZ #19678]
12048         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
12049         Ensure +0.0 is returned when taking the next value below the least
12050         positive value.
12051
12052 2016-02-19  Florian Weimer  <fweimer@redhat.com>
12053
12054         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
12055         available.  Do not define NO_THREADS.
12056         * malloc/malloc.c: Do not check NO_THREADS.
12057         * malloc/arena.c: Likewise.
12058
12059 2016-02-19  Florian Weimer  <fweimer@redhat.com>
12060
12061         * malloc/malloc.c (__libc_mallinfo): Update comment.
12062         (struct malloc_par): Remove max_total_mem member, it was always 0.
12063         (int_mallinfo): Store 0 into usmblks (no functional change).
12064         * malloc/hooks.c (struct malloc_state): Document that
12065         max_total_mem is always 0.
12066         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
12067         always 0.
12068         * manual/memory.texi (Statistics of Malloc): Likewise.
12069
12070 2016-02-19  Florian Weimer  <fweimer@redhat.com>
12071
12072         * malloc/malloc.c (sysmalloc): Do not update arena_max.
12073         * malloc/arena.c (arena_max): Remove.
12074         (heap_trim, _int_new_arena): Do not update arena_max.
12075
12076 2016-02-19  Florian Weimer  <fweimer@redhat.com>
12077
12078         * resolv/res_init.c (res_ninit): Update comment.
12079
12080 2016-02-19  Florian Weimer  <fweimer@redhat.com>
12081
12082         [BZ #19505]
12083         * posix/spawn_int.h: Add headers and include guard.
12084         (__spawn_valid_fd): New function.
12085         * posix/spawn_faction_addopen.c
12086         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
12087         * posix/spawn_faction_addclose.c
12088         (posix_spawn_file_actions_addclose): Likewise.
12089         * posix/spawn_faction_adddup2.c
12090         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
12091         second file descriptor.
12092         * posix/spawn_valid_fd.c: New file.
12093         * posix/tst-posix_spawn-fd.c: New file.
12094         * posix/Makefile (routines): Add spawn_valid_fd.
12095         (tests): Add tst-posix_spawn-fd.
12096
12097 2016-02-19  Florian Weimer  <fweimer@redhat.com>
12098
12099         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
12100         (do_test): Limit the number of arenas, so that we can use fewer
12101         outer threads.  Limit timeout to 3 seconds, in preparation for a
12102         larger TIMEOUT value.
12103
12104 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
12105
12106         [BZ #19674]
12107         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
12108         sign in overflowing and underflowing results when overflow or
12109         underflow is detected early.  Include sign in result before rather
12110         than after scaling.
12111
12112         [BZ #19603]
12113         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
12114         (__ieee754_remainderl): Adjust sign of integer version of low part
12115         when taking absolute value of high part.
12116         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
12117         * math/libm-test.inc (remainder_test_data): Add another test.
12118         (remquo_test_data): Likewise.
12119
12120 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
12121
12122         [BZ #19602]
12123         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
12124         equal high parts and both low parts zero specially.
12125         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
12126         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
12127         Add test-fmodl-ldbl-128ibm.
12128
12129         [BZ #19595]
12130         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
12131         common logic for all cases of shifting subnormal results.  Do not
12132         insert sign bit in shifted mantissa.  Always pass -1023 as biased
12133         exponent to ldbl_insert_mantissa in subnormal case.
12134
12135         [BZ #19594]
12136         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
12137         on high and low parts then adjust result and use
12138         ldbl_canonicalize_int if needed.
12139
12140         [BZ #19593]
12141         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
12142         on high part and __floor or __ceil on low part then use
12143         ldbl_canonicalize_int if needed.
12144
12145         [BZ #19592]
12146         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
12147         high and low parts then use ldbl_canonicalize_int if needed.
12148
12149         [BZ #17899]
12150         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
12151         New function.
12152         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
12153         on high and low parts then use ldbl_canonicalize_int if needed.
12154
12155 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12156
12157         * configure: Regenerated.
12158
12159         * po/libc.pot: Regenerated.
12160
12161         * po/be.po: Updated translation.
12162         * po/bg.po: Likewise.
12163         * po/ca.po: Likewise.
12164         * po/cs.po: Likewise.
12165         * po/da.po: Likewise.
12166         * po/el.po: Likewise.
12167         * po/eo.po: Likewise.
12168         * po/es.po: Likewise.
12169         * po/fi.po: Likewise.
12170         * po/fr.po: Likewise.
12171         * po/gl.po: Likewise.
12172         * po/hr.po: Likewise.
12173         * po/hu.po: Likewise.
12174         * po/ia.po: Likewise.
12175         * po/id.po: Likewise.
12176         * po/it.po: Likewise.
12177         * po/ja.po: Likewise.
12178         * po/lt.po: Likewise.
12179         * po/nb.po: Likewise.
12180         * po/nl.po: Likewise.
12181         * po/pt_BR.po: Likewise.
12182         * po/rw.po: Likewise.
12183         * po/sk.po: Likewise.
12184         * po/sl.po: Likewise.
12185         * po/sv.po: Likewise.
12186         * po/tr.po: Likewise.
12187         * po/zh_CN.po: Likewise.
12188         * po/zh_TW.po: Likewise.
12189
12190         * version.h (RELEAES): Set to "development".
12191         (VERSION): Set to 2.23.90.
12192
12193         * version.h (RELEASE): Set to "stable".
12194         (VERSION): Set to 2.23.
12195         * include/feature.h (__GLIBC_MINOR__): Set to 23.
12196
12197         * NEWS: Updated fixed bugs.
12198
12199 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
12200             Wilco Dijkstra  <wdijkstr@arm.com>
12201
12202         [BZ #19462]
12203         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
12204         (_STRING_INLINE_unaligned): This.
12205         * include/string.h: Include <string_private.h>.
12206         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
12207         _STRING_INLINE_unaligned.
12208         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
12209         (_STRING_INLINE_unaligned): New.
12210         * sysdeps/aarch64/string_private.h: New file.
12211         * sysdeps/generic/string_private.h: Likewise.
12212         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
12213         * sysdeps/s390/string_private.h: Likewise.
12214         * sysdeps/x86/string_private.h: Likewise.
12215         * sysdeps/m68k/m680x0/m68020/bits/string.h
12216         (_STRING_ARCH_unaligned): Renamed to ...
12217         (_STRING_INLINE_unaligned): This.
12218         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
12219         to ...
12220         (_STRING_INLINE_unaligned): This.
12221         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
12222         to ...
12223         (_STRING_INLINE_unaligned): This.
12224         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
12225         to ...
12226         (_STRING_INLINE_unaligned): This.
12227
12228 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
12229             H.J. Lu  <hongjiu.lu@intel.com>
12230
12231         [BZ #19590]
12232         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
12233         relocation.
12234
12235 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
12236
12237         [BZ #18665]
12238         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
12239         *herrno_p.
12240         (gaih_getanswer): Document functional behviour. Return tryagain
12241         if any result is tryagain.
12242         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
12243         when freed.
12244         * resolv/res_send.c: Add copyright text.
12245         (__libc_res_nsend): Document that MAXPACKET is expected.
12246         (send_vc): Document. Remove buffer reuse.
12247         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
12248         size of the buffer. Add Dprint for truncated UDP buffer.
12249
12250 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
12251
12252         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
12253         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
12254         * INSTALL: Regenerate.
12255
12256 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
12257             Jonathan Wakely  <jwakely@redhat.com>
12258             Carlos O'Donell  <carlos@redhat.com>
12259
12260         [BZ 19439]
12261         * math/Makefile (tests): Add test-math-isinff.
12262         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
12263         * math/bits/mathcalls.h [__USE_MISC]: Use
12264         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
12265         functions not in C++11 and which don't conflict e.g. isinff,
12266         isinfl etc.
12267         * math/test-math-isinff.cc: New file.
12268
12269 2016-02-12  Florian Weimer  <fweimer@redhat.com>
12270
12271         * misc/bug18240.c (do_test): Set RLIMIT_AS.
12272
12273 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12274
12275         [BZ #19529]
12276         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
12277
12278 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12279
12280         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
12281
12282 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
12283
12284         [BZ #19550]
12285         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
12286         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
12287         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
12288         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
12289         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
12290         New syscall entry.
12291         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
12292         New syscall entry.
12293         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
12294         syscall entry.
12295
12296 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
12297
12298         [BZ #18240]
12299         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
12300         unsigned int wraparound.
12301
12302 2016-01-27  Florian Weimer  <fweimer@redhat.com>
12303
12304         [BZ #18240]
12305         * misc/bug18240.c: New test.
12306         * misc/Makefile (tests): Add it.
12307
12308 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
12309             Joseph Myers  <joseph@codesourcery.com>
12310
12311         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
12312         load in branch delay slot when less than a word of input left.
12313
12314 2016-01-27  Andreas Schwab  <schwab@suse.de>
12315
12316         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
12317         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
12318         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
12319         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
12320
12321 2016-01-26  David S. Miller  <davem@davemloft.net>
12322
12323         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
12324
12325 2016-01-25  David S. Miller  <davem@davemloft.net>
12326
12327         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
12328         __sqrtl_finite.
12329         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
12330         instead using versioned_symbol.
12331         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
12332         of entries.
12333
12334         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
12335         __sqrtl_finite to GLIBC_2.23
12336
12337 2016-01-25  Ricchard Henderson  <rth@redhat.com>
12338
12339         * sysdeps/alpha/fpu/libm-test-ulps: Update.
12340
12341 2016-01-25  Andreas Schwab  <schwab@suse.de>
12342
12343         [BZ #17514]
12344         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
12345         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
12346         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
12347         * nptl/tst-mutex-errorcheck.c: New file.
12348
12349 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12350
12351         [BZ #18560]
12352         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
12353         (IPCOP_semop): Likewise.
12354         (IPCOP_semget): Likewise.
12355         (IPCOP_semctl): Likewise.
12356         (IPCOP_msgsnd): Likewise.
12357         (IPCOP_msgrcv): Likewise.
12358         (IPCOP_msgget): Likewise.
12359         (IPCOP_msgctl): Likewise.
12360         (IPCOP_shmat): Likewise.
12361         (IPCOP_shmdt): Likewise.
12362         (IPCOP_shmget): Likewise.
12363         (IPCOP_shmctl): Likewise.
12364
12365 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
12366
12367         * string/tst-endian.c: Include <libc-internal.h>.
12368         (do_test): Ignore tautological-compare warnings around
12369         "htobeXX (beXXtoh (i)) != i" and
12370         "htoleXX (leXXtoh (i)) != i" if-statements.
12371
12372 2016-01-24  David S. Miller  <davem@davemloft.net>
12373
12374         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
12375         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
12376         alias.
12377         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
12378         __sqrtl_finite.
12379
12380         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12381
12382 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
12383
12384         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
12385         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
12386         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12387
12388 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12389
12390         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
12391         (thread_func): Use new function to simplify barrier check.
12392         (do_test): Use new function to simplify checking barrier exit
12393         code, and actually join the child thread.
12394
12395 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12396
12397         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
12398         semicolon.
12399         (__libc_tend): Likewise.
12400         (__libc_tabort): Likewise.
12401
12402 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
12403
12404         * sysdeps/nios2/libm-test-ulps: Update.
12405         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
12406         (__gtsf2): Likewise.
12407         (__unorddf2): Likewise.
12408         (__unordsf2): Likewise.
12409         (__ledf2): Likewise.
12410
12411 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
12412
12413         * nis/nis_table.c (__follow_path): Disable diagnostic for
12414         uninitialized variable that is a false positive for gcc 4.7.
12415         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
12416
12417 2016-01-20  Roland McGrath  <roland@hack.frob.com>
12418
12419         * sysdeps/nacl/lowlevellock-futex.h
12420         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
12421         Always evaluate PRIVATE argument.
12422
12423 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
12424
12425         [BZ #19490]
12426         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
12427         (pthread_cond_broadcast): Use ENTRY/END
12428         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
12429         (pthread_cond_signal): Likewise.
12430         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
12431         Likewise.
12432         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
12433         Likewise.
12434         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
12435         Likewise.
12436
12437 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
12438
12439         * sysdeps/ieee754/dbl-64/s_finite.c
12440         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
12441         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
12442         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
12443         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
12444         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
12445
12446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
12447         (__gtsf2): Add as optional for libc.so.
12448         (__unordsf2): Likewise.
12449         (__signbit): Remove for libc.so.
12450         (__signbitl): Likewise.
12451
12452 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
12453
12454         * iconvdata/bug-iconv11.c (test_ibm93x):
12455         Use %zu printf format specifier for size_t argument.
12456
12457 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
12458
12459         * math/gen-libm-test.pl (parse_ulps): Do not reduce
12460         already-recorded ulps.
12461         * sysdeps/arm/libm-test-ulps: Regenerated.
12462         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12463         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12464         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
12465
12466 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12467             Paul Pluzhnikov  <ppluzhnikov@google.com>
12468
12469         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
12470         assembler not supporting AVX-512.
12471
12472 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
12473
12474         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12475
12476 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
12477
12478         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
12479         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12480
12481         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
12482
12483         * sysdeps/arm/libm-test-ulps: Regenerated.
12484
12485 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12486
12487         [BZ #19451]
12488         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
12489
12490 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
12491
12492         [BZ #19486]
12493         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
12494         * sysdeps/generic/fix-fp-int-convert-overflow.h
12495         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
12496         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
12497         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
12498         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
12499         Likewise.
12500         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
12501         Avoid conversions to long int where inexact exceptions
12502         could be raised.
12503         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
12504         Likewise.
12505         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
12506         Avoid conversions to long long int where inexact exceptions
12507         could be raised.
12508         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
12509         Likewise.
12510
12511 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
12512
12513         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
12514         * configure: Regenerated.
12515
12516 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
12517
12518         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
12519
12520 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
12521
12522         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
12523         outside of comment.
12524
12525 2016-01-15  Torvald Riegel  <triegel@redhat.com>
12526
12527         * nptl/tst-barrier1.c: Add description on first line.
12528         * nptl/tst-barrier2.c: Likewise.
12529         * nptl/tst-barrier3.c: Likewise.
12530         * nptl/tst-barrier4.c: Likewise.
12531         * nptl/tst-barrier5.c: Likewise.
12532
12533 2016-01-15  Torvald Riegel  <triegel@redhat.com>
12534
12535         [BZ #18868]
12536         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
12537
12538 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
12539
12540         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
12541         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
12542         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
12543         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
12544         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
12545         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
12546         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
12547         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
12548         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
12549         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
12550         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
12551
12552 2016-01-15  Torvald Riegel  <triegel@redhat.com>
12553
12554         [BZ #13065]
12555         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
12556         new implementation.
12557         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
12558         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
12559         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
12560         (BARRIER_IN_THRESHOLD): New macro.
12561         * nptl/pthread_barrierattr_setpshared.c
12562         (pthread_barrierattr_setpshared): Clean up.
12563         * nptl/tst-barrier4.c: Correct comment.
12564         * nptl/tst-barrier5.c: New file.
12565         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
12566         (gen-as-const-headers): Remove lowlevelbarrier.sym.
12567         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
12568         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
12569         * nptl/lowlevelbarrier.sym: Remove.
12570         * nptl/DESIGN-barrier.txt: Remove.
12571         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
12572         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
12573         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
12574         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
12575         error.
12576         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
12577         implementation.
12578
12579 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12580
12581         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
12582         (do_child): Mask SIGRTMIN while thr is running.
12583
12584 2016-01-15  Martin Sebor  <msebor@redhat.com>
12585
12586         [BZ #19432]
12587         * iconvdata/Makefile: Add bug-iconv11.
12588         * iconvdata/bug-iconv11.c: New test.
12589         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
12590         * iconvdata/ibm933.c: Same.
12591         * iconvdata/ibm935.c: Same.
12592         * iconvdata/ibm937.c: Same.
12593         * iconvdata/ibm939.c: Same.
12594
12595 2016-01-15  Martin Sebor  <msebor@redhat.com>
12596
12597         [BZ #19443]
12598         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
12599         [DEBUG] (_ufc_set_bits): Declare used.
12600         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
12601         [DEBUG] (print_all): Declare used.
12602         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
12603         operands of the ternary ?: expression to target type.
12604         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
12605         calling the undeclared abort.
12606         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
12607
12608 2016-01-15  Martin Sebor  <msebor@redhat.com>
12609
12610         [BZ #18755]
12611         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
12612         warnings.
12613         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
12614         (__gai_create_helper_thread): Same.
12615         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
12616         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
12617         to suppress -Wmaybe-uninitialized warnings.
12618
12619 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
12620
12621         [BZ #19465]
12622         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
12623         inside if.
12624         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12625         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
12626         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12627
12628 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
12629
12630         [BZ #19466]
12631         * time/tst-mktime2.c (time_t_max): Removed.
12632         (time_t_min): Likewise.
12633         (TYPE_SIGNED): New.
12634         (TYPE_MINIMUM): Likewise.
12635         (TYPE_MAXIMUM): Likewise.
12636         (TIME_T_MIN): Likewise.
12637         (TIME_T_MAX): Likewise.
12638         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
12639         and TIME_T_MIN.
12640         (do_test): Likewise.
12641
12642 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
12643
12644         [BZ #19467]
12645         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
12646         index_Fast_Unaligned_Load flag for Excavator family CPUs.
12647
12648 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
12649
12650         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
12651
12652 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
12653
12654         * benchtests/Makefile (PYTHON): Define.
12655         (bench-func): Use $(PYTHON) to run python scripts.
12656         ($(objpfx)bench-%.c): Likewise.
12657
12658 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
12659
12660         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
12661         leading slash when `file_name' is "/".
12662
12663 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
12664
12665         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
12666         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
12667         Likewise.
12668         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
12669         Likewise.
12670         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
12671         Likewise.
12672         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
12673         enum constant and macro.
12674         (PTRACE_SETSIGMASK): Likewise.
12675         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12676         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12677         (PTRACE_GETSIGMASK): Likewise.
12678         (PTRACE_SETSIGMASK): Likewise.
12679         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12680         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
12681         Likewise.
12682         (PTRACE_SETSIGMASK): Likewise.
12683         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12684         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12685         (PTRACE_GETSIGMASK): Likewise.
12686         (PTRACE_SETSIGMASK): Likewise.
12687         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12688         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
12689         Likewise.
12690         (PTRACE_SETSIGMASK): Likewise.
12691         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12692         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
12693         Likewise.
12694         (PTRACE_SETSIGMASK): Likewise.
12695         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12696         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
12697         Likewise.
12698         (PTRACE_SETSIGMASK): Likewise.
12699         (PTRACE_SECCOMP_GET_FILTER): Likewise.
12700
12701 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
12702             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12703
12704         [BZ #19439]
12705         * math/bits/mathcalls.h
12706         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
12707         prototype.
12708         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
12709
12710 2016-01-11  Andreas Schwab  <schwab@suse.de>
12711
12712         [BZ #19253]
12713         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
12714         cache when TZDEFRULES was used.
12715         * time/tst-tzname.c: New file.
12716         * time/Makefile (test): Add tst-tzname.
12717         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
12718         * timezone/Makefile (test-zones): Add $(posixrules-file).
12719         ($(testdata)/$(posixrules-file)): New rule.
12720
12721 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
12722
12723         Fix doc quoting problems with Texinfo 5
12724         Without this change, in the info file output, Texinfo 5 quotes code
12725         in text with undirected single quotes 'like this' and generates
12726         code examples that with many PDF readers cannot be cut out of PDFs
12727         and pasted into code.
12728         * manual/libc.texinfo: Configure the libc manual like the GNU
12729         Emacs manual, by using @documentencoding and setting
12730         txicodequoteundirected and txicodequotebacktick.  This way,
12731         Texinfo 5 quotes code in text with directed single quotes ‘like
12732         this’ and produces examples that can be cut out of PDFs.  This
12733         change causes Texinfo 5 to generate info files that contain UTF-8
12734         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
12735         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
12736
12737 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12738
12739         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
12740         __libc_tabort, __libc_tend): New wrappers that enforce compiler
12741         barriers to their respective compiler built-ins.
12742         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
12743         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
12744         * sysdeps/powerpc/sysdep.h: Likewise.
12745         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
12746         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
12747         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
12748
12749 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
12750
12751         * scripts/config.guess: Revert previous shebang change.
12752         * scripts/config.sub: Likewise.
12753         * scripts/mkinstalldirs: Likewise.
12754
12755 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12756
12757         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
12758         PPC_FEATURE2_HAS_IEEE128.
12759         * sysdeps/powerpc/dl-procinfo.c:
12760         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
12761
12762 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
12763
12764         [BZ #19415]
12765         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
12766         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
12767         (_dl_lookup_address): Rewrite using function resolver trampoline.
12768         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
12769         two bits in address.
12770
12771 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
12772
12773         * longlong.h: Change !__SHMEDIA__ to
12774         (!defined (__SHMEDIA__) || !__SHMEDIA__).
12775         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
12776
12777 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
12778             Joseph Myers  <joseph@codesourcery.com>
12779             Mark Shinwell  <shinwell@codesourcery.com>
12780             Andrew Stubbs  <ams@codesourcery.com>
12781             Rich Felker <dalias@libc.org>
12782
12783         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
12784
12785 2016-01-07  Richard Henderson  <rth@redhat.com>
12786
12787         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
12788
12789 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
12790
12791         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
12792         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
12793         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
12794         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
12795         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
12796
12797 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
12798             Joseph Myers  <joseph@codesourcery.com>
12799
12800         * timezone/private.h: Update from tzcode 2015g.
12801         * timezone/tzfile.h: Likewise.
12802         * timezone/tzselect.ksh: Likewise.
12803         * timezone/zdump.c: Likewise.
12804         * timezone/zic.c: Likewise.
12805         * timezone/ialloc.c: Remove file.
12806         * timezone/scheck.c: Likewise.
12807         * timezone/Makefile (extra-objs): Remove variable.
12808         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
12809         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
12810         -Wno-maybe-uninitialized.
12811         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
12812         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
12813         (CFLAGS-ialloc.c): Remove variable.
12814         (CFLAGS-scheck.c): Likewise.
12815         * timezone/README: Update list of files from tzcode.
12816
12817 2016-01-07  Khem Raj  <raj.khem@gmail.com>
12818
12819         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
12820         instead of __fxprintf when _LIBC is undefined.
12821
12822 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
12823
12824         * catgets/test-gencat.sh: Remove space after shebang.
12825         * conform/GlibcConform.pm: Likewise.
12826         * conform/check-header-lists.sh: Likewise.
12827         * conform/conformtest.pl: Likewise.
12828         * conform/linknamespace.pl: Likewise.
12829         * conform/list-header-symbols.pl: Likewise.
12830         * debug/catchsegv.sh: Likewise.
12831         * elf/genrtldtbl.awk: Likewise.
12832         * elf/tst-pathopt.sh: Likewise.
12833         * elf/tst-rtld-load-self.sh: Likewise.
12834         * grp/tst_fgetgrent.sh: Likewise.
12835         * iconvdata/gen-8bit-gap-1.sh: Likewise.
12836         * iconvdata/gen-8bit-gap.sh: Likewise.
12837         * iconvdata/gen-8bit.sh: Likewise.
12838         * iconvdata/run-iconv-test.sh: Likewise.
12839         * intl/tst-gettext.sh: Likewise.
12840         * intl/tst-gettext2.sh: Likewise.
12841         * intl/tst-gettext4.sh: Likewise.
12842         * intl/tst-gettext6.sh: Likewise.
12843         * intl/tst-translit.sh: Likewise.
12844         * io/ftwtest-sh: Likewise.
12845         * libio/test-freopen.sh: Likewise.
12846         * locale/gen-translit.pl: Likewise.
12847         * malloc/tst-mtrace.sh: Likewise.
12848         * manual/check-safety.sh: Likewise.
12849         * manual/libc-texinfo.sh: Likewise.
12850         * manual/tsort.awk: Likewise.
12851         * manual/xtract-typefun.awk: Likewise.
12852         * nptl/tst-cancel-wrappers.sh: Likewise.
12853         * nptl/tst-tls6.sh: Likewise.
12854         * posix/globtest.sh: Likewise.
12855         * posix/tst-getconf.sh: Likewise.
12856         * posix/wordexp-tst.sh: Likewise.
12857         * scripts/check-c++-types.sh: Likewise.
12858         * scripts/check-local-headers.sh: Likewise.
12859         * scripts/config.guess: Likewise.
12860         * scripts/config.sub: Likewise.
12861         * scripts/cpp: Likewise.
12862         * scripts/cross-test-ssh.sh: Likewise.
12863         * scripts/documented.sh: Likewise.
12864         * scripts/evaluate-test.sh: Likewise.
12865         * scripts/gen-libc-abis: Likewise.
12866         * scripts/gen-sorted.awk: Likewise.
12867         * scripts/list-fixed-bugs.py: Likewise.
12868         * scripts/merge-test-results.sh: Likewise.
12869         * scripts/mkinstalldirs: Likewise.
12870         * scripts/rellns-sh: Likewise.
12871         * scripts/test-installation.pl: Likewise.
12872         * scripts/update-copyrights: Likewise.
12873         * stdio-common/tst-printf.sh: Likewise.
12874         * stdio-common/tst-unbputc.sh: Likewise.
12875         * stdlib/tst-fmtmsg.sh: Likewise.
12876         * stdlib/tst-setcontext3.sh: Likewise.
12877         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
12878         * sysdeps/unix/make-syscalls.sh: Likewise.
12879
12880 2016-01-06  John David Anglin  <dave.anglin@bell.net>
12881
12882         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
12883         asm stw with atomic_exchange_rel.  Add explanatory comment.
12884         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
12885         Likewise.
12886
12887 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12888
12889         [BZ #19122]
12890         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
12891         * sysdeps/generic/dl-unistd.h: New file.
12892         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
12893
12894 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12895
12896          [BZ #19122]
12897          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
12898          * sysdeps/generic/dl-mman.h: New file.
12899          * sysdeps/mach/hurd/dl-mman.h: Likewise.
12900
12901 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
12902
12903         * manual/texinfo.tex: Update to version 2016-01-04.21 with
12904         trailing whitespace removed.
12905         * scripts/config.guess: Update to version 2016-01-01.
12906         * scripts/config.sub: Update to version 2016-01-01.
12907         * scripts/move-if-change: Update from gnulib.
12908
12909 2016-01-04  Anton Blanchard  <anton@samba.org>
12910
12911         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
12912         for array indices.
12913         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
12914
12915 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
12916
12917         * NEWS: Update copyright dates.
12918         * catgets/gencat.c (print_version): Likewise.
12919         * csu/version.c (banner): Likewise.
12920         * debug/catchsegv.sh: Likewise.
12921         * debug/pcprofiledump.c (print_version): Likewise.
12922         * debug/xtrace.sh (do_version): Likewise.
12923         * elf/ldconfig.c (print_version): Likewise.
12924         * elf/ldd.bash.in: Likewise.
12925         * elf/pldd.c (print_version): Likewise.
12926         * elf/sotruss.sh: Likewise.
12927         * elf/sprof.c (print_version): Likewise.
12928         * iconv/iconv_prog.c (print_version): Likewise.
12929         * iconv/iconvconfig.c (print_version): Likewise.
12930         * locale/programs/locale.c (print_version): Likewise.
12931         * locale/programs/localedef.c (print_version): Likewise.
12932         * login/programs/pt_chown.c (print_version): Likewise.
12933         * malloc/memusage.sh (do_version): Likewise.
12934         * malloc/memusagestat.c (print_version): Likewise.
12935         * malloc/mtrace.pl: Likewise.
12936         * manual/libc.texinfo: Likewise.
12937         * nptl/version.c (banner): Likewise.
12938         * nscd/nscd.c (print_version): Likewise.
12939         * nss/getent.c (print_version): Likewise.
12940         * nss/makedb.c (print_version): Likewise.
12941         * posix/getconf.c (main): Likewise.
12942         * scripts/test-installation.pl: Likewise.
12943         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
12944
12945         * All files with FSF copyright notices: Update copyright dates
12946         using scripts/update-copyrights.
12947         * intl/plural.c: Regenerated.
12948         * locale/programs/charmap-kw.h: Likewise.
12949         * locale/programs/locfile-kw.h: Likewise.
12950
12951 2016-01-02  Helge Deller  <deller@gmx.de>
12952
12953         [BZ #19285]
12954         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
12955         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
12956         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
12957         (MADV_xxK_PAGES): Remove.
12958
12959 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
12960
12961         [BZ #15421]
12962         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
12963         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
12964         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
12965         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
12966
12967 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
12968
12969         [BZ #19408]
12970         * sysdeps/unix/sysv/linux/personality.c: New file.
12971         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
12972         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
12973         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
12974         (sysdep_routines): Add personality.
12975         (tests): Add tst-personality.
12976         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
12977         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
12978         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
12979         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
12980         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
12981         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
12982         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
12983         Likewise.
12984         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
12985         Likewise.
12986         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
12987         Likewise.
12988         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
12989         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
12990         Likewise.
12991
12992 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
12993
12994         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
12995         (PATH_ARM_SYSTYPE): Remove.
12996         (PATH_CPUINFO): Likewise.
12997         (IO_BASE_FOOTBRIDGE): Likewise.
12998         (IO_SHIFT_FOOTBRIDGE): Likewise.
12999         (struct platform): Likewise.
13000         (init_iosys): Remove compatibility code for 2.4 kernels.
13001         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
13002
13003 2015-12-29  Florian Weimer  <fweimer@redhat.com>
13004
13005         * malloc/tst-malloc-thread-fail.c: New file.
13006         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
13007         (tst-malloc-thread-fail): Link against libpthread.
13008
13009 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
13010
13011         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
13012         (get_parser): New function.
13013         (main): New function.
13014
13015 2015-12-29  Rob Wu  <rob@robwu.nl>
13016
13017         [BZ #19369]
13018         * resolv/res_init.c (__res_vinit): Reset defdname before use.
13019
13020 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
13021
13022         [BZ #19270]
13023         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
13024
13025 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
13026
13027         [BZ #15421]
13028         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
13029
13030 2015-12-23  Torvald Riegel  <triegel@redhat.com>
13031
13032         [BZ #13690]
13033         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
13034         after releasing it.
13035         (__lll_robust_unlock): Likewise.
13036         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
13037         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
13038         (lll_robust_unlock): Likewise.
13039         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
13040         Prevent warnings in callers.
13041
13042 2015-12-23  Florian Weimer  <fweimer@redhat.com>
13043
13044         * malloc/arena.c (list_lock): Update comment.
13045
13046 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13047
13048         * sysdeps/powerpc/hwcapinfo.c: Export symbol
13049         __parse_hwcap_and_convert_at_platform to libc.a.
13050
13051 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13052
13053         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
13054         platform and feature support for POWER9.
13055         * sysdeps/powerpc/dl-procinfo.h: Likewise.
13056         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
13057         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
13058         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
13059         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
13060         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13061         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13062         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13063
13064 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13065
13066         Harmonize generic stdio-lock support with nptl
13067
13068         This fixes build when _IO_funlockfile is a macro, fixes build where
13069         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
13070         stack unwind.
13071
13072         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
13073         _IO_release_lock ): Use cleanup attribute on new
13074         _IO_acquire_lock_file variable instead of assuming that
13075         _IO_release_lock will be called.
13076         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
13077         _IO_acquire_lock_needs_exceptions_enabled.
13078         (_IO_acquire_lock_clear_flags2): New macro.
13079
13080 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13081
13082         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
13083
13084 2015-12-21  Florian Weimer  <fweimer@redhat.com>
13085
13086         [BZ #19182]
13087         * malloc/arena.c (list_lock): Document lock ordering requirements.
13088         (free_list_lock): New lock.
13089         (ptmalloc_lock_all): Comment on free_list_lock.
13090         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
13091         (detach_arena): Update comment.  free_list_lock is now needed.
13092         (_int_new_arena): Use free_list_lock around detach_arena call.
13093         Acquire arena lock after list_lock.  Add comment, including FIXME
13094         about incorrect synchronization.
13095         (get_free_list): Switch to free_list_lock.
13096         (reused_arena): Acquire free_list_lock around detach_arena call
13097         and attached threads counter update.  Add two FIXMEs about
13098         incorrect synchronization.
13099         (arena_thread_freeres): Switch to free_list_lock.
13100         * malloc/malloc.c (struct malloc_state): Update comments to
13101         mention free_list_lock.
13102
13103 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
13104
13105         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
13106         Remove functions.
13107         (sloww, sloww1): Accept argument to offset quadrant.
13108         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
13109         quadrant.
13110         (__sin, __cos): Consolidate common code into new functions.
13111         (reduce_sincos_1, do_sincos_1): New functions.
13112         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
13113
13114         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
13115         code to new functions.
13116         (reduce_sincos_2, do_sincos_2): New functions.
13117         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
13118
13119         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
13120         common code for sincos.
13121         (__cos) [!IN_SINCOS]: Likewise.
13122         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
13123         New function.
13124         (__sincos): Use it.
13125
13126 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
13127
13128         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
13129         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
13130         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
13131
13132 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13133
13134         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
13135         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
13136         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
13137         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
13138         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13139         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
13140         index_Prefer_No_VZEROUPPER): New feature.
13141         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
13142         Prefer_No_VZEROUPPER for Knights Landing.
13143
13144 015-12-18  Torvald Riegel  <triegel@redhat.com>
13145
13146         * math/atest-exp2.c (mp_exp_m1): Remove.
13147
13148 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13149
13150         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
13151         syscalls.
13152         (__SYSCALL0): New macro.
13153         (__SYSCALL1): Likewise.
13154         (__SYSCALL2): Likewise.
13155         (__SYSCALL3): Likewise.
13156         (__SYSCALL4): Likewise.
13157         (__SYSCALL5): Likewise.
13158         (__SYSCALL6): Likewise.
13159         (__SYSCALL_CONCAT_X): Likewise.
13160         (__SYSCALL_CONCAT): Likewise.
13161         (__SYSCALL_DIST): Likewise.
13162         (__SYSCALL_CALL): Likewise.
13163
13164 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
13165
13166         [BZ #19363]
13167         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
13168
13169 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13170
13171         [BZ #19375]
13172         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
13173         negative subnormals.
13174
13175 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
13176
13177         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
13178         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
13179         (INTERNAL_SYSCALL_NCS): Use it.
13180         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
13181
13182 2015-12-16  Florian Weimer  <fweimer@redhat.com>
13183
13184         [BZ #19243]
13185         * malloc/arena.c (get_free_list): Remove assert and adjust
13186         reference count handling.  Add comment about reused_arena
13187         interaction.
13188         (reused_arena): Add comments abount get_free_list interaction.
13189         * malloc/tst-malloc-thread-exit.c: New file.
13190         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
13191         (tst-malloc-thread-exit): Link against libpthread.
13192
13193 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13194
13195         [BZ #19367]
13196         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
13197         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
13198         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
13199         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
13200         (index_Prefer_MAP_32BIT_EXEC): Likewise.
13201
13202 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13203
13204         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
13205         Silvermont optimizations for Knights Landing.
13206
13207 2015-12-15  Andreas Schwab  <schwab@suse.de>
13208
13209         [BZ #17197]
13210         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
13211         immediately after emitting SI.
13212         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
13213         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
13214         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
13215         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
13216         * iconvdata/bug-iconv10.c: New file.
13217         * iconvdata/Makefile (tests): Add bug-iconv10.
13218         ($(objpfx)bug-iconv10.out): New rule.
13219
13220 2015-12-15  Florian Weimer  <fweimer@redhat.com>
13221
13222         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
13223         aliasing violation.
13224
13225 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
13226
13227         [BZ #18472]
13228         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
13229         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
13230         conditionals for them.
13231         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
13232         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
13233         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
13234         sys/kdaemon.h.
13235         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
13236         compat-only syscall, obsoleted in glibc 2.23.
13237         (create_module): Likewise.
13238         (get_kernel_syms): Likewise.
13239         (query_module): Likewise.
13240         (uselib): Likewise.
13241         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
13242
13243 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
13244
13245         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
13246         <linux/version.h>.
13247         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
13248         conditional code.
13249         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
13250         and ioshift_name initialization.
13251
13252 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
13253
13254         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13255         Fix indentation.
13256
13257 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
13258
13259         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
13260
13261 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
13262
13263         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
13264
13265 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
13266             Jakub Wilk  <jwilk@debian.org>
13267
13268         [BZ #19347]
13269         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
13270         to change the group of the device to the tty group.
13271
13272 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
13273
13274         Split large string section; add truncation advice
13275         * manual/examples/strncat.c: Remove.
13276         This example was misleading, as the code would have undefined
13277         behavior if "hello" was longer than SIZE.  Anyway, the manual
13278         shouldn't encourage strncpy+strncat for this sort of thing.
13279         * manual/string.texi (Copying Strings and Arrays): Split into
13280         three sections Copying Strings and Arrays, Concatenating Strings,
13281         and Truncating Strings, as this section was way too long.  All
13282         cross-referenced changed.  Add advice about string-truncation
13283         functions.  Remove misleading strncat example.
13284
13285 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
13286
13287         * manual/nss.texi (NSS Modules Interface): Document
13288         NSS_STATUS_NOTFOUND and SUCCESS.
13289
13290 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
13291
13292         [BZ 18568]
13293         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
13294         201505L, for Unicode 8.
13295
13296 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
13297
13298         * locale/C-translit.h: Regenerate.
13299
13300 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
13301
13302         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
13303         and U+0153.
13304
13305 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
13306
13307         [BZ #19351]
13308         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
13309         expanding log(1+z), compare z rather than its square with epsilon
13310         to determine when to avoid evaluating the expansion.
13311
13312         [BZ #19350]
13313         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
13314         Increase overflow threshold.
13315
13316         [BZ #19349]
13317         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
13318         when small.
13319
13320         * sysdeps/unix/sysv/linux/i386/kernel-features.h
13321         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
13322         New macro.
13323         [__LINUX_KERNEL_VERSION >= 0x040300]
13324         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
13325         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
13326         Likewise.
13327         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
13328         Likewise.
13329         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
13330         Likewise.
13331         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
13332         Likewise.
13333         [__LINUX_KERNEL_VERSION >= 0x040300]
13334         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
13335         [__LINUX_KERNEL_VERSION >= 0x040300]
13336         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
13337         [__LINUX_KERNEL_VERSION >= 0x040300]
13338         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
13339         [__LINUX_KERNEL_VERSION >= 0x040300]
13340         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
13341         [__LINUX_KERNEL_VERSION >= 0x040300]
13342         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
13343         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
13344         Likewise.
13345         [__LINUX_KERNEL_VERSION >= 0x040300]
13346         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
13347         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
13348         Likewise.
13349         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
13350         Likewise.
13351         [__LINUX_KERNEL_VERSION >= 0x040300]
13352         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
13353         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
13354         Likewise.
13355         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
13356         Likewise.
13357         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
13358         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
13359         Likewise.
13360         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
13361         Likewise.
13362         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
13363         Likewise.
13364         [__LINUX_KERNEL_VERSION >= 0x040300]
13365         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
13366         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
13367         Likewise.
13368         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
13369         Likewise.
13370         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
13371         Likewise.
13372         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
13373         Likewise.
13374         [__LINUX_KERNEL_VERSION >= 0x040300]
13375         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
13376         [__LINUX_KERNEL_VERSION >= 0x040300]
13377         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
13378         [__LINUX_KERNEL_VERSION >= 0x040300]
13379         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
13380         [__LINUX_KERNEL_VERSION >= 0x040300]
13381         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
13382         [__LINUX_KERNEL_VERSION >= 0x040300]
13383         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
13384         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
13385         Likewise.
13386         [__LINUX_KERNEL_VERSION >= 0x040300]
13387         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
13388         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
13389         Likewise.
13390         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
13391         Likewise.
13392         [__LINUX_KERNEL_VERSION >= 0x040300]
13393         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
13394         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
13395         Likewise.
13396         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
13397         Likewise.
13398         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13399         (__ASSUME_SOCKET_SYSCALL): Likewise.
13400         (__ASSUME_BIND_SYSCALL): Likewise.
13401         (__ASSUME_CONNECT_SYSCALL): Likewise.
13402         (__ASSUME_LISTEN_SYSCALL): Likewise.
13403         (__ASSUME_ACCEPT_SYSCALL): Likewise.
13404         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
13405         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
13406         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
13407         (__ASSUME_SEND_SYSCALL): Likewise.
13408         (__ASSUME_SENDTO_SYSCALL): Likewise.
13409         (__ASSUME_RECV_SYSCALL): Likewise.
13410         (__ASSUME_RECVFROM_SYSCALL): Likewise.
13411         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
13412         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
13413         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
13414         (__ASSUME_SENDMSG_SYSCALL): Likewise.
13415         (__ASSUME_RECVMSG_SYSCALL): Likewise.
13416         * sysdeps/unix/sysv/linux/sh/kernel-features.h
13417         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
13418         Likewise.
13419         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
13420         Likewise.
13421         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
13422         Likewise.
13423         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
13424         Likewise.
13425         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
13426         Likewise.
13427         [__LINUX_KERNEL_VERSION >= 0x020625]
13428         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
13429         [__LINUX_KERNEL_VERSION >= 0x020625]
13430         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
13431         [__LINUX_KERNEL_VERSION >= 0x020625]
13432         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
13433         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
13434         Likewise.
13435         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
13436         Likewise.
13437         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
13438         Likewise.
13439         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
13440         Likewise.
13441         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
13442         Likewise.
13443         [__LINUX_KERNEL_VERSION >= 0x020625]
13444         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
13445         [__LINUX_KERNEL_VERSION >= 0x020625]
13446         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
13447         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
13448         Likewise.
13449         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
13450         Likewise.
13451
13452 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
13453
13454         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
13455         record the current if the current ABI and CPU support the FP64
13456         extension.
13457         (has-modd-spreg): Define to record the current if the current ABI and
13458         CPU support 32-bit floating point values in odd FPU registers.
13459         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
13460         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
13461         $(has-modd-spreg) equals yes.
13462         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
13463         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
13464         $(has-modd-spreg) equal yes.
13465
13466 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
13467
13468         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
13469         basename.
13470
13471 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
13472
13473         * benchtests/Makefile (bench-math): Move ffs and ffsll...
13474         (bench-string): ... here.
13475         (bench): Add bench-string.
13476         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
13477         to *-benchset to reflect what they are.
13478         (benchset): Adjust.
13479
13480         * benchtests/sincos-inputs: Add inputs from sin-inputs and
13481         cos-inputs.
13482
13483 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
13484
13485         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
13486         __attribute__ ((__simd__)) for vector math function declarations.
13487
13488 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13489
13490         Fix typo in strncat, wcsncat manual entries
13491         * manual/string.texi (Copying and Concatenation): Fix typos in
13492         sample implementations of strncat and wcsncat, by having them use
13493         the old value of the destination length, not the new one.
13494
13495 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
13496
13497         [BZ #16961]
13498         [BZ #16962]
13499         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
13500         string on the stack for strtod.
13501         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
13502         a string on the stack for strtof.
13503         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
13504         constructing a string on the stack for strtold.
13505         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
13506         __strtold_nan to GLIBC_PRIVATE.
13507         * math/test-nan-overflow.c: New file.
13508         * math/test-nan-payload.c: Likewise.
13509         * math/Makefile (tests): Add test-nan-overflow and
13510         test-nan-payload.
13511
13512 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13513
13514         Consistency about byte vs character in string.texi
13515         * manual/string.texi (String and Array Utilities):
13516         Distinguish more carefully among bytes, multibyte characters,
13517         and wide characters.  Use "byte" when talking about C 'char',
13518         to distinguish it more clearly from multibyte characters.
13519         Say "wide character" or "multibyte character" instead of
13520         "character", when a wide or multibyte character is intended.
13521         Similarly for "multibyte string" versus "string".
13522         Define these terms more carefully.
13523
13524 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
13525
13526         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
13527         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
13528         Likewise.
13529         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
13530         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
13531         * sysdeps/sh/math_private.h: New file.
13532         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
13533         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
13534         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
13535         long double function name.
13536         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
13537         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13538         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
13539         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
13540         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13541         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
13542         Remove __finitel, __isinfl, and __isnanl.
13543         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
13544         Likewise.
13545         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13546         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13547         Remove __finitel.
13548         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13549         Likewise.
13550         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13551
13552 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
13553
13554         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
13555         installed libmvec_nonshared.a.
13556
13557 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13558
13559         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
13560         (sysdep_routines): Likewise.
13561         (sysdep-rtld-routines): Likewise.
13562         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
13563         [$(subdir) = nptl](tests-static): test-get_hwcap-static
13564         * sysdeps/powerpc/Versions: Added new
13565         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
13566         * sysdeps/powerpc/hwcapinfo.c: New file.
13567         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
13568         and parse hwcap, hwcap2 and platform number information.
13569         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
13570         to store HWCAP+HWCAP2 and platform number.
13571         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
13572         for HWCAP+HWCAP2 and platform number in the TCB.
13573         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
13574         the HWCAP, HWCAP2 and platform number in the TCB.
13575         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
13576         (TLS_INIT_TP): Included calls to add the hwcap and
13577         at_platform values in the TCB in TP initialization.
13578         (TLS_DEFINE_INIT_TP): Likewise.
13579         (THREAD_GET_HWCAP): New macro.
13580         (THREAD_SET_HWCAP): Likewise.
13581         (THREAD_GET_AT_PLATFORM): Likewise.
13582         (THREAD_SET_AT_PLATFORM): Likewise.
13583         * sysdeps/powerpc/powerpc32/dl-machine.h:
13584         (dl_platform_init): New function that calls
13585         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
13586         powerpc32.
13587         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
13588         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
13589         this functionality, static linking case.
13590         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
13591         linking case.
13592         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
13593         __parse_hwcap_and_convert_at_platform for the static linking case.
13594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
13595         Included the new __parse_hwcap_and_convert_at_platform symbol in the
13596         ABI list for GLIBC 2.23.
13597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
13598         Likewise.
13599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
13600         Likewise.
13601
13602 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
13603
13604         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
13605         * configure: Regenerate.
13606         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
13607         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
13608
13609 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
13610
13611         * iconvdata/ibm930.c: Add comment explaining encoding uses.
13612         * iconvdata/ibm933.c: Likewise.
13613         * iconvdata/ibm935.c: Likewise.
13614         * iconvdata/ibm937.c: Likewise.
13615         * iconvdata/ibm939.c: Likewise.
13616
13617 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13618
13619         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
13620         pthread_join.
13621         * nptl/tst-cancel21.c (tf): Likewise.
13622
13623 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13624
13625         [BZ #19313]
13626         * bits/typesizes.h (__CPU_MASK_TYPE): New.
13627         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
13628         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
13629         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
13630         Likewise.
13631         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
13632         Likewise.
13633         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
13634         Likewise.
13635         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
13636         Likewise.
13637         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
13638         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
13639         unsigned long int with __CPU_MASK_TYPE.
13640
13641 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13642
13643         * sysdeps/aarch64/libm-test-ulps: Regenerated.
13644
13645 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
13646
13647         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
13648         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
13649         t512.x.
13650         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
13651
13652 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
13653
13654         [BZ #19214]
13655         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
13656         argument to return extended model.  Update family and model
13657         with extended family and model when family == 0x0f.
13658         (init_cpu_features): Updated.
13659
13660 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13661
13662         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
13663         signed off_t, so 32bit bigger than 2GiB values are fine actually.
13664
13665         * sysdeps/mach/hurd/mmap64.c: New file.
13666
13667 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
13668
13669         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
13670         rights for its main user thread in NEWTASK.
13671
13672 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
13673
13674         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
13675         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
13676
13677 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
13678
13679         [BZ #14259]
13680         * Makeconfig: Rename localedir to complocaledir.
13681         Rename inst_localedir to inst_complocaledir.
13682         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
13683         * config.make.in: Use complocaledir and libc_cv_complocaledir.
13684         * configure.ac: Use libc_cv_complocaledir.
13685         * configure: Regenerate.
13686         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
13687         -DCOMPLOCALEDIR.
13688         * locale/findlocale.c: Use COMPLOCALEDIR.
13689         * locale/loadarchive.c: Likewise.
13690         * locale/programs/locale.c: Likewise.
13691         * locale/programs/localedef.c: Likewise.
13692         * locale/programs/locarchive.c: Likewise.
13693         * localedata/Makefile: Use inst_complocaledir.
13694         * sysdeps/gnu/configure: Regenerate.
13695         * sysdeps/hppa/configure: Regenerate.
13696         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
13697         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
13698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
13699         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
13700         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
13701         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
13702         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
13703
13704 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
13705
13706         [BZ #19058]
13707         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
13708         AS_NEEDED.
13709         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
13710         workaround.
13711         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
13712         libmvec-static-only-routines): Added new file.
13713         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
13714
13715 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13716
13717         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
13718         of interrupted RPC instead of restoring it.
13719
13720         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
13721         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
13722         libc_hidden_def.
13723         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
13724         into initialized data instead of common. Define rtld_hidden_data_def.
13725         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
13726         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
13727         libc_hidden_def.
13728         (if_freenameindex): Add libc_hidden_weak.
13729         (if_nameindex): Add libc_hidden_weak.
13730         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
13731         __open64.
13732         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
13733         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
13734         * sysdeps/mach/nanosleep.c: Include <time.h>
13735         (__nanosleep): Rename to __libc_nanosleep.
13736         (__nanosleep): Add weak_alias.
13737         (nanosleep): Update alias.
13738
13739 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
13740
13741         * stdlib/strtod_nan.c: New file.
13742         * stdlib/strtod_nan_double.h: Likewise.
13743         * stdlib/strtod_nan_float.h: Likewise.
13744         * stdlib/strtod_nan_main.c: Likewise.
13745         * stdlib/strtod_nan_narrow.h: Likewise.
13746         * stdlib/strtod_nan_wide.h: Likewise.
13747         * stdlib/strtof_nan.c: Likewise.
13748         * stdlib/strtold_nan.c: Likewise.
13749         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
13750         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
13751         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
13752         * wcsmbs/wcstod_nan.c: Likewise.
13753         * wcsmbs/wcstof_nan.c: Likewise.
13754         * wcsmbs/wcstold_nan.c: Likewise.
13755         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
13756         strtold_nan.
13757         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
13758         wcstof_nan.
13759         * include/stdlib.h (__strtof_nan): Declare and use
13760         libc_hidden_proto.
13761         (__strtod_nan): Likewise.
13762         (__strtold_nan): Likewise.
13763         (__wcstof_nan): Likewise.
13764         (__wcstod_nan): Likewise.
13765         (__wcstold_nan): Likewise.
13766         * include/wchar.h (____wcstoull_l_internal): Declare.
13767         * stdlib/strtod_l.c: Do not include <ieee754.h>.
13768         (____strtoull_l_internal): Remove declaration.
13769         (STRTOF_NAN): Define macro.
13770         (SET_MANTISSA): Remove macro.
13771         (STRTOULL): Likewise.
13772         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
13773         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
13774         (STRTOF_NAN): Define macro.
13775         (SET_MANTISSA): Remove macro.
13776         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
13777         (SET_MANTISSA): Remove macro.
13778         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
13779         macro.
13780         (SET_MANTISSA): Remove macro.
13781         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
13782         macro.
13783         (SET_MANTISSA): Remove macro.
13784         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
13785         (SET_MANTISSA): Remove macro.
13786         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
13787         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
13788         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
13789
13790         [BZ #19266]
13791         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
13792         upper case and lower case letters inside NAN(), not using TOLOWER.
13793         * stdlib/tst-strtod-nan-locale-main.c: New file.
13794         * stdlib/tst-strtod-nan-locale.c: Likewise.
13795         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
13796         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
13797         Depend on $(gen-locales).
13798         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
13799         * wcsmbs/tst-wcstod-nan-locale.c: New file.
13800         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
13801         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
13802         Depend on $(gen-locales).
13803         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
13804
13805 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
13806
13807         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
13808
13809         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
13810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
13811         __finitel, __isinfl, and __isnanl.
13812         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
13813         Likewise.
13814         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13815         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
13816         __finitel.
13817         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13818         Likewise.
13819         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13820
13821 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
13822
13823         * malloc/memusage.c (me): Remove redundant getenv call.
13824
13825 2015-10-24  Florian Weimer  <fweimer@redhat.com>
13826
13827         [BZ #19143]
13828         [BZ #19164]
13829         * nptl/check-cpuset.h: Remove.
13830         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
13831         Remove CPU set size check.
13832         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
13833         Likewise.
13834         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
13835         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
13836         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
13837         (__pthread_setaffinity_new): Remove CPU set size check.
13838         * sysdeps/unix/sysv/linux/sched_setaffinity.c
13839         (__kernel_cpumask_size): Remove.
13840         (__sched_setaffinity_new): Remove CPU set size check.
13841         * manual/threads.texi (Default Thread Attributes): Remove stale
13842         reference to check_cpuset_attr, determine_cpumask_size in comment.
13843         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
13844         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
13845         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
13846         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
13847         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
13848         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
13849         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
13850         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
13851         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
13852         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
13853         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
13854         skeleton test file.
13855         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
13856         tst-affinity-pid.
13857
13858 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13859
13860         * scripts/update-abilist.sh: New file.
13861         * Makefile (+subdir_targets): Add subdir_update-all-abi.
13862         * Makerules (update-all-abi-%, update-all-abi)
13863         (subdir_update-all-abi): New targets.
13864         * elf/Makefile (update-all-abi): New target.
13865
13866 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13867
13868         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
13869         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
13870         (__libc_lock_define_initialized): Use it.
13871         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
13872         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
13873         * malloc/malloc.c (main_arena): Likewise.
13874         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13875         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13876
13877 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
13878
13879         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13880         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
13881         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13882         (PTRACE_O_MASK): Update value.
13883         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
13884         New value in enum __ptrace_setoptions.
13885         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13886         (PTRACE_O_MASK): Update value.
13887         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13888         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13889         (PTRACE_O_MASK): Update value.
13890         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13891         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13892         (PTRACE_O_MASK): Update value.
13893         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13894         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13895         (PTRACE_O_MASK): Update value.
13896         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
13897         New value in enum __ptrace_setoptions.
13898         (PTRACE_O_MASK): Update value.
13899         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
13900         New value in enum __ptrace_setoptions.
13901         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13902         (PTRACE_O_MASK): Update value.
13903
13904         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
13905         New macro.
13906         (PACKET_AUXDATA): Likewise.
13907         (PACKET_ORIGDEV): Likewise.
13908         (PACKET_VERSION): Likewise.
13909         (PACKET_HDRLEN): Likewise.
13910         (PACKET_RESERVE): Likewise.
13911         (PACKET_TX_RING): Likewise.
13912         (PACKET_LOSS): Likewise.
13913         (PACKET_VNET_HDR): Likewise.
13914         (PACKET_TX_TIMESTAMP): Likewise.
13915         (PACKET_TIMESTAMP): Likewise.
13916         (PACKET_FANOUT): Likewise.
13917         (PACKET_TX_HAS_OFF): Likewise.
13918         (PACKET_QDISC_BYPASS): Likewise.
13919         (PACKET_ROLLOVER_STATS): Likewise.
13920         (PACKET_FANOUT_DATA): Likewise.
13921         (PACKET_MR_UNICAST): Likewise.
13922
13923         [BZ #19242]
13924         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
13925         (TOUPPER): Likewise.
13926         * stdlib/tst-strtol-locale-main.c: New file.
13927         * stdlib/tst-strtol-locale.c: Likewise.
13928         * stdlib/Makefile (tests): Add tst-strtol-locale.
13929         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
13930         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
13931         Depend on $(gen-locales).
13932         * wcsmbs/tst-wcstol-locale.c: New file.
13933         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
13934         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
13935         tr_TR.ISO-8859-9.
13936         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
13937         Depend on $(gen-locales).
13938
13939 2015-11-20  Roland McGrath  <roland@hack.frob.com>
13940
13941         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
13942         __glibc_likely instead of __builtin_expect.  After falling back to
13943         dyncode_create in a non-ET_DYN case, use the allocate_code_data
13944         system interface to register the code pages as occupied.
13945
13946 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
13947
13948         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13949         [!ARM_MATH_PRIVATE_H].
13950         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
13951         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13952         [!HPPA_MATH_PRIVATE_H].
13953         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
13954         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
13955         to [!I386_MATH_PRIVATE_H].
13956         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
13957         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
13958         Change guard to [!M68K_MATH_PRIVATE_H].
13959         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
13960         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
13961         guard to [!MICROBLAZE_MATH_PRIVATE_H].
13962         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
13963         macro.
13964         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13965         [!MIPS_MATH_PRIVATE_H].
13966         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
13967         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13968         [!NIO2_MATH_PRIVATE_H].
13969         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
13970         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13971         [!TILE_MATH_PRIVATE_H].
13972         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
13973
13974         [BZ #15421]
13975         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
13976         initialize with 0 and define as weak alias of __signgam.
13977         * include/math.h [!_ISOMAC] (__signgam): Declare.
13978         * math/Makefile (libm-calls): Add w_lgamma_compat.
13979         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
13980         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
13981         test-signgam-ullong-init.
13982         (tests-static): Add test-signgam-uchar-static,
13983         test-signgam-uchar-init-static, test-signgam-uint-static,
13984         test-signgam-uint-init-static, test-signgam-ullong-static and
13985         test-signgam-ullong-init-static.
13986         (CFLAGS-test-signgam-uchar.c): New variable.
13987         (CFLAGS-test-signgam-uchar-init.c): Likewise.
13988         (CFLAGS-test-signgam-uchar-static.c): Likewise.
13989         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
13990         (CFLAGS-test-signgam-uint.c): Likewise.
13991         (CFLAGS-test-signgam-uint-init.c): Likewise.
13992         (CFLAGS-test-signgam-uint-static.c): Likewise.
13993         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
13994         (CFLAGS-test-signgam-ullong.c): Likewise.
13995         (CFLAGS-test-signgam-ullong-init.c): Likewise.
13996         (CFLAGS-test-signgam-ullong-static.c): Likewise.
13997         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
13998         * math/Versions (libm): Add GLIBC_2.23.
13999         * math/lgamma-compat.h: New file.
14000         * math/test-signgam-main.c: Likewise.
14001         * math/test-signgam-uchar-init-static.c: Likewise.
14002         * math/test-signgam-uchar-init.c: Likewise.
14003         * math/test-signgam-uchar-static.c: Likewise.
14004         * math/test-signgam-uchar.c: Likewise.
14005         * math/test-signgam-uint-init-static.c: Likewise.
14006         * math/test-signgam-uint-init.c: Likewise.
14007         * math/test-signgam-uint-static.c: Likewise.
14008         * math/test-signgam-uint.c: Likewise.
14009         * math/test-signgam-ullong-init-static.c: Likewise.
14010         * math/test-signgam-ullong-init.c: Likewise.
14011         * math/test-signgam-ullong-static.c: Likewise.
14012         * math/test-signgam-ullong.c: Likewise.
14013         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
14014         wrapper of w_lgamma_main.c.
14015         * math/w_lgamma_compat.c: New file.
14016         * math/w_lgamma_compatf.c: Likewise.
14017         * math/w_lgamma_compatl.c: Likewise.
14018         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
14019         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
14020         defining compatibility symbols.
14021         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
14022         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
14023         wrapper of w_lgammaf_main.c.
14024         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
14025         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
14026         defining compatibility symbols.
14027         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
14028         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
14029         wrapper of w_lgammal_main.c.
14030         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
14031         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
14032         defining compatibility symbols.
14033         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
14034         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
14035         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
14036         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
14037         <lgamma-compat.h>.
14038         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
14039         (__ieee754_gamma): Define as alias.
14040         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
14041         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
14042         <lgamma-compat.h>.
14043         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
14044         (__ieee754_gammaf): Define as alias.
14045         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
14046         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
14047         <lgamma-compat.h>.
14048         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
14049         (__ieee754_gammal): Define as alias.
14050         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
14051         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
14052         <math/w_lgamma_compat.c>.
14053         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
14054         Define as alias of __lgamma_compat and use in defining lgammal.
14055         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
14056         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
14057         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
14058         (USE_AS_COMPAT): New macro.
14059         (LGAMMA_OLD_VER): Undefine and redefine.
14060         (lgammal): Do not define here.
14061         (gammal): Only define here if [GAMMA_ALIAS].
14062         * conform/linknamespace.pl (@whitelist): Remove signgam.
14063         * sysdeps/nacl/libm.abilist: Update.
14064         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14065         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14066         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14067         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14068         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14069         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14070         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14071         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14072         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14073         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14074         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14075         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
14077         Likewise.
14078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14079         Likewise.
14080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
14081         Likewise.
14082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
14083         Likewise.
14084         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14085         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14086         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14087         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14088         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14089         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
14090         Likewise.
14091         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
14092         Likewise.
14093         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14094         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14095         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14096
14097 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14098
14099         [BZ #16364]
14100         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
14101         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
14102
14103 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
14104
14105         * sysdeps/s390/fpu/bits/mathinline.h:
14106         Use __asm__ [__volatile__] instead of asm [volatile].
14107         * sysdeps/s390/abort-instr.h: Likewise.
14108         * sysdeps/s390/atomic-machine.h: Likewise.
14109         * sysdeps/s390/bits/string.h: Likewise.
14110         * sysdeps/s390/dl-tls.h: Likewise.
14111         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14112         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14113         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14114         * sysdeps/s390/fpu/fesetround.c: Likewise.
14115         * sysdeps/s390/fpu/fpu_control.h: Likewise.
14116         * sysdeps/s390/fpu/s_fma.c: Likewise.
14117         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
14118         * sysdeps/s390/memusage.h: Likewise.
14119         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
14120         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
14121         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
14122         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
14123         * sysdeps/s390/nptl/tls.h: Likewise.
14124         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
14125         * sysdeps/s390/s390-32/backtrace.c: Likewise.
14126         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14127         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
14128         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14129         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
14130         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
14131         * sysdeps/s390/s390-64/backtrace.c: Likewise.
14132         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14133         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
14134         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
14135         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14136         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
14137         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
14138         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
14139         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
14140         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
14141         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
14142         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
14143         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14144         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
14145         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14146         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
14147
14148 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14149             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14150
14151         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
14152         Add lwarx hint, and use macro for acquire instruction.
14153         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
14154         Likewise.
14155         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
14156         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
14157         update to use new atomic macros.
14158
14159 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14160
14161         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14162         (__lll_trylock_elision): Fix setting of adapt_count.
14163         * sysdeps/unix/sysv/linux/powerpc/htm.h
14164         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
14165         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
14166         (_ABORT_SYSCALL): Renumber, and clarify definition.
14167         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
14168
14169 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14170
14171         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
14172         after system headers to prevent MIN/MAX redefinition.  Define
14173         HAVE_ALLOCA to preserve builtin alloca usage.
14174
14175 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
14176
14177         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
14178         static and don't set or restore rounding.
14179         (__cos)[IN_SINCOS]: Likewise.
14180         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
14181         (__sincos): Set and restore rounding mode.  Remove check for infinite
14182         or NaN input.
14183
14184         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
14185
14186         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
14187         as used.
14188
14189 2015-11-16  Florian Weimer  <fweimer@redhat.com>
14190
14191         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
14192
14193 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
14194
14195         * config.make.in (have-glob-dat-reloc): New.
14196         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
14197         target supports GLOB_DAT relocaton. AC_SUBST.
14198         * configure: Regenerated.
14199         * elf/Makefile (tests): Add tst-prelink.
14200         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
14201         (tst-prelink-ENV): New.
14202         ($(objpfx)tst-prelink-conflict.out): Likewise.
14203         ($(objpfx)tst-prelink-cmp.out): Likewise.
14204         * sysdeps/x86/tst-prelink.c: Moved to ...
14205         * elf/tst-prelink.c: Here.
14206         * sysdeps/x86/tst-prelink.exp: Moved to ...
14207         * elf/tst-prelink.exp: Here.
14208         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
14209         (tst-prelink-ENV): Removed.
14210         ($(objpfx)tst-prelink-conflict.out): Likewise.
14211         ($(objpfx)tst-prelink-cmp.out): Likewise.
14212         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
14213
14214 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
14215
14216         [BZ #14551]
14217         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
14218         (__mpn_construct_long_double): If high part overflows to infinity,
14219         set errno and recompute overflowed result of the correct sign.
14220         * sysdeps/ieee754/ldbl-128ibm/Makefile
14221         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
14222         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
14223         $(libm).
14224         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
14225
14226 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
14227
14228         [BZ #15479]
14229         [BZ #19238]
14230         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
14231         floating-point state after first operation on input.  Restore full
14232         state rather than just rounding mode.
14233         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
14234         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
14235         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
14236
14237         [BZ #19235]
14238         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
14239         add 0.5 to integer arguments.
14240         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
14241         Likewise.
14242         (.LC2): New object.
14243
14244 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
14245
14246         * scripts/pylintrc (reports): Set to no.
14247
14248 2015-11-10  Roland McGrath  <roland@hack.frob.com>
14249
14250         * elf/dl-load.c (open_verify): Take new argument FD.
14251         Skip __open call if passed FD is not -1.
14252         (_dl_map_object, open_path): Update callers.
14253         * elf/dl-sysdep-open.h: New file.
14254         * elf/dl-load.c: Include it.
14255         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
14256         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
14257         * sysdeps/nacl/dl-sysdep-open.h: New file.
14258         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
14259         from libc to rtld.
14260
14261 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
14262
14263         [BZ #19228]
14264         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
14265         and restore full floating-point state.
14266         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
14267         Likewise.
14268         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
14269         Likewise.
14270         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
14271         Likewise.
14272         * math/test-nearbyint-except-2.c: New file.
14273         * math/Makefile (tests): Add test-nearbyint-except-2.
14274
14275 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
14276
14277         [BZ #19178]
14278         * sysdeps/x86/Makefile (tests): Add tst-prelink.
14279         (tst-prelink-ENV): New.
14280         ($(objpfx)tst-prelink-conflict.out): Likewise.
14281         ($(objpfx)tst-prelink-cmp.out): Likewise.
14282         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
14283         * sysdeps/x86/tst-prelink.c: New file.
14284         * sysdeps/x86/tst-prelink.exp: Likewise.
14285
14286 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
14287
14288         * math/auto-libm-test-in: Add another test of pow.
14289         * math/auto-libm-test-out: Regenerated.
14290         * math/libm-test.inc (pow_test_data): Add another test.
14291
14292 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14293
14294         [BZ #19219]
14295         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
14296         weak_alias to nearbyintl.
14297
14298 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
14299
14300         * sysdeps/aarch64/bits/string.h: New file.
14301         (_STRING_ARCH_unaligned): Define.
14302
14303 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
14304
14305         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
14306         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
14307         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
14308         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
14309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
14310
14311 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
14312
14313         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
14314         for original name of the DSO.  Add it to the name list of the DSO
14315         if it is actually given.
14316         (_dl_map_object): Keep track of whether an audit module rewrote
14317         the file name.  If yes, pass the original name to
14318         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
14319         debugging is enabled, log the change of the file name.
14320         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
14321         _dl_map_object_from_fd.
14322         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
14323         * elf/tst-audit11.c: New file
14324         * elf/tst-auditmod11.c: New file.
14325         * elf/tst-audit11mod1.c: New file.
14326         * elf/tst-audit11mod2.c: New file.
14327         * elf/tst-audit11mod2.map: New file.
14328         * elf/tst-audit12.c: New file
14329         * elf/tst-auditmod12.c: New file.
14330         * elf/tst-audit12mod1.c: New file.
14331         * elf/tst-audit12mod2.c: New file.
14332         * elf/tst-audit12mod2.map: New file.
14333         * elf/tst-audit12mod3.c: New file.
14334
14335 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
14336
14337         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
14338         Don't create weak aliases,
14339         because versioned symbols are created later.
14340         * sysdeps/s390/s390-32/setjmp.S
14341         (setjmp, _setjmp): Remove weak and rename to an unique name
14342         in SHARED case due to existing versioned symbols.
14343         * sysdeps/s390/s390-64/setjmp.S: Likewise.
14344         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
14345         (getcontext): Create weak alias only in non SHARED case.
14346         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
14347
14348 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
14349
14350         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
14351         (__ASSUME_*_SYSCALL) Define new macros.
14352         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
14353         Remove socketcall syscalls.
14354         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
14355         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
14356         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
14357         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
14358         * sysdeps/unix/sysv/linux/send.c (__libc_send):
14359         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
14360
14361 2015-11-09  Florian Weimer  <fweimer@redhat.com>
14362
14363         [BZ #12926]
14364         Terminate process on invalid netlink response.
14365         * sysdeps/unix/sysv/linux/netlinkaccess.h
14366         (__netlink_assert_response): Declare.
14367         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
14368         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
14369         (sysdep_routines): Add netlink_assert_response.
14370         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
14371         __netlink_assert_response.
14372         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
14373         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
14374         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
14375         __netlink_assert_response.
14376
14377 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
14378
14379         [BZ #19178]
14380         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
14381         (RTYPE_CLASS_PLT): Likewise.
14382         (RTYPE_CLASS_COPY): Likewise.
14383         (RTYPE_CLASS_TLS): Likewise.
14384         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
14385         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
14386         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
14387         DL_DEBUG_PRELINK.
14388
14389 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
14390
14391         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
14392         calls with argument -0.5.
14393         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
14394
14395         * configure.ac (libc_cv_z_nodelete): Remove configure test.
14396         (libc_cv_z_nodlopen): Likewise.
14397         (libc_cv_z_initfirst): Likewise.
14398         * configure: Regenerated.
14399
14400 2015-11-06  Florian Weimer  <fweimer@redhat.com>
14401
14402         Simplify abilist format to be line-based.
14403         * scripts/abilist.awk: Collect descriptors in the descs variable.
14404         (emit): Write descs variable and sort it
14405         externally, with sort.
14406         * sysdeps/**/*.abilist: Convert to new format.
14407
14408 2015-11-06  Mark Wielaard  <mjw@redhat.com>
14409
14410         [BZ #11460]
14411         * io/Makefile (routines): Add fts64.
14412         (tests): Add tst-fts and tst-fts-lfs.
14413         (CFLAGS-fts64.c): New.
14414         * io/Versions (GLIBC_2.23): New.
14415         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
14416         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
14417         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
14418         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
14419         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
14420         (FTSENT64): Likewise.
14421         (fts64_children): Likewise.
14422         (fts64_close): Likewise.
14423         (fts64_open): Likewise.
14424         (fts64_read): Likewise.
14425         (fts64_set): Likewise.
14426         * io/fts64.c: New file.
14427         * io/tst-fts.c: New test.
14428         * io/tst-fts-lfs.c: Likewise.
14429         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
14430         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
14431         fts64_set.
14432         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14433         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14434         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14435         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14436         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14437         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14438         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14439         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14440         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14441         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14442         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14443         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14444         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14446         Likewise.
14447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14448         Likewise.
14449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14451         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14452         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14453         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14454         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14455         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14456         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
14457         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
14458         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14459         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14460         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14461         * sysdeps/wordsize-64/fts.c: New file.
14462         * sysdeps/wordsize-64/fts64.c: Likewise.
14463         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
14464         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
14465         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
14466         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
14467
14468 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
14469
14470         * math/libm-test.inc (NON_FINITE): New macro.
14471         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
14472         * math/gen-libm-test.pl (show_exceptions): Add argument
14473         $non_finite.
14474         (parse_args): Update call to show_exceptions.
14475         * math/test-math-finite.h: New file.
14476         * math/test-math-no-finite.h: Likewise.
14477         * math/test-double-finite.c: Likewise.
14478         * math/test-float-finite.c: Likewise.
14479         * math/test-ldouble-finite.c: Likewise.
14480         * math/test-double.c: Include "test-math-no-finite.h".
14481         * math/test-float.c: Include "test-math-no-finite.h".
14482         * math/test-ldouble.c: Include "test-math-no-finite.h".
14483         * math/test-math-inline.h (TEST_FINITE): New macro.
14484         * math/test-math-vector.h (TEST_FINITE): Likewise.
14485         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
14486         (libm-tests): Add test-float-finite and test-double-finite.
14487         ($(objpfx)test-float-finite.o): New dependency on
14488         $(objpfx)libm-test.stmp.
14489         ($(objpfx)test-double-finite.o): Likewise.
14490         ($(objpfx)test-ldouble-finite.o): Likewise.
14491         (libm-test-no-inline-cflags): New variable.
14492         (libm-test-finite-cflags): Likewise.
14493         (CFLAGS-test-float-finite.c): Likewise.
14494         (CFLAGS-test-double-finite.c): Likewise.
14495         (CFLAGS-test-ldouble-finite.c): Likewise.
14496         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
14497         (CFLAGS-test-double.c): Likewise.
14498         (CFLAGS-test-ldouble.c): Likewise.
14499
14500 2015-11-05  Roland McGrath  <roland@hack.frob.com>
14501
14502         * io/fcntl.c (__fcntl): Add ... to prototype.
14503         * misc/ioctl.c (__ioctl): Likewise.
14504         * misc/syscall.c (syscall): Likewise.
14505
14506 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
14507
14508         * scripts/list-fixed-bugs.py: New file.
14509
14510         [BZ #19213]
14511         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
14512         returned for argument 1.
14513         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
14514         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
14515         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
14516         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
14517         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
14518         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
14519
14520         [BZ #19211]
14521         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
14522         __USE_XOPEN], not if [!__USE_ISOC99].
14523         (lgammaf): Likewise.
14524         (lgammal): Likewise.
14525         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
14526         (gammaf): Likewise.
14527         (gammal): Likewise.
14528         * math/test-signgam-finite-c11.c: New file.
14529         * math/test-signgam-finite-c99.c: Likewise.
14530         * math/test-signgam-finite.c: Likewise.
14531         * math/Makefile (tests): Add test-signgam-finite,
14532         test-signgam-finite-c99 and test-signgam-finite-c11.
14533         (CFLAGS-test-signgam-finite.c): New variable.
14534         (CFLAGS-test-signgam-finite-c99.c): Likewise.
14535         (CFLAGS-test-signgam-finite-c11.c): Likewise.
14536
14537         [BZ #19212]
14538         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
14539         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
14540         500].
14541         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
14542         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
14543         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
14544         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
14545         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
14546         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
14547         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
14548         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
14549         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
14550         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
14551
14552         [BZ #19209]
14553         * math/bits/math-finite.h (ldexp): Remove declaration.
14554         (ldexpf): Likewise.
14555         (ldexpl): Likewise.
14556
14557         [BZ #19205]
14558         * math/bits/math-finite.h (acosf): Condition declaration on
14559         [__USE_ISOC99].
14560         (acosl): Likewise.
14561         (acoshf): Likewise.
14562         (acoshl): Likewise.
14563         (asinf): Likewise.
14564         (asinl): Likewise.
14565         (atan2f): Likewise.
14566         (atan2l): Likewise.
14567         (atanhf): Likewise.
14568         (atanhl): Likewise.
14569         (coshf): Likewise.
14570         (coshl): Likewise.
14571         (expf): Likewise.
14572         (expl): Likewise.
14573         (fmodf): Likewise.
14574         (fmodl): Likewise.
14575         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
14576         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
14577         (j0l): Likewise.
14578         (y0f): Likewise.
14579         (y0l): Likewise.
14580         (j1f): Likewise.
14581         (j1l): Likewise.
14582         (y1f): Likewise.
14583         (y1l): Likewise.
14584         (jnf): Likewise.
14585         (jnl): Likewise.
14586         (ynf): Likewise.
14587         (ynl): Likewise.
14588         (lgammaf_r): Condition declaration on [__USE_ISOC99].
14589         (lgammal_r): Likewise.
14590         (__lgamma_r_finite): New declaration.
14591         (__lgammaf_r_finite): Likewise.
14592         (__lgammal_r_finite): Likewise.
14593         (lgamma): Use __lgamma_r_finite.
14594         (lgammaf): Condition definition on [__USE_ISOC99].  Use
14595         __lgammaf_r_finite.
14596         (lgammal): Condition definition on [__USE_ISOC99].  Use
14597         __lgammal_r_finite.
14598         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
14599         __lgamma_r_finite.
14600         (gammaf): Condition definition on [__USE_ISOC99].  Use
14601         __lgammaf_r_finite.
14602         (gammal): Condition definition on [__USE_ISOC99].  Use
14603         __lgammal_r_finite.
14604         (logf): Condition declaration on [__USE_ISOC99].
14605         (logl): Likewise.
14606         (log10f): Likewise.
14607         (log10l): Likewise.
14608         (ldexpf): Likewise.
14609         (ldexpl): Likewise.
14610         (powf): Likewise.
14611         (powl): Likewise.
14612         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
14613         __USE_ISOC99].
14614         (remainderf): Condition declaration on [__USE_ISOC99].
14615         (remainderl): Likewise.
14616         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
14617         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
14618         (scalbl): Likewise.
14619         (sinhf): Condition declaration on [__USE_ISOC99].
14620         (sinhl): Likewise.
14621         (sqrtf): Likewise.
14622         (sqrtl): Likewise.
14623
14624 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
14625
14626         * sysdeps/arm/atomic-machine.h
14627         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
14628         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
14629         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
14630         Remove conditional code.
14631         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
14632         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
14633         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
14634         Change conditional to [__ASSEMBLER__].
14635         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
14636         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
14637         [!__ASSEMBLER__].
14638         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
14639         code.
14640         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
14641         conditional macro definitions.
14642         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
14643         (__arch_compare_and_exchange_val_16_acq): Likewise.
14644         (__arch_compare_and_exchange_val_32_acq): Likewise.
14645         (atomic_exchange_and_add): Likewise.
14646         (atomic_add): Likewise.
14647         (atomic_add_negative): Likewise.
14648         (atomic_add_zero): Likewise.
14649         (atomic_bit_set): Likewise.
14650         (atomic_bit_test_set): Likewise.
14651         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
14652         code unconditional.
14653         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14654
14655         * math/test-math-errno.h: New file.
14656         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
14657         empty.
14658         (TEST_ERRNO): New macro.
14659         (TEST_EXCEPTIONS): Likewise.
14660         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
14661         (TEST_EXCEPTIONS): Likewise.
14662         * math/test-math-vector.h (TEST_ERRNO): Likewise.
14663         * math/test-double.c: Include "test-math-errno.h".
14664         * math/test-float.c: Likewise.
14665         * math/test-ldouble.c: Likewise.
14666         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
14667         code unconditional.
14668         (test_exceptions): Only run code if TEST_EXCEPTIONS.
14669         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
14670         unconditional.
14671         (test_errno): Only run code if TEST_ERRNO.
14672         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
14673
14674 2015-11-04  Florian Weimer  <fweimer@redhat.com>
14675
14676         * nptl/tst-once5.cc: Remove attribution.
14677
14678 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
14679
14680         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
14681         sqrt, tan, tanh, y0, y1 and yn.
14682         * math/auto-libm-test-out: Regenerated.
14683         * math/libm-test.inc (scalb_test_data): Add more tests.
14684         (scalbn_test_data): Likewise.
14685         (scalbln_test_data): Likewise.
14686         (signbit_test_data): Likewise.
14687         (sin_test_data): Likewise.
14688         (sincos_test_data): Likewise.
14689         (sinh_test_data): Likewise.
14690         (sqrt_test_data): Likewise.
14691         (tan_test_data): Likewise.
14692         (tanh_test_data): Likewise.
14693         (tgamma_test_data): Likewise.
14694         (y0_test_data): Likewise.
14695         (y1_test_data): Likewise.
14696         (yn_test_data): Likewise.
14697         (significand_test_data): Likewise.
14698         * sysdeps/i386/fpu/libm-test-ulps: Update.
14699
14700 2015-11-03  David Kastrup  <dak@gnu.org>
14701
14702         [BZ #18604]
14703         * assert/assert.h (assert): Don't macro-expand failed assertion
14704         expression in error message.
14705         * malloc/malloc.c (assert): Likewise.
14706
14707 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
14708
14709         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
14710         test.
14711         * configure: Regenerated.
14712
14713 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
14714
14715         * math/libm-test.inc (modf_test_data): Add more tests.
14716         (nearbyint_test_data): Likewise.
14717         (nextafter_test_data): Likewise.
14718         (nexttoward_test_data): Likewise.
14719         (pow_test_data): Likewise.
14720         (remainder_test_data): Likewise.
14721         (remquo_test_data): Likewise.
14722         (rint_test_data): Likewise.
14723
14724         [BZ #19201]
14725         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
14726         Check for zero remainder in case of large exponents and ensure
14727         correct sign of result in that case.
14728         * math/libm-test.inc (remainder_test_data): Add more tests.
14729
14730         [BZ #6799]
14731         * math/s_nextafter.c: Include <errno.h>.
14732         (__nextafter): Set errno on overflow and underflow.
14733         * math/s_nexttowardf.c: Include <errno.h>.
14734         (__nexttowardf): Set errno on overflow and underflow.
14735         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
14736         (__nextafterl): Set errno on overflow and underflow.
14737         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
14738         (__nexttoward): Set errno on overflow and underflow.
14739         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
14740         (__nexttowardf): Set errno on overflow and underflow.
14741         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
14742         (__nextafterf): Set errno on overflow and underflow.
14743         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
14744         (__nextafterl): Set errno on overflow and underflow.
14745         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
14746         (__nexttoward): Set errno on overflow and underflow.
14747         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
14748         (__nexttowardf): Set errno on overflow and underflow.
14749         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
14750         (__nextafterl): Set errno on overflow and underflow.
14751         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
14752         (__nexttoward): Set errno on overflow and underflow.
14753         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
14754         (__nexttowardf): Set errno on overflow and underflow.
14755         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
14756         (__nexttoward): Set errno on overflow and underflow.
14757         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
14758         (__nexttowardf): Set errno on overflow and underflow.
14759         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
14760         (__nldbl_nexttowardf): Set errno on overflow and underflow.
14761         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
14762         (__nextafterl): Set errno on overflow and underflow.
14763         * math/libm-test.inc (nextafter_test_data): Do not allow errno
14764         setting to be missing on overflow.  Add more tests.
14765         (nexttoward_test_data): Likewise.
14766
14767         * configure.ac (libc_cv_initfini_array): Remove configure test.
14768         * configure: Regenerated.
14769
14770 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
14771
14772         [BZ #19189]
14773         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
14774         non-finite argument handle arguments with negative sign.
14775
14776         * math/libm-test.inc (j0_test_data): Do not test sign of zero
14777         result from infinite argument.
14778         (j1_test_data): Likewise.
14779         (jn_test_data): Likewise.
14780         (y0_test_data): Likewise.
14781         (y1_test_data): Likewise.
14782         (yn_test_data): Likewise.
14783
14784         [BZ #16171]
14785         * math/w_remainder.c (drem): Define as weak alias of __remainder.
14786         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
14787         * math/w_remainderf.c (dremf): Define as weak alias of
14788         __remainderf.
14789         * math/w_remainderl.c (dreml): Define as weak alias of
14790         __remainderl.
14791         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
14792         __remainder.
14793         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
14794         __remainderf.
14795         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
14796         __remainderl.
14797         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
14798         weak alias of remainderl.
14799         * sysdeps/ieee754/ldbl-opt/w_remainder.c
14800         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
14801         alias of __remainder.
14802         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
14803         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
14804         strong alias of __remainderl.
14805         (dreml): Use long_double_symbol.
14806         * math/Makefile (libm-calls): Remove w_drem.
14807         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
14808         (CFLAGS-nldbl-drem.c): Remove variable.
14809         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
14810         * math/w_drem.c: Remove file.
14811         * math/w_dremf.c: Likewise.
14812         * math/w_dreml.c: Likewise.
14813         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
14814         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
14815         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
14816
14817         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
14818         * sysdeps/i386/configure: Regenerated.
14819         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
14820         * sysdeps/x86_64/configure: Regenerated.
14821
14822         * configure.ac (libc_cv_asm_protected_directive): Remove configure
14823         test.
14824         (libc_cv_visibility_attribute): Likewise.
14825         (libc_cv_protected_data): Test unconditionally.
14826         (libc_cv_broken_visibility_attribute): Remove configure test.
14827         (libc_cv_have_sdata_section): Test unconditionally.
14828         * configure: Regenerated.
14829
14830         * include/libc-internal.h (libc_max_align_t): Remove typedef.
14831         * include/scratch_buffer.h: Include <stddef.h> instead of
14832         <libc-internal.h>.
14833         (struct scratch_buffer): Use max_align_t instead of
14834         libc_max_align_t.
14835
14836 2015-10-29  Florian Weimer  <fweimer@redhat.com>
14837
14838         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
14839         instead of extend_alloca.  Change control flow to avoid a goto.
14840         Remove assert which is trivially always true.
14841
14842 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14843
14844         [BZ #16068]
14845         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
14846         (FE_ALL_EXCEPT_X86): New macro.
14847         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14848         FE_ALL_EXCEPT.  Ensure precision control is included in
14849         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14850         handle "denormal operand exception" and clear FZ and DAZ bits.
14851         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
14852         (FE_ALL_EXCEPT_X86): New macro.
14853         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14854         FE_ALL_EXCEPT.  Ensure precision control is included in
14855         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14856         handle "denormal operand exception" and clear FZ and DAZ bits.
14857         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
14858         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
14859         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14860         test-fenv-x87 and test-fenv-sse-2.
14861         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
14862
14863         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
14864         * math/test-double.h (BUILD_COMPLEX): New macro.
14865         * math/test-float.h (BUILD_COMPLEX): Likewise.
14866         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
14867
14868         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
14869         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
14870         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
14871         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
14872         instead of DBL_DENORM_MIN in comment.
14873         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
14874         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14875         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
14876         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
14877         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
14878         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14879
14880 2015-10-28  Florian Weimer  <fweimer@redhat.com>
14881
14882         [BZ# 19048]
14883         * malloc/malloc.c (struct malloc_state): Update comment.  Add
14884         attached_threads member.
14885         (main_arena): Initialize attached_threads.
14886         * malloc/arena.c (list_lock): Update comment.
14887         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
14888         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
14889         (deattach_arena): New function.
14890         (_int_new_arena): Initialize arena reference count and deattach
14891         replaced arena.
14892         (get_free_list, reused_arena): Update reference count and deattach
14893         replaced arena.
14894         (arena_thread_freeres): Update arena reference count and only put
14895         unreferenced arenas on the free list.
14896
14897 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14898
14899         [BZ #19181]
14900         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
14901         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
14902         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
14903         * math/test-fenv-clear-main.c: New file.
14904         * math/test-fenv-clear.c: Likewise.
14905         * math/Makefile (tests): Add test-fenv-clear.
14906         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
14907         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14908         test-fenv-clear-sse.
14909         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
14910
14911         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
14912         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
14913         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
14914
14915 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14916
14917         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
14918         static libc.
14919
14920 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14921
14922         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
14923         test.
14924         * sysdeps/i386/configure: Regenerated.
14925         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
14926         test.
14927         * sysdeps/x86_64/configure: Regenerated.
14928         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
14929         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14930         memset-avx2 unconditionally instead of conditionally on
14931         [$(config-cflags-avx2) = yes].
14932         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14933         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
14934         unconditional.
14935         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
14936         * sysdeps/x86_64/multiarch/memset_chk.S
14937         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
14938         to [IS_IN (libc) && SHARED].
14939
14940 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14941
14942         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
14943         configure test.
14944         * sysdeps/arm/configure: Regenerated.
14945         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
14946         Define variable if not already defined.
14947
14948         [BZ #17404]
14949         * sysdeps/mips/atomic-machine.h
14950         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
14951         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
14952         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
14953
14954         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
14955         unconditional.
14956         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
14957         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14958         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
14959         unconditional.
14960         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14961         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
14962         unconditional.
14963         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14964         * stdlib/setenv.c
14965         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
14966         code unconditional.
14967         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
14968         Remove conditional code.
14969         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
14970         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
14971         unconditional.
14972         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14973         code.
14974         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
14975         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
14976         unconditional.
14977         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14978         code.
14979         * sysdeps/ieee754/ldbl-128/k_tanl.c
14980         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14981         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14982         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
14983         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14984         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14985         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
14986         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
14987         unconditional.
14988         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14989         code.
14990         * sysdeps/ieee754/ldbl-96/k_tanl.c
14991         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14992         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14993
14994         * nptl/tst-initializers1-c11.c: New file.
14995         * nptl/tst-initializers1-gnu11.c: Likewise.
14996         * nptl/Makefile (tests): Add these new tests.
14997         (CFLAGS-tst-initializers1-c11.c): New variable.
14998         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
14999
15000         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
15001         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
15002         instead of -std=gnu99.
15003         * configure.ac (systemtap): Test with -std=gnu11 instead of
15004         -std=gnu99.
15005         * configure: Regenerated.
15006         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
15007         in compilation command in comment.
15008
15009         * sysdeps/nptl/configure.ac: Remove file.
15010         * sysdeps/nptl/configure: Remove generated file.
15011         * configure.ac (libc_cv_forced_unwind): Do not substitute.
15012         * configure: Regenerated.
15013         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
15014         * config.make.in (have-forced-unwind): Remove variable.
15015         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
15016         unconditional.
15017         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
15018         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
15019         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
15020         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
15021         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
15022         unconditional.
15023
15024 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15025
15026         [BZ #19174]
15027         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
15028         .skip_lock_out_of_tbegin_retries.
15029         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
15030         (__lll_lock_elision): Likewise, and respect a value of
15031         try_tbegin <= 0.
15032
15033 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
15034
15035         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
15036         statement.
15037
15038 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
15039
15040         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
15041         variable.
15042         (test-xfail-ISO11/stdalign.h/conform): Likewise.
15043         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
15044
15045         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
15046         of -std=c1x -D_ISOC11_SOURCE.
15047
15048         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
15049         * configure: Regenerated.
15050         * manual/install.texi (Tools for Compilation): Document
15051         requirement for GCC 4.7 or later.
15052         * INSTALL: Regenerated.
15053
15054 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
15055
15056         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
15057         on CNT to a conditional jump to 'puntdata'.
15058
15059 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
15060
15061         * configure.ac (libc_cv_gcc___thread): Remove configure test.
15062         (libc_cv_gcc_tls_model_attr): Likewise.
15063         * configure: Regenerated.
15064
15065         * configure.ac (libc_cv_need_minus_P): Remove configure test.
15066         * configure: Regenerated.
15067         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
15068
15069 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
15070
15071         * configure.ac (old_glibc_headers): Remove configure test.
15072         * configure: Regenerated.
15073         * config.make.in (old-glibc-headers): Remove variable.
15074         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
15075         (install): Remove dependency on remove-old-headers.
15076         (headers2_0): Remove variable.
15077         (remove-old-headers): Remove rule.
15078
15079         * configure.ac (libc_cv_dot_text): Remove configure test.
15080         (libc_cv_asm_set_directive): Use .text instead of
15081         ${libc_cv_dot_text} in configure test.
15082         * configure: Regenerated.
15083
15084 2015-10-26  Florian Weimer  <fweimer@redhat.com>
15085
15086         [BZ #19168]
15087         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15088
15089 2015-10-26  Florian Weimer  <fweimer@redhat.com>
15090
15091         * configure.ac (CXX): Clear the variable if the C++ toolchain does
15092         not support static linking.
15093         * configure: Regenerate.
15094
15095 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
15096
15097         * math/libm-test.inc (check_float_internal): Do not special-case
15098         errors up to 0.5 ulp.
15099
15100         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
15101         log2.
15102         * math/auto-libm-test-out: Regenerated.
15103         * math/libm-test.inc (MAX_EXP): New macro.
15104         (ilogb_test_data): Add more tests.
15105         (isfinite_test_data): Likewise.
15106         (isgreater_test_data): Likewise.
15107         (isgreaterequal_test_data): Likewise.
15108         (isinf_test_data): Likewise.
15109         (isless_test_data): Likewise.
15110         (islessequal_test_data): Likewise.
15111         (islessgreater_test_data): Likewise.
15112         (isnan_test_data): Likewise.
15113         (isnormal_test_data): Likewise.
15114         (issignaling_test_data): Likewise.
15115         (isunordered_test_data): Likewise.
15116         (j0_test_data): Likewise.
15117         (j1_test_data): Likewise.
15118         (jn_test_data): Likewise.
15119         (lgamma_test_data): Likewise.
15120         (log_test_data): Likewise.
15121         (log10_test_data): Likewise.
15122         (log1p_test_data): Likewise.
15123         (log2_test_data): Likewise.
15124         (logb_test_data): Likewise.
15125         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15126
15127         [BZ #18611]
15128         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
15129         avoid excess range and precision on underflow.
15130         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15131         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
15132         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15133         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
15134         underflow.
15135         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15136         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15137         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15138         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15139         * math/auto-libm-test-in: Do not allow missing errno setting for
15140         tests of j1 and jn.
15141         * math/auto-libm-test-out: Regenerated.
15142
15143 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
15144
15145         [BZ #15491]
15146         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
15147         floating-point environment instead of clearing all exceptions.
15148         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
15149         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
15150         merging in "invalid" exceptions from frndint.
15151         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
15152         * math/test-nearbyint-except.c: New file.
15153         * math/Makefile (tests): Add test-nearbyint-except.
15154
15155 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
15156
15157         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
15158
15159         * sysdeps/tile/libm-test-ulps: Regenerated.
15160
15161 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15162
15163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
15164         (__NR_sync_file_range2): Assume it is always defined.
15165         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
15166         (__NR_sync_file_range): Assume it is always defined.
15167
15168 2015-10-22  Andreas Schwab  <schwab@suse.de>
15169
15170         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
15171         INTERNAL_SYSCALL_ERRNO.
15172         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
15173         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
15174         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
15175         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
15176         Likewise.
15177         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
15178
15179 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
15180
15181         * io/tst-fcntl.c (fd): New static variable.
15182         (do_prepare): Open temporary file here....
15183         (do_test): ...not here.
15184
15185         * io/ftwtest-sh: Also trap on exit to remove temporary files.
15186
15187 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
15188
15189         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
15190         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
15191         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
15192         Moved before "#ifdef __ASSEMBLER__".
15193
15194 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
15195
15196         [BZ #19156]
15197         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
15198         arguments very close to 0.
15199
15200 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
15201
15202         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
15203         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
15204
15205 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
15206
15207         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
15208         New.  Defined for GCC 5 and above when not compiling for
15209         profiling.
15210         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
15211
15212         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
15213         Renamed to ...
15214         (CFLAGS-epoll_pwait.o): This.
15215         (CFLAGS-mmap.c): Renamed to ...
15216         (CFLAGS-mmap.o): This.
15217         (CFLAGS-mmap64.c): Renamed to ...
15218         (CFLAGS-mmap64.o): This.
15219         (CFLAGS-epoll_pwait.os): New.
15220         (CFLAGS-mmap.os): Likewise.
15221         (CFLAGS-mmap64.os): Likewise.
15222         (CFLAGS-semtimedop.os): Likewise.
15223         (CFLAGS-semtimedop.c): Renamed to ...
15224         (CFLAGS-semtimedop.o): This.
15225
15226 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15227
15228         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
15229         warning message.
15230
15231 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
15232
15233         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
15234         * Makefile ($(objpfx)c++-types-check.out): Filter out
15235         $(+gccwarn-c) instead of -Wstrict-prototypes.
15236
15237         * io/fts.c (fts_open): Convert to prototype-style function
15238         definition.
15239         * malloc/mcheck.c (mcheck): Likewise.
15240         (mcheck_pedantic): Likewise.
15241         * posix/regexec.c (re_search_2_stub): Likewise.  Use
15242         internal_function.
15243         (re_search_internal): Likewise.
15244         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
15245         prototype-style function definition.
15246         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15247         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
15248         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
15249         (xdr_utmpptr): Likewise.
15250         (xdr_utmparr): Likewise.
15251         (xdr_utmpidle): Likewise.
15252         (xdr_utmpidleptr): Likewise.
15253         (xdr_utmpidlearr): Likewise.
15254
15255         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
15256         log, log10 and log2.
15257         * math/auto-libm-test-out: Regenerated.
15258         * math/libm-test.inc (fmod_test_data): Add more tests.
15259         (fpclassify_test_data): Likewise.
15260         (frexp_test_data): Likewise.
15261         (hypot_test_data): Likewise.
15262         (ilogb_test_data): Likewise.
15263
15264 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
15265
15266         * debug/fortify_fail.c (__fortify_fail): Convert to
15267         prototype-style function definition.  Use internal_function.
15268         * libio/genops.c (save_for_backup): Convert to prototype-style
15269         function definition.
15270         * libio/wgenops.c (save_for_wbackup): Likewise.
15271         * login/grantpt.c (grantpt): Likewise.
15272         * login/ptsname.c (ptsname): Likewise.
15273         (__ptsname_r): Likewise.
15274         * login/unlockpt.c (unlockpt): Likewise.
15275         * mach/msgserver.c (__mach_msg_server): Likewise.
15276         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
15277         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
15278         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
15279         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
15280         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
15281         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
15282         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
15283         Likewise.
15284         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
15285         internal_function.
15286         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
15287         prototype-style function definition.
15288         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
15289         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
15290         (__pthread_create_2_0): Likewise.
15291         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
15292         * nptl/register-atfork.c (__register_atfork): Likewise.
15293         * posix/glob.c (glob): Likewise.
15294         * posix/regcomp.c (re_comp): Likewise.
15295         * posix/regexec.c (re_exec): Likewise.
15296         * stdlib/add_n.c [__STDC__]: Make code unconditional.
15297         [!__STDC__]: Remove conditional code.
15298         * stdlib/cmp.c [__STDC__]: Make code unconditional.
15299         [!__STDC__]: Remove conditional code.
15300         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
15301         [!__STDC__]: Remove conditional code.
15302         * stdlib/divrem.c [__STDC__]: Make code unconditional.
15303         [!__STDC__]: Remove conditional code.
15304         * stdlib/lshift.c [__STDC__]: Make code unconditional.
15305         [!__STDC__]: Remove conditional code.
15306         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
15307         [!__STDC__]: Remove conditional code.
15308         * stdlib/mul.c [__STDC__]: Make code unconditional.
15309         [!__STDC__]: Remove conditional code.
15310         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
15311         [!__STDC__]: Remove conditional code.
15312         * stdlib/rshift.c [__STDC__]: Make code unconditional.
15313         [!__STDC__]: Remove conditional code.
15314         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
15315         function definition.
15316         (STRTOF): Likewise.
15317         * stdlib/strtod_l.c (__STRTOF): Likewise.
15318         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
15319         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
15320         (__strtol_l): Likewise.
15321         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
15322         [!__STDC__]: Remove conditional code.
15323         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
15324         definition.
15325         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
15326         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
15327         type.
15328         (__strcasecmp): Convert to prototype-style function definition.
15329         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
15330         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
15331         type.
15332         (__strncasecmp): Convert to prototype-style function definition.
15333         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
15334         * sunrpc/xdr.c (xdr_union): Likewise.
15335         * sunrpc/xdr_array.c (xdr_array): Likewise.
15336         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
15337         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
15338         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
15339         Likewise.
15340         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
15341         Likewise.
15342         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
15343         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
15344         Likewise.
15345         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
15346         (LOCALE_PARAM_PROTO): Likewise.
15347         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
15348         argument type.
15349         (ut_argument_spec): Remove macro.
15350         (ut_argument_spec_iso): Rename to ut_argument_spec.
15351         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
15352         prototype-style function definition.
15353         (memcpy_uppcase): Likewise.
15354         (__strftime_internal): Likewise.
15355         (my_strftime): Likewise.
15356         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
15357         (LOCALE_PARAM_DECL): Likewise.
15358         [_LIBC] (LOCALE_PARAM): Include argument type.
15359         (__strptime_internal): Convert to prototype-style function
15360         definition.
15361         (strptime): Likewise.
15362         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
15363         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
15364         type.
15365         (__wcscasecmp): Convert to prototype-style function definition.
15366         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
15367         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
15368         type.
15369         (__wcsncasecmp): Convert to prototype-style function definition.
15370
15371         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
15372         function definition.
15373         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
15374         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
15375         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
15376         * elf/dl-minimal.c (_itoa): Likewise.
15377         * hurd/hurdmalloc.c (malloc): Likewise.
15378         (free): Likewise.
15379         (realloc): Likewise.
15380         * inet/inet6_option.c (inet6_option_space): Likewise.
15381         (inet6_option_init): Likewise.
15382         (inet6_option_append): Likewise.
15383         (inet6_option_alloc): Likewise.
15384         (inet6_option_next): Likewise.
15385         (inet6_option_find): Likewise.
15386         * io/ftw.c (FTW_NAME): Likewise.
15387         (NFTW_NAME): Likewise.
15388         (NFTW_NEW_NAME): Likewise.
15389         (NFTW_OLD_NAME): Likewise.
15390         * libio/iofwide.c (_IO_fwide): Likewise.
15391         * libio/strops.c (_IO_str_init_static_internal): Likewise.
15392         (_IO_str_init_static): Likewise.
15393         (_IO_str_init_readonly): Likewise.
15394         (_IO_str_overflow): Likewise.
15395         (_IO_str_underflow): Likewise.
15396         (_IO_str_count): Likewise.
15397         (_IO_str_seekoff): Likewise.
15398         (_IO_str_pbackfail): Likewise.
15399         (_IO_str_finish): Likewise.
15400         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
15401         (_IO_wstr_overflow): Likewise.
15402         (_IO_wstr_underflow): Likewise.
15403         (_IO_wstr_count): Likewise.
15404         (_IO_wstr_seekoff): Likewise.
15405         (_IO_wstr_pbackfail): Likewise.
15406         (_IO_wstr_finish): Likewise.
15407         * locale/programs/localedef.c (normalize_codeset): Likewise.
15408         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15409         (add_locales_to_archive): Likewise.
15410         (delete_locales_from_archive): Likewise.
15411         * malloc/malloc.c (__libc_mallinfo): Likewise.
15412         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
15413         * misc/tsearch.c (__tfind): Likewise.
15414         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
15415         * nptl/pthread_attr_getdetachstate.c
15416         (__pthread_attr_getdetachstate): Likewise.
15417         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
15418         Likewise.
15419         * nptl/pthread_attr_getinheritsched.c
15420         (__pthread_attr_getinheritsched): Likewise.
15421         * nptl/pthread_attr_getschedparam.c
15422         (__pthread_attr_getschedparam): Likewise.
15423         * nptl/pthread_attr_getschedpolicy.c
15424         (__pthread_attr_getschedpolicy): Likewise.
15425         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
15426         Likewise.
15427         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
15428         Likewise.
15429         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
15430         Likewise.
15431         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
15432         Likewise.
15433         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
15434         (__pthread_attr_init_2_0): Likewise.
15435         * nptl/pthread_attr_setdetachstate.c
15436         (__pthread_attr_setdetachstate): Likewise.
15437         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
15438         Likewise.
15439         * nptl/pthread_attr_setinheritsched.c
15440         (__pthread_attr_setinheritsched): Likewise.
15441         * nptl/pthread_attr_setschedparam.c
15442         (__pthread_attr_setschedparam): Likewise.
15443         * nptl/pthread_attr_setschedpolicy.c
15444         (__pthread_attr_setschedpolicy): Likewise.
15445         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
15446         Likewise.
15447         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
15448         Likewise.
15449         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
15450         Likewise.
15451         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
15452         Likewise.
15453         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
15454         Likewise.
15455         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
15456         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
15457         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
15458         use internal_function.
15459         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
15460         prototype-style function definition.
15461         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
15462         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
15463         internal_function.
15464         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
15465         Convert to prototype-style function definition.
15466         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
15467         Likewise.
15468         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
15469         Likewise.
15470         (__pthread_mutex_unlock): Likewise.
15471         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
15472         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
15473         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
15474         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
15475         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
15476         * nss/makedb.c (process_input): Likewise.
15477         * posix/fnmatch.c (__strchrnul): Likewise.
15478         (__wcschrnul): Likewise.
15479         (fnmatch): Likewise.
15480         * posix/fnmatch_loop.c (FCT): Likewise.
15481         * posix/glob.c (globfree): Likewise.
15482         (__glob_pattern_type): Likewise.
15483         (__glob_pattern_p): Likewise.
15484         * posix/regcomp.c (re_compile_pattern): Likewise.
15485         (re_set_syntax): Likewise.
15486         (re_compile_fastmap): Likewise.
15487         (regcomp): Likewise.
15488         (regerror): Likewise.
15489         (regfree): Likewise.
15490         * posix/regexec.c (regexec): Likewise.
15491         (re_match): Likewise.
15492         (re_search): Likewise.
15493         (re_match_2): Likewise.
15494         (re_search_2): Likewise.
15495         (re_search_stub): Likewise.  Use internal_function
15496         (re_copy_regs): Likewise.
15497         (re_set_registers): Convert to prototype-style function
15498         definition.
15499         (prune_impossible_nodes): Likewise.  Use internal_function.
15500         * resolv/inet_net_pton.c (inet_net_pton): Convert to
15501         prototype-style function definition.
15502         (inet_net_pton_ipv4): Likewise.
15503         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
15504         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
15505         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
15506         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
15507         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
15508         Make variadic.
15509         * time/strptime_l.c (localtime_r): Convert to prototype-style
15510         function definition.
15511         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
15512         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
15513         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
15514         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
15515
15516         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
15517         definition.
15518         (_ufc_doit_r): Likewise.
15519         * crypt/crypt_util.c (_ufc_copymem): Likewise.
15520         (_ufc_output_conversion_r): Likewise.
15521         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
15522         * inet/rcmd.c (rcmd_af): Likewise.
15523         (rcmd): Likewise.
15524         (ruserok_af): Likewise.
15525         (ruserok): Likewise.
15526         (ruserok2_sa): Likewise.
15527         (ruserok_sa): Likewise.
15528         (iruserok_af): Likewise.
15529         (iruserok): Likewise.
15530         (__ivaliduser): Likewise.
15531         (__validuser2_sa): Likewise.
15532         * inet/rexec.c (rexec_af): Likewise.
15533         (rexec): Likewise.
15534         * inet/ruserpass.c (ruserpass): Likewise.
15535         * locale/programs/xmalloc.c (xcalloc): Likewise.
15536         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
15537         * math/w_drem.c (__drem): Likewise.
15538         * math/w_dremf.c (__dremf): Likewise.
15539         * math/w_dreml.c (__dreml): Likewise.
15540         * misc/daemon.c (daemon): Likewise.
15541         * resolv/res_debug.c (p_fqnname): Likewise.
15542         * stdlib/div.c (div): Likewise.
15543         * string/memcmp.c (memcmp_bytes): Likewise.
15544         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
15545         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
15546
15547         * crypt/cert.c (main): Convert to prototype-style function
15548         definition.
15549         * io/pipe.c (__pipe): Likewise.
15550         * io/pipe2.c (__pipe2): Likewise.
15551         * misc/futimesat.c (futimesat): Likewise.
15552         * misc/utimes.c (__utimes): Likewise.
15553         * posix/execve.c (__execve): Likewise.
15554         * posix/execvp.c (execvp): Likewise.
15555         * posix/execvpe.c (__execvpe): Likewise.
15556         * posix/fexecve.c (fexecve): Likewise.
15557         * socket/socketpair.c (socketpair): Likewise.
15558         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
15559         * stdlib/erand48.c (erand48): Likewise.
15560         * stdlib/erand48_r.c (__erand48_r): Likewise.
15561         * stdlib/jrand48.c (jrand48): Likewise.
15562         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
15563         * stdlib/lcong48.c (lcong48): Likewise.
15564         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
15565         * stdlib/nrand48.c (nrand48): Likewise.
15566         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
15567         * stdlib/seed48.c (seed48): Likewise.
15568         * stdlib/seed48_r.c (__seed48_r): Likewise.
15569         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
15570         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
15571         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
15572
15573 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
15574
15575         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
15576         * configure: Regenerated.
15577         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
15578         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
15579         unconditional.
15580         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
15581         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
15582         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
15583         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
15584         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
15585         unconditional.
15586         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
15587
15588         * posix/Makefile (CFLAGS-regex.c): Remove variable.
15589         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
15590
15591         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
15592         function definition.
15593         * crypt/crypt_util.c (__encrypt_r): Likewise.
15594         * libio/genops.c (_IO_no_init): Likewise.
15595         * libio/iofopncook.c (_IO_fopencookie): Likewise.
15596         (_IO_old_fopencookie): Likewise.
15597         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15598         * libio/iogetline.c (_IO_getline): Likewise.
15599         (_IO_getline_info): Likewise.
15600         * libio/iogetwline.c (_IO_getwline): Likewise.
15601         (_IO_getwline_info): Likewise.
15602         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
15603         * libio/vswprintf.c (_IO_vswprintf): Likewise.
15604         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
15605         (find_entry): Likewise.
15606         (iterate_table): Likewise.
15607         (lookup): Likewise.
15608         * login/forkpty.c (forkpty): Likewise.
15609         * misc/hsearch_r.c (__hsearch_r): Likewise.
15610         * misc/select.c (__select): Likewise.
15611         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
15612         Likewise.
15613         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
15614         Likewise.
15615         * nptl/old_pthread_cond_timedwait.c
15616         (__pthread_cond_timedwait_2_0): Likewise.
15617         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
15618         * nptl/pthread_barrierattr_getpshared.c
15619         (pthread_barrierattr_getpshared): Likewise.
15620         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
15621         Likewise.
15622         * nptl/pthread_mutex_setprioceiling.c
15623         (pthread_mutex_setprioceiling): Likewise.
15624         * nptl/pthread_mutexattr_getprioceiling.c
15625         (pthread_mutexattr_getprioceiling): Likewise.
15626         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
15627         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15628         Likewise.
15629         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15630         Likewise.
15631         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
15632         Likewise.
15633         * socket/recvfrom.c (__recvfrom): Likewise.
15634         * socket/sendto.c (__sendto): Likewise.
15635         * socket/setsockopt.c (__setsockopt): Likewise.
15636         * stdio-common/_itoa.c (_itoa): Likewise.
15637         * stdio-common/_itowa.c (_itowa): Likewise.
15638         * stdio-common/reg-printf.c (__register_printf_specifier):
15639         Likewise.
15640         (__register_printf_function): Likewise.
15641         * stdio-common/tempname.c (__path_search): Likewise.
15642         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
15643         * stdlib/mul_1.c (mpn_mul_1): Likewise.
15644         * stdlib/random_r.c (__initstate_r): Likewise.
15645         * stdlib/setenv.c (__add_to_environ): Likewise.
15646         * stdlib/submul_1.c (mpn_submul_1): Likewise.
15647         * streams/getpmsg.c (getpmsg): Likewise.
15648         * streams/putmsg.c (putmsg): Likewise.
15649         * streams/putpmsg.c (putpmsg): Likewise.
15650         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
15651         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
15652         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
15653         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
15654         * sunrpc/pm_getport.c (pmap_getport): Likewise.
15655         * sunrpc/svc_udp.c (cache_get): Likewise.
15656         * sunrpc/xdr_array.c (xdr_vector): Likewise.
15657         * sysdeps/mach/hurd/getcwd.c
15658         (__canonicalize_directory_name_internal): Likewise.
15659         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
15660         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
15661         * sysdeps/mach/hurd/select.c (__select): Likewise.
15662         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
15663         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15664         * sysdeps/sparc/nptl/pthread_barrier_init.c
15665         (__pthread_barrier_init): Likewise.
15666         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
15667         (__pthread_cond_timedwait): Likewise.
15668         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
15669         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
15670         Likewise.
15671         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
15672         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
15673         Likewise.
15674         * sysvipc/semtimedop.c (semtimedop): Likewise.
15675         * time/setitimer.c (__setitimer): Likewise.
15676         * time/strftime_l.c (emacs_strftime): Likewise.
15677
15678 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
15679
15680         * config.make.in (have-ssp): Delete.
15681         (stack-protector): New variable.
15682         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
15683         cache test for -fstack-protector-strong.  Export stack_protector to
15684         the best ssp flag.
15685         * configure: Regenerated.
15686         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
15687         * nscd/Makefile (CFLAGS-nscd): Likewise.
15688         * resolv/Makefile (CFLAGS-libresolv): Likewise.
15689
15690 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
15691
15692         [BZ #19122]
15693         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
15694         attribute_hidden.
15695
15696 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15697
15698         [BZ #18743]
15699         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
15700         code to...
15701         (ELIDE_LOCK): ...here.
15702         (__get_new_count): New function with part of the code from
15703         __elide_lock that updates the value of adapt_count after a
15704         transaction abort.
15705         (__elided_trylock): Moved this code to...
15706         (ELIDE_TRYLOCK): ...here.
15707
15708 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
15709
15710         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
15711         * configure: Regenerate.
15712         * INSTALL: Regenerate.
15713         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
15714         and tweak grammar.
15715
15716 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
15717
15718         * login/programs/pt_chown.c: Include signal.h
15719         (main): Clear any signal mask from the parent process.
15720
15721 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
15722
15723         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
15724         * configure: Regenerated.
15725         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
15726         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
15727         $(gnu89-inline-CFLAGS).
15728
15729         * configure.ac (libc_cv_asm_weak_directive): Remove configure
15730         test.
15731         (libc_cv_asm_weakext_directive): Likewise.
15732         * configure: Regenerated.
15733         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
15734         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
15735         * include/libc-symbols.h
15736         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
15737         #error.
15738         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
15739         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
15740
15741         * sysdeps/arm/backtrace.c (__backtrace): Convert to
15742         prototype-style function definition.
15743         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
15744         * sysdeps/i386/ffs.c (__ffs): Likewise.
15745         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
15746         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
15747         Likewise.
15748         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
15749         Likewise.
15750         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
15751         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
15752         Likewise.
15753         * sysdeps/m68k/ffs.c (__ffs): Likewise.
15754         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
15755         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
15756         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
15757         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
15758         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
15759         * sysdeps/mach/hurd/access.c (__access): Likewise.
15760         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
15761         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
15762         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
15763         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
15764         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
15765         (cthread_getspecific): Likewise.
15766         (cthread_setspecific): Likewise.
15767         (__libc_getspecific): Likewise.
15768         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
15769         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
15770         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
15771         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
15772         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
15773         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
15774         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
15775         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
15776         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
15777         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
15778         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
15779         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
15780         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
15781         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
15782         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
15783         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
15784         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
15785         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
15786         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
15787         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
15788         * sysdeps/mach/hurd/link.c (__link): Likewise.
15789         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
15790         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
15791         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
15792         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
15793         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
15794         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
15795         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
15796         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
15797         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
15798         * sysdeps/mach/hurd/rename.c (rename): Likewise.
15799         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
15800         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
15801         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
15802         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
15803         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
15804         * sysdeps/mach/hurd/send.c (__send): Likewise.
15805         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
15806         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
15807         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
15808         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
15809         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
15810         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
15811         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
15812         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
15813         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
15814         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
15815         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
15816         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
15817         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
15818         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
15819         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
15820         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
15821         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
15822         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
15823         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
15824         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
15825         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
15826         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
15827         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
15828         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
15829         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
15830         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
15831         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
15832         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
15833         * sysdeps/posix/alarm.c (alarm): Likewise.
15834         * sysdeps/posix/cuserid.c (cuserid): Likewise.
15835         * sysdeps/posix/dirfd.c (dirfd): Likewise.
15836         * sysdeps/posix/dup.c (__dup): Likewise.
15837         * sysdeps/posix/dup2.c (__dup2): Likewise.
15838         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
15839         (main): Likewise.
15840         * sysdeps/posix/flock.c (__flock): Likewise.
15841         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
15842         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
15843         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
15844         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
15845         * sysdeps/posix/isatty.c (__isatty): Likewise.
15846         * sysdeps/posix/killpg.c (killpg): Likewise.
15847         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
15848         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
15849         * sysdeps/posix/raise.c (raise): Likewise.
15850         * sysdeps/posix/remove.c (remove): Likewise.
15851         * sysdeps/posix/rename.c (rename): Likewise.
15852         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
15853         * sysdeps/posix/seekdir.c (seekdir): Likewise.
15854         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
15855         * sysdeps/posix/sigignore.c (sigignore): Likewise.
15856         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
15857         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15858         * sysdeps/posix/sigset.c (sigset): Likewise.
15859         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
15860         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
15861         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
15862         * sysdeps/posix/time.c (time): Likewise.
15863         * sysdeps/posix/ttyname.c (getttyname): Likewise.
15864         (ttyname): Likewise.
15865         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
15866         * sysdeps/posix/utime.c (utime): Likewise.
15867         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
15868         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
15869         Likewise.
15870         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
15871         (pthread_spin_trylock): Likewise.
15872         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
15873         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
15874         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
15875         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
15876         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
15877         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
15878         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
15879         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
15880         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
15881         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
15882         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
15883         * sysdeps/s390/ffs.c (__ffs): Likewise.
15884         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
15885         Likewise.
15886         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
15887         Likewise.
15888         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
15889         Likewise.
15890         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
15891         (pthread_barrier_destroy): Likewise.
15892         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15893         (__pthread_barrier_wait): Likewise.
15894         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
15895         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15896         (__pthread_barrier_wait): Likewise.
15897         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
15898         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
15899         (memcmp_not_common_alignment): Likewise.
15900         (MEMCMP): Likewise.
15901         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
15902         (_wordcopy_fwd_dest_aligned): Likewise.
15903         (_wordcopy_bwd_aligned): Likewise.
15904         (_wordcopy_bwd_dest_aligned): Likewise.
15905         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
15906         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
15907         * sysdeps/unix/bsd/stty.c (stty): Likewise.
15908         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
15909         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
15910         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
15911         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
15912         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
15913         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
15914         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
15915         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
15916         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
15917         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
15918         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
15919         * sysdeps/unix/stime.c (stime): Likewise.
15920         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
15921         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
15922         Likewise.  Use internal_function.
15923         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
15924         Convert to prototype-style function definition.
15925         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
15926         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
15927         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
15928         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
15929         Likewise.  Use internal_function.
15930         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
15931         prototype-style function definition
15932         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15933         Likewise.
15934         (__getlogin_r): Likewise.
15935         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
15936         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
15937         (__pthread_cond_broadcast): Likewise.
15938         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
15939         (__pthread_cond_destroy): Likewise.
15940         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
15941         (__pthread_cond_init): Likewise.
15942         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
15943         (__pthread_cond_signal): Likewise.
15944         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
15945         (__pthread_cond_wait): Likewise.
15946         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
15947         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
15948         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
15949         Likewise.
15950         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
15951         Likewise.
15952         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
15953         Likewise.
15954         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
15955         Likewise.
15956         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
15957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
15958         (__ftruncate64): Likewise.
15959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
15960         (truncate64): Likewise.
15961         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
15962         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
15963         (pthread_getcpuclockid): Likewise.
15964         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
15965         Likewise.
15966         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
15967         Likewise.
15968         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
15969         Likewise.
15970         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
15971         Likewise.
15972         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
15973         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
15974         (__libc_sigaction): Likewise.
15975         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
15976         Likewise.
15977         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
15978         (__sigprocmask): Likewise.
15979         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
15980         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
15981         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
15982         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
15983         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
15984         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
15985         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
15986         Likewise.
15987         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
15988         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
15989         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
15990         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
15991         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
15992         Likewise.
15993         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
15994         (__sigprocmask): Likewise.
15995         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
15996         (cfgetispeed): Likewise.
15997         (cfsetospeed): Likewise.
15998         (cfsetispeed): Likewise.
15999         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
16000         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
16001         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
16002         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
16003         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
16004         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
16005         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
16006         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
16007         Likewise.
16008         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
16009         Likewise.
16010         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
16011         Likewise.
16012         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
16013         Likewise.
16014         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
16015
16016 2015-10-17  Florian Weimer  <fweimer@redhat.com>
16017
16018         sunrpc: Rewrite with explicit TLS access using __thread.
16019         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
16020         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
16021         directly.
16022         (__rpc_thread_variables): Access thread_rpc_vars directly.
16023         Eliminate redundant assignment of the tvp variable.
16024
16025 2015-10-17  Florian Weimer  <fweimer@redhat.com>
16026
16027         malloc: Rewrite with explicit TLS access using __thread.
16028         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
16029         (tsd_setspecific, tsd_getspecific): Remove.
16030         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
16031         (tsd_setspecific, tsd_getspecific): Likewise.
16032         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
16033         (tsd_setspecific, tsd_getspecific): Likewise.
16034         * malloc/arena.c (thread_arena): New TLS variable.
16035         (arena_key): Remove variable.
16036         (arena_get): Use thread_arena.
16037         (arena_lookup): Remove macro.
16038         (malloc_atfork, free_atfork, ptmalloc_lock_all)
16039         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
16040         (_int_new_arena, get_free_list, reused_arena)
16041         (arena_thread_freeres): Use thread_arena.
16042         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
16043         tsd_getspecific, tsd_setspecific from safety annotations.
16044         (Allocating Cleared Space): Remove arena_lookup from safety
16045         annotations.
16046
16047 2015-10-17  Florian Weimer  <fweimer@redhat.com>
16048
16049         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
16050         struct scratch_buffer instead of extend_alloca.
16051
16052 2015-10-17  Florian Weimer  <fweimer@redhat.com>
16053
16054         * sysdeps/unix/sysv/linux/kernel-features.h
16055         (__ASSUME_SOCK_CLOEXEC): Remove.
16056         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
16057         (__have_paccept): Remove unused macro.
16058         * include/unistd.h (__have_sock_cloexec): Remove declaration.
16059         * misc/syslog.c (openlog_internal): Remove fallback code for
16060         !__ASSUME_SOCK_CLOEXEC.
16061         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
16062         missing SOCK_CLOEXEC.
16063         * nscd/connections.c (have_sock_cloexec): Remove definition.
16064         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
16065         * nscd/nscd_helper.c (open_socket): Remove fallback code for
16066         !__ASSUME_SOCK_CLOEXEC.
16067         * resolv/res_send.c (__have_o_nonblock): Remove definition.
16068         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
16069         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
16070         definition.
16071         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
16072         code for !__ASSUME_SOCK_CLOEXEC.
16073
16074 2015-10-17  Florian Weimer  <fweimer@redhat.com>
16075
16076         [BZ #18982]
16077         * manual/stdio.texi (Variable Arguments Output): Add portability
16078         note, explaining that vfprintf clobbers the va_list pointer.
16079
16080 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
16081
16082         * math/libm-test.inc (fabs_test_data): Add more tests.
16083         (fdim_test_data): Likewise.
16084         (fma_test_data): Likewise.
16085         (fmax_test_data): Likewise.
16086         (fmin_test_data): Likewise.
16087         (fmod_test_data): Likewise.
16088
16089 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
16090
16091         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
16092         data.
16093
16094 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
16095
16096         * math/libm-test.inc (ceil_test_data): Add more tests and more
16097         expectations for "inexact".
16098         (floor_test_data): Add more tests.
16099         (round_test_data): Likewise.
16100         (trunc_test_data): Likewise.
16101
16102         * crypt/cert.c (good_bye): Convert to prototype-style function
16103         definition.
16104         (get8): Likewise.
16105         (put8): Likewise.
16106         * crypt/crypt-entry.c (crypt): Likewise.
16107         (__fcrypt): Likewise.
16108         * crypt/crypt_util.c (_ufc_prbits): Likewise.
16109         (_ufc_set_bits): Likewise.
16110         (_ufc_clearmem): Likewise.
16111         (__init_des_r): Likewise.
16112         (shuffle_sb): Likewise.
16113         (shuffle_sb): Likewise.
16114         (_ufc_setup_salt_r): Likewise.
16115         (_ufc_mk_keytab_r): Likewise.
16116         (_ufc_dofinalperm_r): Likewise.
16117         (encrypt): Likewise.
16118         (__setkey_r): Likewise.
16119         (setkey): Likewise.
16120         * crypt/md5.c (md5_init_ctx): Likewise.
16121         (md5_read_ctx): Likewise.
16122         (md5_finish_ctx): Likewise.
16123         (md5_stream): Likewise.
16124         (md5_buffer): Likewise.
16125         (md5_process_bytes): Likewise.
16126         * crypt/sha256.c (__sha256_init_ctx): Likewise.
16127         (__sha256_finish_ctx): Likewise.
16128         (__sha256_process_bytes): Likewise.
16129         * crypt/sha512.c (__sha512_init_ctx): Likewise.
16130         (__sha512_finish_ctx): Likewise.
16131         (__sha512_process_bytes): Likewise.
16132         * ctype/isctype.c (__isctype): Likewise.
16133         * debug/backtrace.c (__backtrace): Likewise.
16134         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
16135         * debug/fgets_chk.c (__fgets_chk): Likewise.
16136         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
16137         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
16138         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
16139         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
16140         * debug/memset_chk.c (__memset_chk): Likewise.
16141         * debug/strcat_chk.c (__strcat_chk): Likewise.
16142         * debug/strncat_chk.c (__strncat_chk): Likewise.
16143         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
16144         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
16145         * dirent/dirfd.c (dirfd): Likewise.
16146         * dirent/getdents.c (__getdirentries): Likewise.
16147         * dirent/getdents64.c (getdirentries64): Likewise.
16148         * dirent/rewinddir.c (__rewinddir): Likewise.
16149         * dirent/seekdir.c (seekdir): Likewise.
16150         * dirent/telldir.c (telldir): Likewise.
16151         * elf/sln.c (makesymlinks): Likewise.
16152         (makesymlink): Likewise.
16153         * gmon/gmon.c (__moncontrol): Likewise.
16154         (__monstartup): Likewise.
16155         (write_hist): Likewise.
16156         (write_call_graph): Likewise.
16157         (write_bb_counts): Likewise.
16158         * grp/setgroups.c (setgroups): Likewise.
16159         * inet/inet_lnaof.c (inet_lnaof): Likewise.
16160         * inet/inet_net.c (inet_network): Likewise.
16161         * inet/inet_netof.c (inet_netof): Likewise.
16162         * inet/rcmd.c (rresvport_af): Likewise.
16163         (rresvport): Likewise.
16164         * io/access.c (__access): Likewise.
16165         * io/chdir.c (__chdir): Likewise.
16166         * io/chmod.c (__chmod): Likewise.
16167         * io/chown.c (__chown): Likewise.
16168         * io/close.c (__close): Likewise.
16169         * io/creat.c (creat): Likewise.
16170         * io/creat64.c (creat64): Likewise.
16171         * io/dup.c (__dup): Likewise.
16172         * io/dup2.c (__dup2): Likewise.
16173         * io/dup3.c (__dup3): Likewise.
16174         * io/euidaccess.c (__euidaccess): Likewise.
16175         * io/faccessat.c (faccessat): Likewise.
16176         * io/fchmod.c (__fchmod): Likewise.
16177         * io/fchmodat.c (fchmodat): Likewise.
16178         * io/fchown.c (__fchown): Likewise.
16179         * io/fchownat.c (fchownat): Likewise.
16180         * io/fcntl.c (__fcntl): Likewise.
16181         * io/flock.c (__flock): Likewise.
16182         * io/fts.c (fts_load): Likewise.
16183         (fts_close): Likewise.
16184         (fts_read): Likewise.
16185         (fts_set): Likewise.
16186         (fts_children): Likewise.
16187         (fts_build): Likewise.
16188         (fts_stat): Likewise.
16189         (fts_sort): Likewise.
16190         (fts_alloc): Likewise.
16191         (fts_lfree): Likewise.
16192         (fts_palloc): Likewise.
16193         (fts_padjust): Likewise.
16194         (fts_maxarglen): Likewise.
16195         (fts_safe_changedir): Likewise.
16196         * io/getwd.c (getwd): Likewise.
16197         * io/isatty.c (__isatty): Likewise.
16198         * io/lchown.c (__lchown): Likewise.
16199         * io/link.c (__link): Likewise.
16200         * io/linkat.c (linkat): Likewise.
16201         * io/lseek.c (__libc_lseek): Likewise.
16202         * io/mkdir.c (__mkdir): Likewise.
16203         * io/mkdirat.c (mkdirat): Likewise.
16204         * io/mkfifo.c (mkfifo): Likewise.
16205         * io/mkfifoat.c (mkfifoat): Likewise.
16206         * io/open.c (__libc_open): Likewise.
16207         * io/open64.c (__libc_open64): Likewise.
16208         * io/readlink.c (__readlink): Likewise.
16209         * io/readlinkat.c (readlinkat): Likewise.
16210         * io/rmdir.c (__rmdir): Likewise.
16211         * io/symlink.c (__symlink): Likewise.
16212         * io/symlinkat.c (symlinkat): Likewise.
16213         * io/ttyname.c (ttyname): Likewise.
16214         * io/ttyname_r.c (__ttyname_r): Likewise.
16215         * io/umask.c (__umask): Likewise.
16216         * io/unlink.c (__unlink): Likewise.
16217         * io/unlinkat.c (unlinkat): Likewise.
16218         * io/utime.c (utime): Likewise.
16219         * libio/clearerr.c (clearerr): Likewise.
16220         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
16221         * libio/feof.c (_IO_feof): Likewise.
16222         * libio/feof_u.c (feof_unlocked): Likewise.
16223         * libio/ferror.c (_IO_ferror): Likewise.
16224         * libio/ferror_u.c (ferror_unlocked): Likewise.
16225         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
16226         * libio/fileno.c (__fileno): Likewise.
16227         * libio/fputc.c (fputc): Likewise.
16228         * libio/fputc_u.c (fputc_unlocked): Likewise.
16229         * libio/fputwc.c (fputwc): Likewise.
16230         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
16231         * libio/freopen.c (freopen): Likewise.
16232         * libio/freopen64.c (freopen64): Likewise.
16233         * libio/fseek.c (fseek): Likewise.
16234         * libio/fseeko.c (fseeko): Likewise.
16235         * libio/fseeko64.c (fseeko64): Likewise.
16236         * libio/ftello.c (__ftello): Likewise.
16237         * libio/ftello64.c (ftello64): Likewise.
16238         * libio/fwide.c (fwide): Likewise.
16239         * libio/genops.c (_IO_un_link): Likewise.
16240         (_IO_link_in): Likewise.
16241         (_IO_least_marker): Likewise.
16242         (_IO_switch_to_main_get_area): Likewise.
16243         (_IO_switch_to_backup_area): Likewise.
16244         (_IO_switch_to_get_mode): Likewise.
16245         (_IO_free_backup_area): Likewise.
16246         (_IO_switch_to_put_mode): Likewise.
16247         (__overflow): Likewise.
16248         (__underflow): Likewise.
16249         (__uflow): Likewise.
16250         (_IO_setb): Likewise.
16251         (_IO_doallocbuf): Likewise.
16252         (_IO_default_underflow): Likewise.
16253         (_IO_default_uflow): Likewise.
16254         (_IO_default_xsputn): Likewise.
16255         (_IO_sgetn): Likewise.
16256         (_IO_default_xsgetn): Likewise.
16257         (_IO_sync): Likewise.
16258         (_IO_default_setbuf): Likewise.
16259         (_IO_default_seekpos): Likewise.
16260         (_IO_default_doallocate): Likewise.
16261         (_IO_init): Likewise.
16262         (_IO_old_init): Likewise.
16263         (_IO_default_sync): Likewise.
16264         (_IO_default_finish): Likewise.
16265         (_IO_default_seekoff): Likewise.
16266         (_IO_sputbackc): Likewise.
16267         (_IO_sungetc): Likewise.
16268         (_IO_set_column): Likewise.
16269         (_IO_set_column): Likewise.
16270         (_IO_adjust_column): Likewise.
16271         (_IO_get_column): Likewise.
16272         (_IO_init_marker): Likewise.
16273         (_IO_remove_marker): Likewise.
16274         (_IO_marker_difference): Likewise.
16275         (_IO_marker_delta): Likewise.
16276         (_IO_seekmark): Likewise.
16277         (_IO_unsave_markers): Likewise.
16278         (_IO_nobackup_pbackfail): Likewise.
16279         (_IO_default_pbackfail): Likewise.
16280         (_IO_default_seek): Likewise.
16281         (_IO_default_stat): Likewise.
16282         (_IO_default_read): Likewise.
16283         (_IO_default_write): Likewise.
16284         (_IO_default_showmanyc): Likewise.
16285         (_IO_default_imbue): Likewise.
16286         (_IO_iter_next): Likewise.
16287         (_IO_iter_file): Likewise.
16288         * libio/getc.c (_IO_getc): Likewise.
16289         * libio/getwc.c (_IO_getwc): Likewise.
16290         * libio/iofclose.c (_IO_new_fclose): Likewise.
16291         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
16292         * libio/iofflush.c (_IO_fflush): Likewise.
16293         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
16294         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
16295         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
16296         * libio/iofgets.c (_IO_fgets): Likewise.
16297         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
16298         * libio/iofgetws.c (fgetws): Likewise.
16299         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
16300         * libio/iofopen64.c (_IO_fopen64): Likewise.
16301         * libio/iofopncook.c (_IO_cookie_read): Likewise.
16302         (_IO_cookie_write): Likewise.
16303         (_IO_cookie_seek): Likewise.
16304         (_IO_cookie_close): Likewise.
16305         (_IO_cookie_seekoff): Likewise.
16306         (_IO_old_cookie_seek): Likewise.
16307         * libio/iofputs.c (_IO_fputs): Likewise.
16308         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
16309         * libio/iofputws.c (fputws): Likewise.
16310         * libio/iofputws_u.c (fputws_unlocked): Likewise.
16311         * libio/iofread.c (_IO_fread): Likewise.
16312         * libio/iofread_u.c (__fread_unlocked): Likewise.
16313         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
16314         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
16315         * libio/ioftell.c (_IO_ftell): Likewise.
16316         * libio/iofwrite.c (_IO_fwrite): Likewise.
16317         * libio/iogetdelim.c (_IO_getdelim): Likewise.
16318         * libio/iogets.c (_IO_gets): Likewise.
16319         * libio/iopadn.c (_IO_padn): Likewise.
16320         * libio/iopopen.c (_IO_new_proc_open): Likewise.
16321         (_IO_new_popen): Likewise.
16322         (_IO_new_proc_close): Likewise.
16323         * libio/ioputs.c (_IO_puts): Likewise.
16324         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
16325         (_IO_seekoff): Likewise.
16326         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
16327         (_IO_seekpos): Likewise.
16328         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
16329         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
16330         * libio/ioungetc.c (_IO_ungetc): Likewise.
16331         * libio/ioungetwc.c (ungetwc): Likewise.
16332         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
16333         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
16334         * libio/iowpadn.c (_IO_wpadn): Likewise.
16335         * libio/libc_fatal.c (__libc_fatal): Likewise.
16336         * libio/memstream.c (__open_memstream): Likewise.
16337         (_IO_mem_sync): Likewise.
16338         (_IO_mem_finish): Likewise.
16339         * libio/oldfileops.c (_IO_old_file_init): Likewise.
16340         (_IO_old_file_close_it): Likewise.
16341         (_IO_old_file_finish): Likewise.
16342         (_IO_old_file_fopen): Likewise.
16343         (_IO_old_file_attach): Likewise.
16344         (_IO_old_file_setbuf): Likewise.
16345         (_IO_old_do_write): Likewise.
16346         (old_do_write): Likewise.
16347         (_IO_old_file_underflow): Likewise.
16348         (_IO_old_file_overflow): Likewise.
16349         (_IO_old_file_sync): Likewise.
16350         (_IO_old_file_seekoff): Likewise.
16351         (_IO_old_file_write): Likewise.
16352         (_IO_old_file_xsputn): Likewise.
16353         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
16354         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
16355         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
16356         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
16357         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
16358         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
16359         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
16360         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
16361         (_IO_old_popen): Likewise.
16362         (_IO_old_proc_close): Likewise.
16363         * libio/oldpclose.c (__old_pclose): Likewise.
16364         * libio/pclose.c (__new_pclose): Likewise.
16365         * libio/peekc.c (_IO_peekc_locked): Likewise.
16366         * libio/putc.c (_IO_putc): Likewise.
16367         * libio/putc_u.c (putc_unlocked): Likewise.
16368         * libio/putchar.c (putchar): Likewise.
16369         * libio/putchar_u.c (putchar_unlocked): Likewise.
16370         * libio/putwc.c (putwc): Likewise.
16371         * libio/putwc_u.c (putwc_unlocked): Likewise.
16372         * libio/putwchar.c (putwchar): Likewise.
16373         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
16374         * libio/rewind.c (rewind): Likewise.
16375         * libio/setbuf.c (setbuf): Likewise.
16376         * libio/setlinebuf.c (setlinebuf): Likewise.
16377         * libio/vasprintf.c (_IO_vasprintf): Likewise.
16378         * libio/vscanf.c (_IO_vscanf): Likewise.
16379         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
16380         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
16381         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
16382         * libio/wgenops.c (_IO_least_wmarker): Likewise.
16383         (_IO_switch_to_main_wget_area): Likewise.
16384         (_IO_switch_to_wbackup_area): Likewise.
16385         (_IO_wsetb): Likewise.
16386         (_IO_wdefault_pbackfail): Likewise.
16387         (_IO_wdefault_finish): Likewise.
16388         (_IO_wdefault_uflow): Likewise.
16389         (__woverflow): Likewise.
16390         (__wuflow): Likewise.
16391         (__wunderflow): Likewise.
16392         (_IO_wdefault_xsputn): Likewise.
16393         (_IO_wdefault_xsgetn): Likewise.
16394         (_IO_wdoallocbuf): Likewise.
16395         (_IO_wdefault_doallocate): Likewise.
16396         (_IO_switch_to_wget_mode): Likewise.
16397         (_IO_free_wbackup_area): Likewise.
16398         (_IO_switch_to_wput_mode): Likewise.
16399         (_IO_sputbackwc): Likewise.
16400         (_IO_sungetwc): Likewise.
16401         (_IO_adjust_wcolumn): Likewise.
16402         (_IO_init_wmarker): Likewise.
16403         (_IO_wmarker_delta): Likewise.
16404         (_IO_seekwmark): Likewise.
16405         (_IO_unsave_wmarkers): Likewise.
16406         * libio/wmemstream.c (open_wmemstream): Likewise.
16407         (_IO_wmem_sync): Likewise.
16408         (_IO_wmem_finish): Likewise.
16409         * locale/nl_langinfo.c (nl_langinfo): Likewise.
16410         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
16411         * locale/programs/simple-hash.c (init_hash): Likewise.
16412         (delete_hash): Likewise.
16413         (insert_entry): Likewise.
16414         (set_entry): Likewise.
16415         (next_prime): Likewise.
16416         (is_prime): Likewise.
16417         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
16418         (xmalloc): Likewise.
16419         (xrealloc): Likewise.
16420         * locale/programs/xstrdup.c (xstrdup): Likewise.
16421         * localedata/collate-test.c (xstrcoll): Likewise.
16422         * localedata/xfrm-test.c (xstrcmp): Likewise.
16423         * login/getlogin_r.c (__getlogin_r): Likewise.
16424         * login/getpt.c (__posix_openpt): Likewise.
16425         * login/login_tty.c (login_tty): Likewise.
16426         * login/setlogin.c (setlogin): Likewise.
16427         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
16428         (mach_msg_destroy_port): Likewise.
16429         (mach_msg_destroy_memory): Likewise.
16430         * malloc/mcheck.c (flood): Likewise.
16431         * misc/acct.c (acct): Likewise.
16432         * misc/brk.c (__brk): Likewise.
16433         * misc/chflags.c (chflags): Likewise.
16434         * misc/chroot.c (chroot): Likewise.
16435         * misc/fchflags.c (fchflags): Likewise.
16436         * misc/fstab.c (getfsspec): Likewise.
16437         (getfsfile): Likewise.
16438         * misc/fsync.c (fsync): Likewise.
16439         * misc/ftruncate.c (__ftruncate): Likewise.
16440         * misc/ftruncate64.c (__ftruncate64): Likewise.
16441         * misc/getdomain.c (getdomainname): Likewise.
16442         (getdomainname): Likewise.
16443         * misc/gethostname.c (__gethostname): Likewise.
16444         * misc/getpass.c (getpass): Likewise.
16445         * misc/getttyent.c (skip): Likewise.
16446         (value): Likewise.
16447         * misc/gtty.c (gtty): Likewise.
16448         * misc/hsearch.c (hsearch): Likewise.
16449         (hcreate): Likewise.
16450         * misc/hsearch_r.c (__hcreate_r): Likewise.
16451         (__hdestroy_r): Likewise.
16452         * misc/ioctl.c (__ioctl): Likewise.
16453         * misc/mkdtemp.c (mkdtemp): Likewise.
16454         * misc/mkostemp.c (mkostemp): Likewise.
16455         * misc/mkostemp64.c (mkostemp64): Likewise.
16456         * misc/mkostemps.c (mkostemps): Likewise.
16457         * misc/mkostemps64.c (mkostemps64): Likewise.
16458         * misc/mkstemp.c (mkstemp): Likewise.
16459         * misc/mkstemp64.c (mkstemp64): Likewise.
16460         * misc/mkstemps.c (mkstemps): Likewise.
16461         * misc/mkstemps64.c (mkstemps64): Likewise.
16462         * misc/mktemp.c (__mktemp): Likewise.
16463         * misc/preadv.c (preadv): Likewise.
16464         * misc/preadv64.c (preadv64): Likewise.
16465         * misc/pwritev.c (pwritev): Likewise.
16466         * misc/pwritev64.c (pwritev64): Likewise.
16467         * misc/readv.c (__readv): Likewise.
16468         * misc/revoke.c (revoke): Likewise.
16469         * misc/setdomain.c (setdomainname): Likewise.
16470         * misc/setegid.c (setegid): Likewise.
16471         * misc/seteuid.c (seteuid): Likewise.
16472         * misc/sethostid.c (sethostid): Likewise.
16473         * misc/sethostname.c (sethostname): Likewise.
16474         * misc/setregid.c (__setregid): Likewise.
16475         * misc/setreuid.c (__setreuid): Likewise.
16476         * misc/sstk.c (sstk): Likewise.
16477         * misc/stty.c (stty): Likewise.
16478         * misc/syscall.c (syscall): Likewise.
16479         * misc/syslog.c (setlogmask): Likewise.
16480         * misc/truncate.c (__truncate): Likewise.
16481         * misc/truncate64.c (truncate64): Likewise.
16482         * misc/ualarm.c (ualarm): Likewise.
16483         * misc/usleep.c (usleep): Likewise.
16484         * misc/ustat.c (ustat): Likewise.
16485         * misc/writev.c (__writev): Likewise.
16486         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
16487         * nptl/old_pthread_cond_broadcast.c
16488         (__pthread_cond_broadcast_2_0): Likewise.
16489         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
16490         Likewise.
16491         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
16492         Likewise.
16493         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
16494         Likewise.
16495         * nptl/pt-raise.c (raise): Likewise.
16496         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
16497         Likewise.
16498         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
16499         * nptl/pthread_barrierattr_destroy.c
16500         (pthread_barrierattr_destroy): Likewise.
16501         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
16502         Likewise.
16503         * nptl/pthread_barrierattr_setpshared.c
16504         (pthread_barrierattr_setpshared): Likewise.
16505         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
16506         Likewise.
16507         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
16508         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
16509         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
16510         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
16511         Likewise.
16512         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
16513         Likewise.
16514         * nptl/pthread_condattr_getpshared.c
16515         (pthread_condattr_getpshared): Likewise.
16516         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
16517         Likewise.
16518         * nptl/pthread_condattr_setpshared.c
16519         (pthread_condattr_setpshared): Likewise.
16520         * nptl/pthread_detach.c (pthread_detach): Likewise.
16521         * nptl/pthread_equal.c (__pthread_equal): Likewise.
16522         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
16523         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
16524         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
16525         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
16526         Likewise.
16527         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
16528         Likewise.
16529         * nptl/pthread_mutex_getprioceiling.c
16530         (pthread_mutex_getprioceiling): Likewise.
16531         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
16532         Likewise.
16533         * nptl/pthread_mutexattr_getprotocol.c
16534         (pthread_mutexattr_getprotocol): Likewise.
16535         * nptl/pthread_mutexattr_getpshared.c
16536         (pthread_mutexattr_getpshared): Likewise.
16537         * nptl/pthread_mutexattr_getrobust.c
16538         (pthread_mutexattr_getrobust): Likewise.
16539         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
16540         Likewise.
16541         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
16542         Likewise.
16543         * nptl/pthread_mutexattr_setprioceiling.c
16544         (pthread_mutexattr_setprioceiling): Likewise.
16545         * nptl/pthread_mutexattr_setprotocol.c
16546         (pthread_mutexattr_setprotocol): Likewise.
16547         * nptl/pthread_mutexattr_setpshared.c
16548         (pthread_mutexattr_setpshared): Likewise.
16549         * nptl/pthread_mutexattr_setrobust.c
16550         (pthread_mutexattr_setrobust): Likewise.
16551         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
16552         Likewise.
16553         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
16554         Likewise.
16555         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
16556         Likewise.
16557         * nptl/pthread_rwlockattr_getkind_np.c
16558         (pthread_rwlockattr_getkind_np): Likewise.
16559         * nptl/pthread_rwlockattr_getpshared.c
16560         (pthread_rwlockattr_getpshared): Likewise.
16561         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
16562         Likewise.
16563         * nptl/pthread_rwlockattr_setkind_np.c
16564         (pthread_rwlockattr_setkind_np): Likewise.
16565         * nptl/pthread_rwlockattr_setpshared.c
16566         (pthread_rwlockattr_setpshared): Likewise.
16567         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
16568         Likewise.
16569         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
16570         Likewise.
16571         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
16572         Likewise.
16573         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
16574         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
16575         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
16576         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
16577         * nptl/sem_close.c (sem_close): Likewise.
16578         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
16579         * nptl/sem_init.c (__old_sem_init): Likewise.
16580         * nptl/sigaction.c (__sigaction): Likewise.
16581         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
16582         * posix/_exit.c (_exit): Likewise.
16583         * posix/alarm.c (alarm): Likewise.
16584         * posix/confstr.c (confstr): Likewise.
16585         * posix/fpathconf.c (__fpathconf): Likewise.
16586         * posix/getgroups.c (__getgroups): Likewise.
16587         * posix/getpgid.c (__getpgid): Likewise.
16588         * posix/group_member.c (__group_member): Likewise.
16589         * posix/pathconf.c (__pathconf): Likewise.
16590         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
16591         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
16592         * posix/setgid.c (__setgid): Likewise.
16593         * posix/setpgid.c (__setpgid): Likewise.
16594         * posix/setuid.c (__setuid): Likewise.
16595         * posix/sleep.c (__sleep): Likewise.
16596         * posix/sysconf.c (__sysconf): Likewise.
16597         * posix/times.c (__times): Likewise.
16598         * posix/uname.c (__uname): Likewise.
16599         * posix/waitid.c (__waitid): Likewise.
16600         * pwd/getpw.c (__getpw): Likewise.
16601         * resolv/base64.c (b64_pton): Likewise.
16602         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
16603         * resolv/gethnamaddr.c (Dprintf): Likewise.
16604         (gethostbyname): Likewise.
16605         (gethostbyname2): Likewise.
16606         (gethostbyaddr): Likewise.
16607         (_sethtent): Likewise.
16608         (_gethtbyname): Likewise.
16609         (_gethtbyname2): Likewise.
16610         (_gethtbyaddr): Likewise.
16611         (map_v4v6_address): Likewise.
16612         (map_v4v6_hostent): Likewise.
16613         (addrsort): Likewise.
16614         (ht_sethostent): Likewise.
16615         (ht_gethostbyname): Likewise.
16616         (ht_gethostbyaddr): Likewise.
16617         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
16618         (inet_net_ntop_ipv4): Likewise.
16619         * resolv/inet_neta.c (inet_neta): Likewise.
16620         * resolv/inet_ntop.c (inet_ntop): Likewise.
16621         (inet_ntop4): Likewise.
16622         (inet_ntop6): Likewise.
16623         * resolv/inet_pton.c (__inet_pton): Likewise.
16624         (inet_pton4): Likewise.
16625         (inet_pton6): Likewise.
16626         * resolv/res_debug.c (loc_aton): Likewise.
16627         (loc_ntoa): Likewise.
16628         * resource/getpriority.c (__getpriority): Likewise.
16629         * resource/getrusage.c (__getrusage): Likewise.
16630         * resource/nice.c (nice): Likewise.
16631         * resource/setpriority.c (__setpriority): Likewise.
16632         * resource/setrlimit64.c (setrlimit64): Likewise.
16633         * resource/vlimit.c (vlimit): Likewise.
16634         * resource/vtimes.c (vtimes): Likewise.
16635         * rt/aio_error.c (aio_error): Likewise.
16636         * rt/aio_return.c (aio_return): Likewise.
16637         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
16638         * signal/kill.c (__kill): Likewise.
16639         * signal/killpg.c (killpg): Likewise.
16640         * signal/raise.c (raise): Likewise.
16641         * signal/sigaction.c (__sigaction): Likewise.
16642         * signal/sigaddset.c (sigaddset): Likewise.
16643         * signal/sigaltstack.c (sigaltstack): Likewise.
16644         * signal/sigandset.c (sigandset): Likewise.
16645         * signal/sigblock.c (__sigblock): Likewise.
16646         * signal/sigdelset.c (sigdelset): Likewise.
16647         * signal/sigempty.c (sigemptyset): Likewise.
16648         * signal/sigfillset.c (sigfillset): Likewise.
16649         * signal/sighold.c (sighold): Likewise.
16650         * signal/sigignore.c (sigignore): Likewise.
16651         * signal/sigintr.c (siginterrupt): Likewise.
16652         * signal/sigisempty.c (sigisemptyset): Likewise.
16653         * signal/sigismem.c (sigismember): Likewise.
16654         * signal/signal.c (signal): Likewise.
16655         * signal/sigorset.c (sigorset): Likewise.
16656         * signal/sigpause.c (__sigpause): Likewise.
16657         * signal/sigpending.c (sigpending): Likewise.
16658         * signal/sigprocmask.c (__sigprocmask): Likewise.
16659         * signal/sigrelse.c (sigrelse): Likewise.
16660         * signal/sigreturn.c (__sigreturn): Likewise.
16661         * signal/sigset.c (sigset): Likewise.
16662         * signal/sigsetmask.c (__sigsetmask): Likewise.
16663         * signal/sigstack.c (sigstack): Likewise.
16664         * signal/sigsuspend.c (__sigsuspend): Likewise.
16665         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
16666         * signal/sysv_signal.c (__sysv_signal): Likewise.
16667         * socket/accept.c (accept): Likewise.
16668         * socket/accept4.c (__libc_accept4): Likewise.
16669         * socket/bind.c (__bind): Likewise.
16670         * socket/connect.c (__connect): Likewise.
16671         * socket/getpeername.c (getpeername): Likewise.
16672         * socket/getsockname.c (__getsockname): Likewise.
16673         * socket/getsockopt.c (getsockopt): Likewise.
16674         * socket/listen.c (__listen): Likewise.
16675         * socket/recv.c (__recv): Likewise.
16676         * socket/recvmsg.c (__recvmsg): Likewise.
16677         * socket/send.c (__send): Likewise.
16678         * socket/sendmsg.c (__sendmsg): Likewise.
16679         * socket/shutdown.c (shutdown): Likewise.
16680         * socket/sockatmark.c (sockatmark): Likewise.
16681         * socket/socket.c (__socket): Likewise.
16682         * stdio-common/ctermid.c (ctermid): Likewise.
16683         * stdio-common/cuserid.c (cuserid): Likewise.
16684         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
16685         * stdio-common/remove.c (remove): Likewise.
16686         * stdio-common/rename.c (rename): Likewise.
16687         * stdio-common/renameat.c (renameat): Likewise.
16688         * stdio-common/tempname.c (__gen_tempname): Likewise.
16689         * stdio-common/xbug.c (InitBuffer): Likewise.
16690         (AppendToBuffer): Likewise.
16691         (ReadFile): Likewise.
16692         * stdlib/a64l.c (a64l): Likewise.
16693         * stdlib/drand48_r.c (drand48_r): Likewise.
16694         * stdlib/getcontext.c (getcontext): Likewise.
16695         * stdlib/getenv.c (getenv): Likewise.
16696         * stdlib/l64a.c (l64a): Likewise.
16697         * stdlib/llabs.c (llabs): Likewise.
16698         * stdlib/lldiv.c (lldiv): Likewise.
16699         * stdlib/lrand48_r.c (lrand48_r): Likewise.
16700         * stdlib/mrand48_r.c (mrand48_r): Likewise.
16701         * stdlib/putenv.c (putenv): Likewise.
16702         * stdlib/random.c (__srandom): Likewise.
16703         (__initstate): Likewise.
16704         (__setstate): Likewise.
16705         * stdlib/random_r.c (__srandom_r): Likewise.
16706         (__setstate_r): Likewise.
16707         (__random_r): Likewise.
16708         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
16709         * stdlib/setcontext.c (setcontext): Likewise.
16710         * stdlib/setenv.c (setenv): Likewise.
16711         (unsetenv): Likewise.
16712         * stdlib/srand48.c (srand48): Likewise.
16713         * stdlib/srand48_r.c (__srand48_r): Likewise.
16714         * stdlib/swapcontext.c (swapcontext): Likewise.
16715         * stdlib/system.c (__libc_system): Likewise.
16716         * stdlib/tst-strtod.c (expand): Likewise.
16717         * stdlib/tst-strtol.c (expand): Likewise.
16718         * stdlib/tst-strtoll.c (expand): Likewise.
16719         * streams/fattach.c (fattach): Likewise.
16720         * streams/fdetach.c (fdetach): Likewise.
16721         * streams/getmsg.c (getmsg): Likewise.
16722         * streams/isastream.c (isastream): Likewise.
16723         * string/ffs.c (__ffs): Likewise.
16724         * string/ffsll.c (ffsll): Likewise.
16725         * string/memcmp.c (memcmp_common_alignment): Likewise.
16726         (memcmp_not_common_alignment): Likewise.
16727         (MEMCMP): Likewise.
16728         * string/memcpy.c (memcpy): Likewise.
16729         * string/memmove.c (MEMMOVE): Likewise.
16730         * string/memset.c (memset): Likewise.
16731         * string/rawmemchr.c (RAWMEMCHR): Likewise.
16732         * string/strchrnul.c (STRCHRNUL): Likewise.
16733         * string/strerror.c (strerror): Likewise.
16734         * string/strndup.c (__strndup): Likewise.
16735         * string/strverscmp.c (__strverscmp): Likewise.
16736         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
16737         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
16738         (clnttcp_freeres): Likewise.
16739         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
16740         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
16741         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
16742         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
16743         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
16744         (xdr_callhdr): Likewise.
16745         * sunrpc/rpcinfo.c (udpping): Likewise.
16746         (tcpping): Likewise.
16747         (pstatus): Likewise.
16748         (pmapdump): Likewise.
16749         (brdcst): Likewise.
16750         (deletereg): Likewise.
16751         (getprognum): Likewise.
16752         (getvers): Likewise.
16753         (get_inet_address): Likewise.
16754         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
16755         * sunrpc/svc_udp.c (svcudp_create): Likewise.
16756         (svcudp_stat): Likewise.
16757         (svcudp_recv): Likewise.
16758         (svcudp_reply): Likewise.
16759         (svcudp_getargs): Likewise.
16760         (svcudp_freeargs): Likewise.
16761         (svcudp_destroy): Likewise.
16762         * sunrpc/xdr.c (xdr_bytes): Likewise.
16763         (xdr_netobj): Likewise.
16764         (xdr_string): Likewise.
16765         (xdr_wrapstring): Likewise.
16766         * sunrpc/xdr_float.c (xdr_float): Likewise.
16767         (xdr_double): Likewise.
16768         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
16769         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
16770         * sysvipc/ftok.c (ftok): Likewise.
16771         * sysvipc/msgctl.c (msgctl): Likewise.
16772         * sysvipc/msgget.c (msgget): Likewise.
16773         * sysvipc/msgrcv.c (msgrcv): Likewise.
16774         * sysvipc/msgsnd.c (msgsnd): Likewise.
16775         * sysvipc/semget.c (semget): Likewise.
16776         * sysvipc/semop.c (semop): Likewise.
16777         * sysvipc/shmat.c (shmat): Likewise.
16778         * sysvipc/shmctl.c (shmctl): Likewise.
16779         * sysvipc/shmdt.c (shmdt): Likewise.
16780         * sysvipc/shmget.c (shmget): Likewise.
16781         * termios/cfmakeraw.c (cfmakeraw): Likewise.
16782         * termios/speed.c (cfgetospeed): Likewise.
16783         (cfgetispeed): Likewise.
16784         (cfsetospeed): Likewise.
16785         (cfsetispeed): Likewise.
16786         * termios/tcflow.c (tcflow): Likewise.
16787         * termios/tcflush.c (tcflush): Likewise.
16788         * termios/tcgetattr.c (__tcgetattr): Likewise.
16789         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
16790         * termios/tcgetsid.c (tcgetsid): Likewise.
16791         * termios/tcsendbrk.c (tcsendbreak): Likewise.
16792         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
16793         * time/adjtime.c (__adjtime): Likewise.
16794         * time/dysize.c (dysize): Likewise.
16795         * time/ftime.c (ftime): Likewise.
16796         * time/getitimer.c (__getitimer): Likewise.
16797         * time/gettimeofday.c (__gettimeofday): Likewise.
16798         * time/gmtime.c (__gmtime_r): Likewise.
16799         (gmtime): Likewise.
16800         * time/localtime.c (__localtime_r): Likewise.
16801         (localtime): Likewise.
16802         * time/offtime.c (__offtime): Likewise.
16803         * time/settimeofday.c (__settimeofday): Likewise.
16804         * time/stime.c (stime): Likewise.
16805         * time/strftime_l.c (tm_diff): Likewise.
16806         (iso_week_days): Likewise.
16807         * time/strptime.c (strptime): Likewise.
16808         * time/time.c (time): Likewise.
16809         * time/timespec_get.c (timespec_get): Likewise.
16810         * time/tzset.c (tzset_internal): Likewise.
16811         (compute_change): Likewise.
16812         (__tz_compute): Likewise.
16813         * wcsmbs/btowc.c (__btowc): Likewise.
16814         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
16815         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
16816         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
16817         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
16818         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
16819         * wcsmbs/wcscat.c (__wcscat): Likewise.
16820         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16821         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
16822         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
16823         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16824         * wcsmbs/wcsdup.c (wcsdup): Likewise.
16825         * wcsmbs/wcslen.c (__wcslen): Likewise.
16826         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
16827         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
16828         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
16829         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
16830         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16831         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
16832         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16833         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16834         * wcsmbs/wcstok.c (wcstok): Likewise.
16835         * wcsmbs/wctob.c (wctob): Likewise.
16836         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
16837         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16838         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
16839         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
16840         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
16841         * wcsmbs/wmemset.c (__wmemset): Likewise.
16842         * wctype/wcfuncs.c (__towlower): Likewise.
16843         (__towupper): Likewise.
16844
16845         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
16846         (lll_unlock_elision): Add adapt_count parameter.
16847
16848 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16849
16850         * sysdeps/nptl/configure.ac: Do not give errors based on the
16851         results of top-level configure tests.
16852         * sysdeps/nptl/configure: Regenerated.
16853
16854         * configure.ac (libc_cv_Bgroup): Remove configure test.
16855         * configure: Regenerated.
16856         * config.make.in (have-Bgroup): Remove variable.
16857
16858         * configure.ac (sizeof_long_double): Remove configure test.
16859         * configure: Regenerated.
16860         * config.make.in (sizeof-long-double): Remove variable.
16861
16862         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
16863         * configure: Regenerated.
16864         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
16865         variable.
16866         (exceptions): Likewise.
16867         * sysdeps/arm/configure: Regenerated.
16868         * config.make.in (exceptions): Remove variable.
16869         * Makeconfig (uses-callbacks): Use -fexceptions instead of
16870         $(exceptions).
16871         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
16872         (CFLAGS-vdprintf_chk.c): Likewise.
16873         (CFLAGS-printf_chk.c): Likewise.
16874         (CFLAGS-fprintf_chk.c): Likewise.
16875         (CFLAGS-vprintf_chk.c): Likewise.
16876         (CFLAGS-vfprintf_chk.c): Likewise.
16877         (CFLAGS-gets_chk.c): Likewise.
16878         (CFLAGS-fgets_chk.c): Likewise.
16879         (CFLAGS-fgets_u_chk.c): Likewise.
16880         (CFLAGS-fread_chk.c): Likewise.
16881         (CFLAGS-fread_u_chk.c): Likewise.
16882         (CFLAGS-wprintf_chk.c): Likewise.
16883         (CFLAGS-fwprintf_chk.c): Likewise.
16884         (CFLAGS-vwprintf_chk.c): Likewise.
16885         (CFLAGS-vfwprintf_chk.c): Likewise.
16886         (CFLAGS-fgetws_chk.c): Likewise.
16887         (CFLAGS-fgetws_u_chk.c): Likewise.
16888         * libio/Makefile (CFLAGS-fileops.c): Likewise.
16889         (CFLAGS-fputc.c): Likewise.
16890         (CFLAGS-fputwc.c): Likewise.
16891         (CFLAGS-freopen64.c): Likewise.
16892         (CFLAGS-freopen.c): Likewise.
16893         (CFLAGS-fseek.c): Likewise.
16894         (CFLAGS-fseeko64.c): Likewise.
16895         (CFLAGS-fseeko.c): Likewise.
16896         (CFLAGS-ftello64.c): Likewise.
16897         (CFLAGS-ftello.c): Likewise.
16898         (CFLAGS-fwide.c): Likewise.
16899         (CFLAGS-genops.c): Likewise.
16900         (CFLAGS-getc.c): Likewise.
16901         (CFLAGS-getchar.c): Likewise.
16902         (CFLAGS-getwc.c): Likewise.
16903         (CFLAGS-getwchar.c): Likewise.
16904         (CFLAGS-iofclose.c): Likewise.
16905         (CFLAGS-iofflush.c): Likewise.
16906         (CFLAGS-iofgetpos64.c): Likewise.
16907         (CFLAGS-iofgetpos.c): Likewise.
16908         (CFLAGS-iofgets.c): Likewise.
16909         (CFLAGS-iofgetws.c): Likewise.
16910         (CFLAGS-iofputs.c): Likewise.
16911         (CFLAGS-iofputws.c): Likewise.
16912         (CFLAGS-iofread.c): Likewise.
16913         (CFLAGS-iofsetpos64.c): Likewise.
16914         (CFLAGS-iofsetpos.c): Likewise.
16915         (CFLAGS-ioftell.c): Likewise.
16916         (CFLAGS-iofwrite.c): Likewise.
16917         (CFLAGS-iogetdelim.c): Likewise.
16918         (CFLAGS-iogetline.c): Likewise.
16919         (CFLAGS-iogets.c): Likewise.
16920         (CFLAGS-iogetwline.c): Likewise.
16921         (CFLAGS-ioputs.c): Likewise.
16922         (CFLAGS-ioseekoff.c): Likewise.
16923         (CFLAGS-ioseekpos.c): Likewise.
16924         (CFLAGS-iosetbuffer.c): Likewise.
16925         (CFLAGS-iosetvbuf.c): Likewise.
16926         (CFLAGS-ioungetc.c): Likewise.
16927         (CFLAGS-ioungetwc.c): Likewise.
16928         (CFLAGS-oldfileops.c): Likewise.
16929         (CFLAGS-oldiofclose.c): Likewise.
16930         (CFLAGS-oldiofgetpos64.c): Likewise.
16931         (CFLAGS-oldiofgetpos.c): Likewise.
16932         (CFLAGS-oldiofsetpos64.c): Likewise.
16933         (CFLAGS-oldiofsetpos.c): Likewise.
16934         (CFLAGS-peekc.c): Likewise.
16935         (CFLAGS-putc.c): Likewise.
16936         (CFLAGS-putchar.c): Likewise.
16937         (CFLAGS-putwc.c): Likewise.
16938         (CFLAGS-putwchar.c): Likewise.
16939         (CFLAGS-rewind.c): Likewise.
16940         (CFLAGS-wfileops.c): Likewise.
16941         (CFLAGS-wgenops.c): Likewise.
16942         (CFLAGS-oldiofopen.c): Likewise.
16943         (CFLAGS-iofopen.c): Likewise.
16944         (CFLAGS-iofopen64.c): Likewise.
16945         (CFLAGS-oldtmpfile.c): Likewise.
16946         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
16947         (CFLAGS-fprintf.c): Likewise.
16948         (CFLAGS-printf.c): Likewise.
16949         (CFLAGS-vfwprintf.c): Likewise.
16950         (CFLAGS-vfscanf.c): Likewise.
16951         (CFLAGS-vfwscanf.c): Likewise.
16952         (CFLAGS-fscanf.c): Likewise.
16953         (CFLAGS-scanf.c): Likewise.
16954         (CFLAGS-isoc99_vfscanf.c): Likewise.
16955         (CFLAGS-isoc99_vscanf.c): Likewise.
16956         (CFLAGS-isoc99_fscanf.c): Likewise.
16957         (CFLAGS-isoc99_scanf.c): Likewise.
16958         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
16959         (CFLAGS-isoc99_fwscanf.c): Likewise.
16960         (CFLAGS-isoc99_vwscanf.c): Likewise.
16961         (CFLAGS-isoc99_vfwscanf.c): Likewise.
16962
16963         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
16964         after mkstemp64.
16965         * login/tst-utmp.c (do_prepare): Likewise.
16966         * rt/tst-aio.c (do_prepare): Likewise.
16967         * rt/tst-aio64.c (do_prepare): Likewise.
16968
16969 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16970
16971         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
16972         (__lll_lock_elision): Remove adapt_count decrement...
16973         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16974         (__lll_trylock_elision): Likewise.
16975         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16976         (__lll_unlock_elision): ... to here. And utilize
16977         new adapt_count parameter.
16978         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16979         (__lll_unlock_elision): Update to include adapt_count
16980         parameter.
16981         (lll_unlock_elision): Pass pointer to adapt_count
16982         variable.
16983
16984 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16985
16986         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
16987         Add elision adapt_count parameter to list of arguments.
16988         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16989         (lll_unlock_elision): Update with new parameter list
16990         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
16991         (lll_unlock_elision): Likewise.
16992         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
16993         (lll_unlock_elision): Likewise.
16994
16995 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16996
16997         [BZ #19122]
16998         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
16999         attribute_hidden.
17000
17001         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
17002         attribute_hidden.
17003         [IS_IN (rtld)] (__strdup): Likewise.
17004         [IS_IN (rtld)] (__strerror_r): Likewise.
17005         [IS_IN (rtld)] (__strsep_g): Likewise.
17006         [IS_IN (rtld)] (memchr): Likewise.
17007         [IS_IN (rtld)] (memcmp): Likewise.
17008         [IS_IN (rtld)] (memcpy): Likewise.
17009         [IS_IN (rtld)] (memmove): Likewise.
17010         [IS_IN (rtld)] (memset): Likewise.
17011         [IS_IN (rtld)] (rawmemchr): Likewise.
17012         [IS_IN (rtld)] (stpcpy): Likewise.
17013         [IS_IN (rtld)] (strchr): Likewise.
17014         [IS_IN (rtld)] (strcmp): Likewise.
17015         [IS_IN (rtld)] (strlen): Likewise.
17016         [IS_IN (rtld)] (strnlen): Likewise.
17017         [IS_IN (rtld)] (strsep): Likewise.
17018
17019         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
17020         attribute_hidden.
17021         [IS_IN (rtld)] (__strtoul_internal): Likewise.
17022
17023         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
17024         attribute_hidden.
17025         [IS_IN (rtld)] (__libc_sigaction): Likewise.
17026
17027         * include/setjmp.h (__longjmp): Add attribute_hidden.
17028         [IS_IN (rtld)] (__sigsetjmp): Likewise.
17029
17030         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
17031         Add attribute_hidden.
17032
17033         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
17034         [IS_IN (rtld)] (__open): Likewise.
17035         [IS_IN (rtld)] (__fcntl): Likewise.
17036
17037         * include/dirent.h (__opendirat): Add attribute_hidden.
17038         (__getdents): Likewise.
17039         (__getdents64): Likewise.
17040         (__alloc_dir): Likewise.
17041         [IS_IN (rtld)] (__closedir): Likewise.
17042         [IS_IN (rtld)] (__fdopendir): Likewise.
17043         [IS_IN (rtld)] (__readdir): Likewise.
17044         [IS_IN (rtld)] (__readdir64): Likewise.
17045         [IS_IN (rtld)] (__rewinddir): Likewise.
17046
17047         * include/dlfcn.h (_dl_catch_error): Moved to ...
17048         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
17049         attribute_hidden.
17050
17051         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
17052         (_itoa_word): Likewise.
17053
17054         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
17055         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
17056         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
17057         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
17058         (_dl_higher_prime_number): Likewise.
17059         (_dl_debug_printf_c): Likewise.
17060         (_dl_signal_cerror): Likewise.
17061         (_dl_receive_error): Likewise.
17062         (_dl_reloc_bad_type): Likewise.
17063         (_dl_resolve_conflicts): Likewise.
17064         (_dl_check_all_versions): Likewise.
17065         (_dl_check_map_versions): Likewise.
17066         (_dl_sort_fini): Likewise.
17067         (_dl_debug_initialize): Likewise.
17068         (_dl_init_paths): Likewise.
17069         (_dl_show_auxv): Likewise.
17070         (_dl_next_ld_env_entry): Likewise.
17071         (_dl_important_hwcaps): Likewise.
17072         (_dl_load_cache_lookup): Likewise.
17073         (_dl_update_slotinfo): Likewise.
17074         (_dl_show_scope): Likewise.
17075
17076         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
17077         attribute_hidden.
17078         (_wordcopy_fwd_dest_aligned): Likewise.
17079         (_wordcopy_bwd_aligned): Likewise.
17080         (_wordcopy_bwd_dest_aligned): Likewise.
17081
17082         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
17083         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
17084         Likewise.
17085         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
17086         Likewise.
17087         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
17088
17089 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
17090
17091         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
17092         GCC 5 requirement.
17093
17094 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
17095
17096         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
17097         test.
17098         * sysdeps/i386/configure: Regenerated.
17099         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
17100         code unconditional.
17101
17102         * configure.ac (libc_cv_asm_previous_directive): Remove configure
17103         test.
17104         (libc_cv_asm_popsection_directive): Likewise.
17105         * configure: Regenerated.
17106         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
17107         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
17108         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
17109         (__make_section_unallocated): Make definition unconditional.
17110         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
17111         Remove conditional definition.
17112         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
17113         (__make_section_unallocated): Likewise.
17114
17115         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
17116         * configure: Regenerated.
17117         * config.make.in (static-libgcc): Remove variable.
17118         * Makerules (build-shlib-helper): Use -static-libgcc instead of
17119         $(static-libgcc).
17120         (build-module-helper): Likewise.
17121
17122         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
17123         * configure: Regenerated.
17124
17125 2015-10-15  Florian Weimer  <fweimer@redhat.com>
17126
17127         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
17128         (struct char_buffer): New type.
17129         (char_buffer_start, char_buffer_size, char_buffer_error)
17130         (char_buffer_rewind, char_buffer_add): New functions.
17131         (ADDW): Remove macro, replaced by the char_buffer_add function.
17132         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
17133         of extend_alloca.  Make control flow more explicit.
17134
17135 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
17136
17137         [BZ #19137]
17138         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
17139         Add -fomit-frame-pointer.
17140         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
17141
17142 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
17143
17144         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
17145         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
17146         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
17147         only if !__GNUC_PREREQ (5,0).
17148         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
17149         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
17150         (INTERNAL_SYSCALL_NCS): Likewise.
17151         (LOADREGS_0): New macro for GCC 5.
17152         (ASMARGS_0): Likewise.
17153         (LOADREGS_1): Likewise.
17154         (ASMARGS_1): Likewise.
17155         (LOADREGS_2): Likewise.
17156         (ASMARGS_2): Likewise.
17157         (LOADREGS_3): Likewise.
17158         (ASMARGS_3): Likewise.
17159         (LOADREGS_4): Likewise.
17160         (ASMARGS_4): Likewise.
17161         (LOADREGS_5): Likewise.
17162         (ASMARGS_5): Likewise.
17163         (LOADREGS_6): Likewise.
17164         (ASMARGS_6): Likewise.
17165
17166 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
17167
17168         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
17169         -fomit-frame-pointer.
17170         (CFLAGS-mmap64.c): Likewise.
17171         (CFLAGS-semtimedop.c): Likewise.
17172         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
17173         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
17174         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
17175         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
17176
17177 2015-10-15  Florian Weimer  <fweimer@redhat.com>
17178
17179         [BZ #18928]
17180         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
17181         _dl_pointer_guard member.
17182         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
17183         initializer.
17184         (security_init): Always set up pointer guard.
17185         (process_envvars): Do not process LD_POINTER_GUARD.
17186
17187 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
17188
17189         [BZ #19134]
17190         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
17191         (.LC2): Likewise.
17192         (.LC3): Likewise.
17193         (__lround): Do not add 0.5 to integer or out-of-range arguments.
17194
17195 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17196
17197         [BZ #19129]
17198         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
17199         r0 and r1.
17200
17201 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
17202
17203         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
17204
17205 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
17206
17207         * include/stap-probe.h: Fix macro definition formatting.
17208
17209 2015-10-14  Florian Weimer  <fweimer@redhat.com>
17210
17211         [BZ #19074]
17212         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
17213         load and store num_ifs.
17214
17215 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
17216
17217         [BZ #18822]
17218         * sysdeps/unix/sysv/linux/sched_getaffinity.c
17219         (__sched_getaffinity_new): Add libc_hidden_proto and
17220         libc_hidden_def.
17221
17222 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
17223
17224         [BZ #19007]
17225         * scripts/localplt.awk: Also allow GOT references.
17226         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
17227         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
17228         with "+ REL R_386_GLOB_DAT".
17229         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
17230         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
17231
17232 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
17233
17234         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
17235         INLINE_SYSCALL_ERROR_RETURN_VALUE.
17236         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
17237         Likewise.
17238         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
17239         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
17240         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
17241         INTERNAL_SYSCALLINTERNAL_SYSCALL and
17242         INLINE_SYSCALL_ERROR_RETURN_VALUE.
17243         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
17244         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
17245         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
17246         Likewise.
17247         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
17248
17249 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
17250
17251         [BZ #19125]
17252         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
17253         <math_private.h> and <stdint.h>.
17254         (__llround): Avoid conversions to and from long long int, and
17255         subtractions, where those might raise spurious exceptions.
17256         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
17257         <math_private.h> and <stdint.h>.
17258         (__llroundf): Avoid conversions to and from long long int, and
17259         subtractions, where those might raise spurious exceptions.
17260
17261 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
17262
17263         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
17264         INLINE_SYSCALL_ERROR_RETURN_VALUE.
17265         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
17266         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
17267         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
17268         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
17269         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
17270         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
17271         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
17272         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
17273         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
17274         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
17275         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
17276         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
17277         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
17278         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
17279         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
17280         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
17281         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
17282         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
17283         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
17284         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
17285         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
17286         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
17287         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
17288         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
17289         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
17290         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
17291         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
17292         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
17293         (__xstat64_conv): Likewise.
17294         (__xstat32_conv): Likewise.
17295
17296 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
17297
17298         * sysdeps/unix/sysv/linux/sysdep.h: New file.
17299         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
17300         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
17301         <sysdeps/unix/sysv/linux/sysdep.h>.
17302         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
17303         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
17304         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
17305         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
17306         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
17307         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
17308         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
17309         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
17310         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
17311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
17312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
17313         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17314         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17315         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17316         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
17317         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17318         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
17319         (sysdep-dl-routines): Add sysdep.
17320         [$(subdir) == nptl] (libpthread-routines): Likewise.
17321         [$(subdir) == rt] (librt-routines): Likewise.
17322         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
17323         PIC when branching to SYSCALL_ERROR_LABEL.
17324         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
17325         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
17326         <sysdeps/unix/sysv/linux/sysdep.h>.
17327         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
17328         (SYSCALL_ERROR_ERRNO): Removed.
17329         (SYSCALL_ERROR_HANDLER): Changed to empty.
17330         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
17331         (__syscall_error): New prototype.
17332         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
17333         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
17334
17335 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
17336
17337         [BZ #19124]
17338         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
17339         (_dl_runtime_resolve_avx512): Make it a hidden alias of
17340         _dl_runtime_resolve_avx.
17341         (_dl_runtime_profile_avx512): Make it a hidden alias of
17342         _dl_runtime_profile_avx.
17343
17344 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
17345
17346         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
17347         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
17348         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
17349         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
17350
17351         [BZ #16422]
17352         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
17353         New configure test.
17354         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
17355         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
17356         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
17357         <math_private.h> and <stdint.h>.
17358         (__llrint): Avoid conversions to long long int where those might
17359         raise spurious exceptions.
17360         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
17361         <math_private.h> and <stdint.h>.
17362         (__llrintf): Avoid conversions to long long int where those might
17363         raise spurious exceptions.
17364
17365 2015-10-12  Andreas Schwab  <schwab@suse.de>
17366
17367         [BZ #18969]
17368         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
17369         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
17370         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
17371         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
17372         $(gen-locales).
17373         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
17374         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
17375         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
17376         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
17377         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
17378         $(gen-locales).
17379         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
17380         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
17381         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
17382         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
17383         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
17384         ($(objpfx)tst-ftell-active-handler.out)
17385         ($(objpfx)tst-ftell-append.out)
17386         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
17387         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
17388         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
17389         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
17390         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
17391         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
17392         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
17393         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
17394         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
17395         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
17396         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
17397         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
17398         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
17399         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
17400         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
17401         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
17402         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
17403         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
17404         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
17405         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
17406         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
17407         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
17408         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
17409         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
17410         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
17411         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
17412         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
17413         $(gen-locales).
17414         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
17415         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
17416         $(gen-locales).
17417         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
17418         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
17419         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
17420         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
17421         $(gen-locales).
17422         * libio/tst_wprintf2.c (main): Use explicit locale.
17423         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
17424
17425 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17426
17427         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
17428         __msg_sig_post.
17429         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
17430
17431 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
17432
17433         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
17434         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17435
17436         * sysdeps/arm/libm-test-ulps: Regenerated.
17437
17438         [BZ #15470]
17439         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
17440
17441         [BZ #16399]
17442         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
17443         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
17444         and <fix-fp-int-convert-overflow.h>.
17445         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
17446         FIX_DBL_LLONG_CONVERT_OVERFLOW.
17447         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
17448         and <fix-fp-int-convert-overflow.h>.
17449         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
17450         FIX_DBL_LLONG_CONVERT_OVERFLOW.
17451         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
17452         <fix-fp-int-convert-overflow.h>.
17453         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
17454         FIX_DBL_LLONG_CONVERT_OVERFLOW.
17455         * sysdeps/ieee754/dbl-64/s_lround.c: Include
17456         <fix-fp-int-convert-overflow.h>.
17457         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
17458         FIX_DBL_LLONG_CONVERT_OVERFLOW.
17459         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
17460         and <fix-fp-int-convert-overflow.h>.
17461         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
17462         FIX_DBL_LLONG_CONVERT_OVERFLOW.
17463         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
17464         <limits.h> and <fix-fp-int-convert-overflow.h>.
17465         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
17466         FIX_DBL_LLONG_CONVERT_OVERFLOW.
17467         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
17468         and <fix-fp-int-convert-overflow.h>.
17469         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
17470         FIX_DBL_LLONG_CONVERT_OVERFLOW.
17471         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
17472         and <fix-fp-int-convert-overflow.h>.
17473         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
17474         FIX_DBL_LLONG_CONVERT_OVERFLOW.
17475         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
17476
17477 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
17478
17479         [BZ #18589]
17480         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
17481         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
17482         $(gen-locales).
17483
17484 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17485             Phil Blundell <pb@pbcl.net>
17486
17487         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
17488         * nptl/tst-cancel26.c: New file.
17489         * nptl/tst-cancel27.c: Likewise.
17490
17491 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
17492
17493         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
17494         __ILP32__ isn't defined.
17495         (lrint): Likewise.
17496         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
17497         (lrintf): Likewise.
17498         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
17499         (lrintl): Likewise.
17500         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
17501         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
17502         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
17503
17504 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17505
17506         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
17507         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
17508
17509         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
17510         file.
17511         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
17512         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
17513
17514 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
17515
17516         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
17517         configure test.
17518         * sysdeps/i386/configure: Regenerated.
17519         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
17520         configure test.
17521         * sysdeps/x86_64/configure: Regenerated.
17522         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
17523         Make code unconditional.
17524
17525         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
17526         test.
17527         * sysdeps/i386/configure: Regenerated.
17528         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
17529         test.
17530         * sysdeps/x86_64/configure: Regenerated.
17531         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
17532         Make code unconditional.
17533         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
17534         Likewise.
17535         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
17536         Likewise.
17537         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
17538         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
17539         code unconditional.
17540         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
17541         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
17542         code unconditional.
17543         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
17544         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
17545         code unconditional.
17546         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
17547         code unconditional.
17548         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
17549         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
17550         code unconditional.
17551         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
17552         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
17553         code unconditional.
17554         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
17555         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
17556         code unconditional.
17557         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
17558         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
17559         code unconditional.
17560         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
17561         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
17562
17563         [BZ #19095]
17564         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
17565         mantissa to long int before shifting left.
17566
17567 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
17568
17569         [BZ #19094]
17570         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
17571         <limits.h>.
17572         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
17573         when result overflows but exception would not result from cast.
17574         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
17575         <limits.h>.
17576         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
17577         when result overflows but exception would not result from cast.
17578         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
17579         <limits.h>.
17580         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
17581         when result overflows but exception would not result from cast.
17582         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
17583         <limits.h>.
17584         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
17585         when result overflows but exception would not result from cast.
17586         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
17587         <limits.h>.
17588         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
17589         when result overflows but exception would not result from cast.
17590         * math/libm-test.inc (lrint_test_data): Add more tests.
17591         (llrint_test_data): Likewise.
17592
17593 2015-10-08  Roland McGrath  <roland@hack.frob.com>
17594
17595         [BZ #18872]
17596         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
17597         Move out from under [$(run-built-tests) = yes] conditional.
17598         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
17599         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
17600
17601 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
17602
17603         [BZ #18589]
17604         * string/Makefile (tests): Add bug-strcoll2.
17605         (LOCALES): Add cs_CZ.UTF-8.
17606         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
17607
17608         [BZ #18589]
17609         * string/bug-strcoll2.c: New file.
17610         * locale/categories.def: Revert commit
17611         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
17612         * locale/langinfo.h: Likewise.
17613         * locale/localeinfo.h: Likewise.
17614         * locale/C-collate.c: Likewise.
17615         * locale/programs/ld-collate.c (collate_output): Likewise.
17616         * string/strcoll_l.c (STRDIFF): Likewise.
17617         (STRCOLL): Likewise.
17618         * wcsmbs/wcscoll_l.c: Likewise.
17619
17620 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
17621
17622         * math/libm-test.inc (lround_test_data): Do not expect the absence
17623         of "inexact" for some tests with non-integer arguments.
17624         (llround_test_data): Likewise.
17625
17626         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
17627         test.
17628         (libc_cv_cc_sse2avx): Likewise.
17629         * sysdeps/i386/configure: Regenerated.
17630         * sysdeps/i386/i686/multiarch/Makefile
17631         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
17632         [$(subdir) = math].
17633         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
17634         code unconditional.
17635         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
17636         Likewise.
17637         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
17638         Likewise.
17639         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
17640         Likewise.
17641         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
17642         test.
17643         (libc_cv_cc_sse2avx): Likewise.
17644         * sysdeps/x86_64/configure: Regenerated.
17645         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
17646         unconditional.
17647         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
17648         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
17649         unconditional.
17650         (_dl_runtime_profile)
17651         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
17652         conditional code.
17653         * sysdeps/x86_64/fpu/multiarch/Makefile
17654         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
17655         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
17656         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17657         * sysdeps/x86_64/fpu/multiarch/e_exp.c
17658         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17659         * sysdeps/x86_64/fpu/multiarch/e_log.c
17660         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17661         * sysdeps/x86_64/fpu/multiarch/s_atan.c
17662         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17663         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
17664         Likewise.
17665         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
17666         Likewise.
17667         * sysdeps/x86_64/fpu/multiarch/s_sin.c
17668         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17669         * sysdeps/x86_64/fpu/multiarch/s_tan.c
17670         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
17671         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
17672         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
17673         (HAVE_SSE2AVX_SUPPORT): Likewise.
17674
17675 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
17676
17677         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
17678         instead of #pragma optimize.
17679
17680 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
17681
17682         [BZ #17195]
17683         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
17684         as is similarly done in systrim and _int_free already.
17685
17686 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17687
17688         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
17689
17690 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
17691
17692         [BZ #19088]
17693         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
17694         <limits.h>.
17695         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
17696         overflows but exception would not result from cast.
17697         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
17698         and <limits.h>.
17699         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
17700         overflows but exception would not result from cast.
17701         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
17702         <limits.h>.
17703         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
17704         overflows but exception would not result from cast.
17705         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
17706         <limits.h>.
17707         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
17708         overflows but exception would not result from cast.
17709         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
17710         <limits.h>.
17711         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
17712         overflows but exception would not result from cast.
17713         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
17714         <limits.h>.
17715         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
17716         overflows but exception would not result from cast.
17717         * math/libm-test.inc (lround_test_data): Add more tests.
17718         (llround_test_data): Likewise.
17719
17720 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
17721
17722         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
17723         (CFLAGS-ialloc.c): Ditto.
17724         (CFLAGS-scheck.c): Ditto.
17725
17726 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
17727
17728         [BZ #19086]
17729         * manual/filesys.texi (Storage Allocation): Fix argument order for
17730         posix_fallocate64.
17731
17732 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
17733
17734         [BZ #19085]
17735         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
17736         exponent below 48 inside case for non-overflowing exponent.
17737         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
17738
17739 2015-10-07  Florian Weimer  <fweimer@redhat.com>
17740
17741         * iconvdata/cp737.h (from_idx): Add const.
17742         * iconvdata/cp775.h (from_idx): Likewise.
17743
17744 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
17745
17746         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
17747         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
17748         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
17749
17750         [BZ #19079]
17751         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
17752         file, conditioned on [!_LP64].
17753         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
17754         [!_LP64] (__lround): Do not define as function or alias.
17755         [!_LP64] (lround): Likewise.
17756         [!_LP64] (__lroundl): Likewise.
17757         [!_LP64] (lroundl): Likewise.
17758         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
17759         macro.
17760         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
17761         Likewise.
17762
17763 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
17764
17765         * math/libm-test.inc (lrint_test_data): Add more tests.
17766         (llrint_test_data): Likewise.
17767         (lround_test_data): Likewise.
17768         (llround_test_data): Likewise.
17769
17770         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
17771         (llrint_test_data): Add tests used for lrint.
17772
17773         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
17774         test.
17775         * sysdeps/i386/configure: Regenerated.
17776         * sysdeps/i386/i686/multiarch/Makefile
17777         [$(config-cflags-sse4) = yes]: Make code unconditional.
17778         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
17779         Likewise.
17780         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
17781         Likewise.
17782         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
17783         test.
17784         * sysdeps/x86_64/configure: Regenerated.
17785         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
17786         Make code unconditional.
17787         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
17788         Likewise.
17789         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
17790         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
17791
17792         * scripts/rpm2dynsym.sh: Remove file.
17793
17794 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17795
17796         * configure.ac (libc_cv_cxx_thread_local): Define.
17797         * configure: Regenerate.
17798         * config.make.in (have-cxx-thread_local): Define.
17799         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
17800         (LDLIBS-tst-thread_local1): Define.
17801         (tests): Add tst-thread_local1.
17802         [have-cxx-thread_local != yes] (tests-unsupported): Add
17803         tst-thread_local1.
17804         * nptl/tst-thread_local1.cc: New file.
17805
17806 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
17807
17808         [BZ #19078]
17809         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
17810         (u_thres): Likewise.
17811         (__expl): Determine whether to call __kernel_standard_l based on
17812         value of result, not argument.
17813
17814         * math/libm-test.inc (scalb_test_data): Add more expectations for
17815         the "inexact" exception.
17816
17817         [BZ #19077]
17818         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
17819         0.0L for argument 1.0L.
17820
17821         [BZ #19076]
17822         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
17823         constant 0.0L when computing infinite result.
17824
17825 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17826
17827         [BZ #10432]
17828         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
17829         malloc_usable_size.
17830
17831 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17832
17833         [BZ #19018]
17834         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
17835         Mangle function pointer before storing it.
17836         (__call_tls_dtors): Demangle function pointer before calling it.
17837
17838 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17839
17840         [BZ #19012]
17841         * iconv/gconv_db.c (gen_steps): Check for additional errors.
17842         Clean up on failure.
17843
17844 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
17845
17846         [BZ #19071]
17847         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
17848         long int variable to store possibly incremented high part of
17849         mantissa.
17850         * math/libm-test.inc (lround_test_data): Add tests used for
17851         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
17852         for tests requiring 64-bit long.  Do not condition tests on
17853         [TEST_FLOAT] unnecessarily.
17854         (llround_test_data): Add tests used for lround.  Add another
17855         expectation for the "inexact" exception.  Do not condition tests
17856         on [TEST_FLOAT] unnecessarily.
17857
17858         [BZ #887]
17859         [BZ #19049]
17860         [BZ #19050]
17861         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
17862         * sysdeps/ieee754/dbl-64/e_log10.c: Include
17863         <fix-int-fp-convert-zero.h>.
17864         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17865         * sysdeps/ieee754/dbl-64/e_log2.c: Include
17866         <fix-int-fp-convert-zero.h>.
17867         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17868         * sysdeps/ieee754/dbl-64/s_erf.c: Include
17869         <fix-int-fp-convert-zero.h>.
17870         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17871         * sysdeps/ieee754/dbl-64/s_logb.c: Include
17872         <fix-int-fp-convert-zero.h>.
17873         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17874         * sysdeps/ieee754/flt-32/e_log10f.c: Include
17875         <fix-int-fp-convert-zero.h>.
17876         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17877         * sysdeps/ieee754/flt-32/e_log2f.c: Include
17878         <fix-int-fp-convert-zero.h>.
17879         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17880         * sysdeps/ieee754/flt-32/s_erff.c: Include
17881         <fix-int-fp-convert-zero.h>.
17882         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17883         * sysdeps/ieee754/flt-32/s_logbf.c: Include
17884         <fix-int-fp-convert-zero.h>.
17885         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17886         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
17887         <fix-int-fp-convert-zero.h>.
17888         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17889         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
17890         <fix-int-fp-convert-zero.h>.
17891         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17892         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
17893         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
17894         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
17895         file.
17896         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
17897
17898 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
17899
17900         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17901
17902 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
17903
17904         [BZ #19059]
17905         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
17906         overflowing computation.
17907         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17908         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17909         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
17910         Likewise.
17911         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
17912         Likewise.
17913         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17914         Likewise.
17915         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17916         Likewise.
17917         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
17918         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17919         Likewise.
17920         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17921         Likewise.
17922         * math/libm-test.inc (nexttoward_test_data): Add more tests.
17923
17924         * nss/rewrite_field.c (__nss_rewrite_field): Use
17925         internal_function.
17926         * nss/valid_field.c (__nss_valid_field): Likewise.
17927         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
17928
17929 2015-10-02  Florian Weimer  <fweimer@redhat.com>
17930
17931         [BZ #18724]
17932         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
17933         (__nss_invalid_field_characters, __nss_valid_field)
17934         (__nss_valid_list_field, __nss_rewrite_field): Declare.
17935         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
17936         tst-field.c: New file.
17937         * nss/Makefile (routines): Add valid_field, rewrite_field.
17938         (tests-static): Define unconditionally.
17939         (tests): Include tests-static.
17940         [build-static-nss] (tests-static): Use append.
17941         [build-static-nss] (tests): Remove modification.
17942         * nss/getent.c (print_group): Call putgrent.  Report error.
17943         (print_gshadow): Call putsgent.  Report error.
17944         (print_passwd): Call putpwent.  Report error.
17945         (print_shadow): Call putspent.  Report error.
17946         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
17947         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
17948         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
17949         name, password, directory, shell fields for valid syntax.  Rewrite
17950         GECOS field to match syntax.
17951         * pwd/Makefile (tests): Add tst-putpwent.
17952         * pwd/tst-putpwent.c: New file.
17953         * grp/putgrent.c (putgrent): Convert to ISO function definition.
17954         Check grName, grpasswd, gr_mem fields for valid syntax.
17955         Change loop variable i to size_t.
17956         * grp/Makefile (tests): Add tst-putgrent.
17957         * grp/tst-putgrent.c: New file.
17958         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
17959         valid syntax.
17960         * shadow/Makefile (tests): Add tst-putspent.
17961         * shadow/tst-putspent.c: New file.
17962         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
17963         sg_mem fields for valid syntax.
17964         * gshadow/Makefile (tests): Add tst-putsgent.
17965         * gshadow/tst-putsgent.c: New file.
17966
17967 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17968
17969         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
17970         assembly instructions.
17971
17972 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17973
17974         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
17975         prefix from operands.
17976
17977 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
17978
17979         [BZ #16347]
17980         [BZ #19046]
17981         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
17982         <libc-internal.h>.
17983         (MAXLGM): Do not use diagnostic control macros.
17984         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
17985         threshold for ldbl-128ibm.
17986         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
17987         instead of multiplying by log then subtracting.
17988         * math/auto-libm-test-in: Add more tests of lgamma.
17989         * math/auto-libm-test-out: Regenerated.
17990
17991         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
17992         (TYPE_HEX_DIG): Likewise.
17993         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
17994         precisions when printing floating-point numbers.
17995         (check_float_internal): Likewise.
17996
17997 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17998
17999         [BZ #16620]
18000         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
18001         of log (10) rounded downward to 48 bits.
18002         (log10_low): Use corresponding low part of log (10).
18003
18004         [BZ #19032]
18005         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
18006         compute result as (x - x) / (x - x) not as 0 / 0.
18007         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
18008         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
18009
18010         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
18011         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
18012         and expm1.
18013         * math/auto-libm-test-out: Regenerated.
18014         * math/libm-test.inc (acos_test_data): Add more tests.
18015         (asin_test_data): Likewise.
18016         (asinh_test_data): Likewise.
18017         (atan_test_data): Likewise.
18018         (atanh_test_data): Likewise.
18019         (atan2_test_data): Likewise.
18020         (cbrt_test_data): Likewise.
18021         (ceil_test_data): Likewise.
18022         (copysign_test_data): Likewise.
18023         (cos_test_data): Likewise.
18024         (cosh_test_data): Likewise.
18025         (erf_test_data): Likewise.
18026         (erfc_test_data): Likewise.
18027         (exp_test_data): Likewise.
18028         (exp10_test_data): Likewise.
18029         (exp2_test_data): Likewise.
18030         (expm1_test_data): Likewise.
18031         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18032
18033 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
18034
18035         [BZ #19006]
18036         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
18037         to ...
18038         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
18039         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
18040         to ...
18041         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
18042         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
18043         to ...
18044         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
18045         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
18046         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
18047         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
18048         to ...
18049         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
18050         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
18051         Moved to ...
18052         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
18053         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
18054         Moved to ...
18055         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
18056         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
18057         to ...
18058         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
18059         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
18060         Moved to ...
18061         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
18062         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
18063         to ...
18064         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
18065         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
18066         Removed.
18067         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
18068         Likewise.
18069         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
18070         Likewise.
18071         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
18072         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
18073         Likewise.
18074         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
18075         Likewise.
18076         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
18077         Likewise.
18078         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
18079         Likewise.
18080         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
18081         Likewise.
18082         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
18083         Likewise.
18084         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
18085         Likewise.
18086         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
18087         Likewise.
18088         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
18089         Likewise.
18090         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
18091         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
18092         Likewise.
18093         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
18094         Likewise.
18095         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
18096         Likewise.
18097         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
18098         Likewise.
18099         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
18100         Likewise.
18101         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
18102         Replace ../i486/pthread_cond_timedwait.S with
18103         ../pthread_cond_timedwait.S.
18104
18105 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
18106
18107         * math/libm-test.inc (acos_test_data): Refine expectations for
18108         errno and "inexact" exceptions.
18109         (acosh_test_data): Likewise.
18110         (asin_test_data): Likewise.
18111         (asinh_test_data): Likewise.
18112         (atan_test_data): Likewise.
18113         (atanh_test_data): Likewise.
18114         (atan2_test_data): Likewise.
18115         (cbrt_test_data): Likewise.
18116         (ceil_test_data): Likewise.
18117         (copysign_test_data): Likewise.
18118         (cosh_test_data): Likewise.
18119         (erf_test_data): Likewise.
18120         (erfc_test_data): Likewise.
18121         (exp_test_data): Likewise.
18122         (exp10_test_data): Likewise.
18123         (exp2_test_data): Likewise.
18124         (expm1_test_data): Likewise.
18125         (fabs_test_data): Likewise.
18126         (floor_test_data): Likewise.
18127         (fma_test_data): Likewise.
18128         (fmax_test_data): Likewise.
18129         (fmin_test_data): Likewise.
18130         (fmod_test_data): Likewise.
18131         (fpclassify_test_data): Likewise.
18132         (frexp_test_data): Likewise.
18133         (hypot_test_data): Likewise.
18134         (ilogb_test_data): Likewise.
18135         (isgreater_test_data): Likewise.
18136         (isgreaterequal_test_data): Likewise.
18137         (isinf_test_data): Likewise.
18138         (isless_test_data): Likewise.
18139         (islessequal_test_data): Likewise.
18140         (islessgreater_test_data): Likewise.
18141         (isnan_test_data): Likewise.
18142         (isnormal_test_data): Likewise.
18143         (issignaling_test_data): Likewise.
18144         (isunordered_test_data): Likewise.
18145         (j0_test_data): Likewise.
18146         (j1_test_data): Likewise.
18147         (jn_test_data): Likewise.
18148         (lgamma_test_data): Likewise.
18149         (lrint_test_data): Likewise.
18150         (llrint_test_data): Likewise.
18151         (log_test_data): Likewise.
18152         (log10_test_data): Likewise.
18153         (log1p_test_data): Likewise.
18154         (log2_test_data): Likewise.
18155         (logb_test_data): Likewise.
18156         (lround_test_data): Likewise.
18157         (llround_test_data): Likewise.
18158         (modf_test_data): Likewise.
18159         (nearbyint_test_data): Likewise.
18160         (nextafter_test_data): Likewise.
18161         (nexttoward_test_data): Likewise.
18162         (pow_test_data): Likewise.
18163         (remainder_test_data): Likewise.
18164         (remquo_test_data): Likewise.
18165         (rint_test_data): Likewise.
18166         (round_test_data): Likewise.
18167         (signbit_test_data): Likewise.
18168         (sinh_test_data): Likewise.
18169         (sqrt_test_data): Likewise.
18170         (tanh_test_data): Likewise.
18171         (tgamma_test_data): Likewise.
18172         (trunc_test_data): Likewise.
18173         (y0_test_data): Likewise.
18174         (y1_test_data): Likewise.
18175         (yn_test_data): Likewise.
18176         (significand_test_data): Likewise.
18177
18178 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
18179
18180         * manual/filesys.texi (Storage Allocation): Document that
18181         posix_fallocate emulation fails when fd is open with O_WRONLY.
18182
18183 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
18184
18185         [BZ #19016]
18186         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
18187         allow more cases with X^2 + Y^2 >= 0.5.
18188         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
18189         normal element in sum instead of special-casing based on values of
18190         arguments.
18191         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
18192         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
18193         -1 as normal element in sum instead of special-casing based on
18194         values of arguments.
18195         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
18196         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
18197         (__x2y2m1): Update comment.
18198         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
18199         as normal element in sum instead of special-casing based on values
18200         of arguments.
18201         * math/s_clog.c (__clog): Handle more cases using log1p without
18202         hypot.
18203         * math/s_clog10.c (__clog10): Likewise.
18204         * math/s_clog10f.c (__clog10f): Likewise.
18205         * math/s_clog10l.c (__clog10l): Likewise.
18206         * math/s_clogf.c (__clogf): Likewise.
18207         * math/s_clogl.c (__clogl): Likewise.
18208         * math/auto-libm-test-in: Add more tests of clog and clog10.
18209         * math/auto-libm-test-out: Regenerated.
18210         * sysdeps/i386/fpu/libm-test-ulps: Update.
18211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18212
18213 2015-09-28  Martin Sebor  <msebor@redhat.com>
18214
18215         [BZ #18969]
18216         * string/Makefile (LOCALES): Define.
18217         (gen-locales.mk): Include.
18218         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
18219         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
18220         * string/tst-strxfrm2.c (do_test): Print the name of the locale
18221         on setlocale failure.
18222
18223 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
18224
18225         [BZ #18985]
18226         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
18227         (__strftime_internal): Likewise.
18228         * time/tst-strftime.c (do_bz18985): New test.
18229         (do_test): Call it.
18230
18231 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
18232
18233         [BZ #18956]
18234         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
18235         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
18236         extracting high part.
18237         * math/auto-libm-test-in: Add another test of pow.
18238         * math/auto-libm-test-out: Regenerated.
18239         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18240
18241 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
18242
18243         [BZ #18825]
18244         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
18245         New macro.
18246         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
18247         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
18248         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
18249         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
18250         DBL_NARROW_EVAL, reloading the PIC register as needed.
18251         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
18252         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
18253         FLT_NARROW_EVAL.  Use separate return path for case when first
18254         argument is NaN.
18255         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
18256         DEFINE_LDBL_MIN.
18257         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
18258         PIC register.
18259         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
18260         math_check_force_underflow_nonneg.
18261         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
18262         underflow for subnormal result.
18263         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
18264         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
18265         math_check_force_underflow_nonneg.
18266         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
18267         math_check_force_underflow.
18268         * sysdeps/x86_64/fpu/x86_64-math-asm.h
18269         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
18270         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
18271         DEFINE_LDBL_MIN.
18272         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
18273         * math/auto-libm-test-in: Add more tests of pow.
18274         * math/auto-libm-test-out: Regenerated.
18275
18276 2015-09-25  Florian Weimer  <fweimer@redhat.com>
18277
18278         * nss/bug17079.c (init_test_items): Add diagnostic for
18279         inconsistent entries.
18280         (test_buffer_size): Skip inconsistent entries.
18281
18282 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
18283
18284         [BZ #13304]
18285         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
18286         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18287         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
18288
18289         [BZ #13304]
18290         * sysdeps/microblaze/s_fma.c: New file.
18291         * sysdeps/microblaze/s_fmaf.c: Likewise.
18292         * sysdeps/microblaze/sfp-machine.h: Likewise.
18293
18294 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
18295
18296         [BZ #17250]
18297         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
18298         member.
18299
18300 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
18301
18302         [BZ #18803]
18303         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
18304         (MO): New macro.
18305         (__ieee754_hypot) [PIC]: Load PIC register.
18306         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
18307         DBL_NARROW_EVAL.
18308         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
18309         math_check_force_underflow_nonneg in case where result might be
18310         tiny.
18311         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
18312         Likewise.
18313         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
18314         Likewise.
18315         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
18316         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
18317         * math/auto-libm-test-in: Add more tests of hypot.
18318         * math/auto-libm-test-out: Regenerated.
18319
18320 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
18321
18322         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
18323
18324 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
18325
18326         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
18327         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
18328         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
18329         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
18330         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
18331         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
18332         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
18333
18334         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
18335         LOAD_PIC_REG.
18336
18337         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
18338         (FLT_CHECK_FORCE_UFLOW): Likewise.
18339         (DBL_CHECK_FORCE_UFLOW): Likewise.
18340         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
18341         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
18342         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
18343         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
18344         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
18345         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
18346         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
18347         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
18348         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
18349         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18350         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
18351         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
18352         (flt_min): Replace with use of DEFINE_FLT_MIN.
18353         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
18354         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
18355         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18356         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
18357         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
18358         (flt_min): Replace with use of DEFINE_FLT_MIN.
18359         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
18360         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
18361         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18362         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
18363         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
18364         (flt_min): Replace with use of DEFINE_FLT_MIN.
18365         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
18366         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
18367         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
18368         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
18369         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
18370         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
18371         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
18372         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
18373         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18374         (__atan): Use DBL_CHECK_FORCE_UFLOW.
18375         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
18376         (flt_min): Replace with use of DEFINE_FLT_MIN.
18377         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
18378         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
18379         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18380         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
18381         main computation.
18382         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
18383         (flt_min): Replace with use of DEFINE_FLT_MIN.
18384         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
18385         main computation.
18386         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
18387         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18388         (MO): New macro.
18389         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
18390         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
18391         (flt_min): Replace with use of DEFINE_FLT_MIN.
18392         (MO): New macro.
18393         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
18394         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
18395         (__log1pl): Use MO.
18396
18397         [BZ #19003]
18398         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
18399         $(config-cflags-nofma).
18400
18401 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18402
18403         * sysdeps/aarch64/libm-test-ulps: Regenerated.
18404
18405 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
18406
18407         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
18408         (TWO127): Likewise.
18409
18410         * sysdeps/generic/math_private.h (fabs_tg): New macro.
18411         (min_of_type): Likewise.
18412         (math_check_force_underflow): Likewise.
18413         (math_check_force_underflow_nonneg): Likewise.
18414         (math_check_force_underflow_complex): Likewise.
18415         * math/e_exp2l.c (__ieee754_exp2l): Use
18416         math_check_force_underflow_nonneg.
18417         * math/k_casinh.c (__kernel_casinh): Likewise.
18418         * math/k_casinhf.c (__kernel_casinhf): Likewise.
18419         * math/k_casinhl.c (__kernel_casinhl): Likewise.
18420         * math/s_catan.c (__catan): Use
18421         math_check_force_underflow_complex.
18422         * math/s_catanf.c (__catanf): Likewise.
18423         * math/s_catanh.c (__catanh): Likewise.
18424         * math/s_catanhf.c (__catanhf): Likewise.
18425         * math/s_catanhl.c (__catanhl): Likewise.
18426         * math/s_catanl.c (__catanl): Likewise.
18427         * math/s_ccosh.c (__ccosh): Likewise.
18428         * math/s_ccoshf.c (__ccoshf): Likewise.
18429         * math/s_ccoshl.c (__ccoshl): Likewise.
18430         * math/s_cexp.c (__cexp): Likewise.
18431         * math/s_cexpf.c (__cexpf): Likewise.
18432         * math/s_cexpl.c (__cexpl): Likewise.
18433         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
18434         * math/s_clog10.c (__clog10): Likewise.
18435         * math/s_clog10f.c (__clog10f): Likewise.
18436         * math/s_clog10l.c (__clog10l): Likewise.
18437         * math/s_clogf.c (__clogf): Likewise.
18438         * math/s_clogl.c (__clogl): Likewise.
18439         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
18440         * math/s_csinf.c (__csinf): Likewise.
18441         * math/s_csinh.c (__csinh): Likewise.
18442         * math/s_csinhf.c (__csinhf): Likewise.
18443         * math/s_csinhl.c (__csinhl): Likewise.
18444         * math/s_csinl.c (__csinl): Likewise.
18445         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
18446         * math/s_csqrtf.c (__csqrtf): Likewise.
18447         * math/s_csqrtl.c (__csqrtl): Likewise.
18448         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
18449         * math/s_ctanf.c (__ctanf): Likewise.
18450         * math/s_ctanh.c (__ctanh): Likewise.
18451         * math/s_ctanhf.c (__ctanhf): Likewise.
18452         * math/s_ctanhl.c (__ctanhl): Likewise.
18453         * math/s_ctanl.c (__ctanl): Likewise.
18454         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
18455         instead of volatile.
18456         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
18457         math_check_force_underflow.
18458         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
18459         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
18460         volatile when forcing underflow.
18461         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
18462         math_check_force_underflow_nonneg.
18463         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
18464         Likewise.
18465         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
18466         math_check_force_underflow.
18467         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
18468         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
18469         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
18470         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
18471         math_check_force_underflow_nonneg.
18472         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
18473         math_check_force_underflow.
18474         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
18475         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
18476         instead of volatile.
18477         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
18478         math_check_force_underflow.
18479         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
18480         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18481         math_check_force_underflow_nonneg.
18482         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
18483         math_check_force_underflow.
18484         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
18485         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
18486         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
18487         math_check_force_underflow_nonneg.
18488         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
18489         Likewise.
18490         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
18491         math_check_force_underflow.
18492         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
18493         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
18494         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
18495         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
18496         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
18497         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
18498         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
18499         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
18500         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
18501         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
18502         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
18503         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
18504         Likewise.
18505         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
18506         math_check_force_underflow_nonneg.
18507         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
18508         Likewise.
18509         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
18510         math_check_force_underflow.
18511         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
18512         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
18513         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
18514         Likewise.
18515         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
18516         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
18517         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
18518         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
18519         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
18520         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
18521         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
18522         instead of volatile.
18523         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
18524         math_check_force_underflow.
18525         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
18526         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
18527         math_check_force_underflow.
18528         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
18529         Likewise.
18530         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
18531         Use math_check_force_underflow_nonneg.
18532         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
18533         math_check_force_underflow.
18534         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
18535         Likewise.
18536         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
18537         Likewise.
18538         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
18539         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
18540         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
18541         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
18542         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
18543         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
18544         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
18545         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
18546         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
18547         math_check_force_underflow_nonneg.
18548         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
18549         math_check_force_underflow.
18550         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
18551         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
18552         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
18553         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
18554         math_check_force_underflow_nonneg.
18555         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
18556         math_check_force_underflow.
18557         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
18558         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
18559         instead of volatile.
18560         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
18561         math_check_force_underflow.
18562
18563         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
18564         * stdlib/strtod_l.c: Include <math_private.h>.
18565         (overflow_value): Use math_narrow_eval.
18566         (underflow_value): Likewise.
18567         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
18568         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
18569         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
18570         (__ieee754_gamma_r): Likewise.
18571         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
18572         Likewise.
18573         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
18574         Likewise.
18575         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
18576         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
18577         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
18578         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
18579         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
18580         (__ieee754_gammaf_r): Likewise.
18581         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
18582         Likewise.
18583         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
18584         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
18585         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
18586         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
18587         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
18588         volatile.
18589         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
18590         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
18591         math_narrow_eval.
18592         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
18593         Likewise.
18594         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
18595         Likewise.
18596         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
18597         Likewise.
18598         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
18599         volatile.
18600         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
18601         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
18602         math_narrow_eval.
18603         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
18604         Likewise.
18605         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
18606         Likewise.
18607
18608 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
18609
18610         * nptl/Versions: Remove ignored symbols.
18611
18612 2015-09-22  Florian Weimer  <fweimer@redhat.com>
18613
18614         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
18615         * nss/Makefile (tests): Update.
18616
18617 2015-09-22  Florian Weimer  <fweimer@redhat.com>
18618
18619         * nss/bug18287.c: New file.
18620         * nss/Makefile (tests): Add bug18287.
18621
18622 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18623
18624         * mach/Versions (__mach_host_self_): Add symbol.
18625
18626 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18627
18628         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
18629         vm_page_size.
18630
18631 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18632
18633         Really fix sysdeps/i386/fpu/s_scalbn.S build
18634
18635         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
18636         (libc: GLIBC_2_22): Remove unused version set.
18637
18638 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
18639
18640         * config.make.in (enable-timezone-tools): New variable.
18641         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
18642         (enable_timezone_tools): Export to generated files.
18643         * configure: Regenerate.
18644         * INSTALL: Regenerate.
18645         * manual/install.texi (--disable-timezone-tools): Document new flag.
18646         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
18647         ifeq ($(enable-timezone-tools),yes) check.
18648
18649 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
18650
18651         * timezone/Makefile: Revert previous change.
18652
18653         [BZ #18980]
18654         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
18655         (DEFINE_DBL_MIN): Likewise.
18656         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
18657         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
18658         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
18659         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
18660         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
18661         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18662         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
18663         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
18664         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
18665         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18666         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
18667         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
18668         (flt_min): Replace with use of DEFINE_FLT_MIN.
18669         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
18670         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
18671         (dbl_min): Replace with use of DEFINE_DBL_MIN.
18672         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
18673         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
18674         (flt_min): Replace with use of DEFINE_FLT_MIN.
18675         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
18676         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
18677         (flt_min): Replace with use of DEFINE_FLT_MIN.
18678         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
18679         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
18680         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
18681         (__ieee754_hypot): Use DBL_NARROW_EVAL.
18682         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
18683         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
18684         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
18685         (__ieee754_pow): Use DBL_NARROW_EVAL.
18686         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
18687         (__ieee754_powf): Use FLT_NARROW_EVAL.
18688         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
18689         (__ieee754_expf_sse2): Convert double-precision result to single
18690         precision.
18691         * sysdeps/i386/fpu/libm-test-ulps: Update.
18692
18693 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18694
18695         * timezone/Makefile: Ignore unused variable errors due to private.h
18696         (time_t_min) and (time_t_max).
18697         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
18698         Likewise.
18699
18700 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
18701
18702         [BZ #18981]
18703         * sysdeps/i386/fpu/i386-math-asm.h: New file.
18704         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
18705         (__ieee754_scalb): Use DBL_NARROW_EVAL.
18706         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
18707         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
18708         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
18709         (__scalbn): Use DBL_NARROW_EVAL.
18710         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
18711         (__scalbnf): Use FLT_NARROW_EVAL.
18712
18713 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18714
18715         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
18716         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
18717         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
18718         * stdio-common/printf_fp.c (___printf_fp):
18719         Use signbit to get the sign. Use isinf macro to allow inlining.
18720         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
18721         * stdio-common/printf_size.c (__printf_size): Likewise.
18722
18723 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
18724
18725         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
18726
18727 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
18728
18729         [BZ #18980]
18730         * sysdeps/generic/math_private.h: Include <float.h>.
18731         (math_narrow_eval): New macro.
18732         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
18733         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
18734         math_narrow_eval on overflowing return value.
18735         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
18736         Likewise.
18737         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
18738         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
18739         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
18740         Likewise.
18741         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
18742
18743 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18744
18745         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
18746         * math/Makefile: Remove isinf_ns.c.
18747         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
18748         * math/multc3.c (__multc3): Likewise.
18749         * math/s_casin.c (__casin): Likewise.
18750         * math/s_casinf.c (__casinf): Likewise.
18751         * math/s_casinl.c (__casinl): Likewise.
18752         * math/s_cproj.c (__cproj): Likewise.
18753         * math/s_cprojf.c (__cprojf): Likewise.
18754         * math/s_cprojl.c (__cprofl): Likewise.
18755         * math/s_ctan.c (__ctan): Likewise.
18756         * math/s_ctanf.c (__ctanf): Likewise.
18757         * math/s_ctanh.c (__ctanh): Likewise.
18758         * math/s_ctanhf.c (__ctanhf): Likewise.
18759         * math/s_ctanhl.c (__ctanhl): Likewise.
18760         * math/s_ctanl.c (__ctanl): Likewise.
18761         * math/w_fmod.c (__fmod): Likewise.
18762         * math/w_fmodf.c (__fmodf): Likewise.
18763         * math/w_fmodl.c (_fmodl): Likewise.
18764         * math/w_remainder.c (__remainder): Likewise.
18765         * math/w_remainderf.c (__remainderf): Likewise.
18766         * math/w_remainderl.c (__remainderl): Likewise.
18767         * math/w_scalb.c (__scalb): Likewise.
18768         * math/w_scalbf.c (__scalbf): Likewise.
18769         * math/w_scalbl.c (__scalbl): Likewise.
18770         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
18771         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
18772         with isinf.
18773         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
18774         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
18775         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
18776         __isinf_nsf with isinf.
18777         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
18778         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
18779         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
18780         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
18781         with isinf.
18782         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
18783         __isinf_nsl with isinf.
18784         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
18785         with isinf.
18786         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
18787         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
18788         __isinf_nsl with isinf.
18789         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
18790         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
18791         with isinf.
18792
18793 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18794
18795         * resolv/base64.c (rcsid): Remove unused static.
18796         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
18797         static.  (tqpi1): Likewise.
18798         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
18799         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
18800         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
18801         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
18802         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
18803         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
18804         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
18805         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
18806         Likewise.
18807
18808 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
18809
18810         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
18811         <nptl/pthreadP.h>.
18812         (_longjmp_unwind): Use __libc_ptf_call.
18813         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
18814
18815 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
18816
18817         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
18818         * sysdeps/arm/__longjmp.S: Likewise.
18819
18820 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18821
18822         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
18823         Use __builtin_signbit.
18824         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
18825         Use __builtin_signbitf.
18826         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
18827         Use __builtin_signbitl.
18828         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
18829         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
18830
18831 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18832
18833         [BZ #15367]
18834         [BZ #17441]
18835
18836         * math/Makefile: Build test-snan.c with -fsignaling-nans.
18837         * math/math.h (fpclassify): Use __builtin_fpclassify when
18838         available.  (signbit): Use __builtin_signbit(f/l).
18839         (isfinite): Use__builtin_isfinite.  (isnormal): Use
18840         __builtin_isnormal.  (isnan): Use __builtin_isnan.
18841         (isinf): Use __builtin_isinf_sign.
18842
18843 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18844
18845         * benchtests/Makefile: Add bench-math-inlines, link with libm.
18846         * benchtests/bench-math-inlines.c: New benchmark.
18847         * benchtests/bench-util.h: New file.
18848         * benchtests/bench-util.c: New file.
18849         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
18850
18851 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
18852
18853         * elf/tst-dlmopen1.c: Define TEST_SO.
18854         (do_test): Use TEST_SO.
18855
18856         * elf/dl-load.c: Include libc-internal.h.
18857         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
18858
18859 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18860
18861         [BZ #17887]
18862         * time/strptime_l.c (__strptime_internal): Make %z accept
18863         [+-]HH:MM time zones.
18864
18865 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18866
18867         [BZ #17886]
18868         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
18869         valid time zone.
18870
18871 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
18872
18873         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
18874         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
18875         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18876         (__ASSUME_FDATASYNC): Delete.
18877
18878 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18879
18880         * conform/linknamespace.pl: Require weak undefined symbols to be
18881         in the standard namespace.
18882         (%strong_syms): Rename to %seen_syms.
18883         (%strong_seen): Rename to %seen_where.
18884
18885 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
18886
18887         [BZ #18970]
18888         * misc/error.c (error): Replace pthread_setcancelstate with
18889         __pthread_setcancelstate.
18890         (error_at_line): Likewise.
18891         * posix/wordexp.c (parse_comm): Likewise.
18892         * stdlib/fmtmsg.c (fmtmsg): Likewise.
18893         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
18894         (__pthread_setcancelstate): This.
18895         (pthread_setcancelstate): Add an alias.
18896         * nptl/nptl-init.c (pthread_functions): Replace
18897         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
18898         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
18899         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
18900         hidden_proto.
18901         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
18902         it with hidden_def.
18903         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
18904         (pthread_setcancelstate): Renamed to ...
18905         (__pthread_setcancelstate): This.
18906         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
18907         __libc_ptf_call with __pthread_setcancelstate.
18908
18909 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18910             Andreas Schwab  <schwab@suse.de>
18911
18912         [BZ #17118]
18913         * math/s_ctan.c (__ctan): Determine sign of zero real part of
18914         result when imaginary part of argument is infinite using sine and
18915         cosine.
18916         * math/s_ctanf.c (__ctanf): Likewise.
18917         * math/s_ctanl.c (__ctanl): Likewise.
18918         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
18919         of result when real part of argument is infinite using sine and
18920         cosine.
18921         * math/s_ctanhf.c (__ctanhf): Likewise.
18922         * math/s_ctanhl.c (__ctanhl): Likewise.
18923         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
18924         (ctanh_test_data): Add more tests of ctanh.
18925
18926 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18927
18928         [BZ #15384]
18929         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
18930         bit-mask as in subtraction.
18931         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
18932         Likewise.
18933         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
18934         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
18935         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
18936
18937         [BZ #18951]
18938         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
18939         underflow exception for small results.
18940         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
18941         Likewise.
18942         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
18943         Likewise.
18944         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
18945         Likewise.
18946         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
18947         Likewise.
18948         * math/auto-libm-test-in: Add more tests of tgamma.
18949         * math/auto-libm-test-out: Regenerated.
18950
18951 2015-09-17  Andreas Schwab  <schwab@suse.de>
18952
18953         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
18954
18955 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
18956
18957         [BZ #18977]
18958         * math/bits/mathcalls.h
18959         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
18960         not declare.
18961         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
18962         Likewise.
18963         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
18964         Likewise.
18965         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
18966         Likewise.
18967         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
18968         Likewise.
18969         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
18970         Likewise.
18971         * conform/data/math.h-data
18972         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
18973         function.
18974         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
18975         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
18976         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
18977         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
18978         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
18979         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
18980         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
18981         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
18982         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
18983         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
18984         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
18985
18986         [BZ #6803]
18987         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
18988         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
18989         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
18990         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
18991         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
18992         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
18993         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
18994         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
18995         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18996         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
18997         Likewise.
18998         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18999         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
19000         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
19001         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
19002         long_double_symbol calls.
19003         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
19004         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
19005         strong alias of __ldexpl.
19006         (scalbnl): Define using long_double_symbol.
19007         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
19008         Remove alias.
19009         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
19010         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
19011         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
19012         (scalbln_test_data): Add more errno expectations.
19013
19014 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
19015
19016         Cache the host port like we cache the task port.  This way we do not
19017         need to call the kernel just to get the port.  Furthermore, we no
19018         longer increase the reference count on every invocation of
19019         `mach_host_self'.
19020
19021         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
19022         Protect declarations against the macro expansion.
19023         * mach/mach_init.c (__mach_host_self_): New variable.
19024         (mach_init): Initialize `__mach_host_self_'.
19025         * mach/mach_init.h (__mach_host_self_): New declaration.
19026         (__mach_host_self, mach_host_self): New macros.
19027         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
19028         Release reference.
19029
19030 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
19031
19032         [BZ #4404]
19033         * po/de.po: Update from Translation Project.
19034
19035         [BZ #16415]
19036         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
19037         (__expm1l): Remove code to handle positive infinity and overflow.
19038         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
19039         variable.
19040         (__expm1l): Remove code to handle positive infinity and overflow.
19041
19042 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19043             Paul Pluzhnikov  <ppluzhnikov@google.com>
19044
19045         [BZ #18872]
19046         * stdio-common/Makefile (tst-printf-bz18872): New test.
19047         (tst-printf-bz18872-mem.out): Likewise.
19048         * stdio-common/tst-printf-bz18872.sh: Generate new test.
19049         * stdio-common/vfprintf.c: Fix memory leaks.
19050
19051 2015-09-16  Andreas Schwab  <schwab@suse.de>
19052
19053         [BZ #17244]
19054         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
19055         Remove extra va_start/va_end calls.
19056
19057         [BZ #17243]
19058         * posix/execl.c (execl): Add missing va_end.
19059         * posix/execle.c (execle): Likewise.
19060         * posix/execlp.c (execlp): Likewise.
19061
19062 2015-09-15  Roland McGrath  <roland@hack.frob.com>
19063
19064         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
19065         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
19066
19067 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
19068
19069         [BZ #18967]
19070         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
19071         undefine around includes of <bits/mathcalls.h>.
19072         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
19073         not declare function.
19074         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
19075         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
19076         (scalb): Likewise.
19077         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
19078         not define macro.
19079         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
19080         variable.
19081         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
19082         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
19083         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
19084
19085         [BZ #18857]
19086         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
19087         return non-finite argument without doing ordered comparisons on
19088         it.
19089
19090         [BZ #16296]
19091         * math/fenv.h (fegetround): Use __attribute_pure__.
19092         * include/fenv.h (__fegetround): Likewise.
19093
19094         [BZ #18595]
19095         * math/s_ctan.c (__ctan): Force underflow exception for results
19096         whose real or imaginary part has small absolute value.
19097         * math/s_ctanf.c (__ctanf): Likewise.
19098         * math/s_ctanh.c (__ctanh): Likewise.
19099         * math/s_ctanhf.c (__ctanhf): Likewise.
19100         * math/s_ctanhl.c (__ctanhl): Likewise.
19101         * math/s_ctanl.c (__ctanl): Likewise.
19102         * math/auto-libm-test-in: Do not allow missing underflow for ctan
19103         and ctanh.  Add more tests of ctan and ctanh.
19104
19105         [BZ #15918]
19106         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
19107         handling of cases where one argument is an infinity.
19108
19109         [BZ #18875]
19110         [BZ #18966]
19111         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
19112         (MO): New macro.
19113         (__ieee754_exp10): For small results, force underflow exception
19114         and remove excess range and precision from return value.
19115         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
19116         (MO): New macro.
19117         (__ieee754_exp10f): For small results, force underflow exception
19118         and remove excess range and precision from return value.
19119         * math/auto-libm-test-in: Add more tests of exp10.
19120         * math/auto-libm-test-out: Regenerated.
19121
19122 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
19123
19124         [BZ #18875]
19125         [BZ #18961]
19126         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
19127         (MO): New macro.
19128         (__ieee754_exp): For small results, force underflow exception and
19129         remove excess range and precision from return value.
19130         (__exp_finite): Likewise.
19131         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
19132         (MO): New macro.
19133         (__ieee754_expf): For small results, force underflow exception and
19134         remove excess range and precision from return value.
19135         (__expf_finite): Likewise.
19136         * math/auto-libm-test-in: Add more tests of exp.
19137         * math/auto-libm-test-out: Regenerated.
19138
19139         [BZ #16521]
19140         [BZ #18875]
19141         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
19142         small results.
19143         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
19144         (MO): New macro.
19145         (__ieee754_exp2): For small results, force underflow exception and
19146         remove excess range and precision from return value.
19147         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
19148         (MO): New macro.
19149         (__ieee754_exp2f): For small results, force underflow exception
19150         and remove excess range and precision from return value.
19151         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
19152         (MO): New macro.
19153         (__ieee754_exp2l): Force underflow exception for small results.
19154         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
19155         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
19156         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
19157         (MO): New macro.
19158         (__ieee754_exp2l): Force underflow exception for small results.
19159         * math/auto-libm-test-in: Add more tests or exp2.
19160         * math/auto-libm-test-out: Regenerated.
19161
19162 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
19163
19164         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
19165
19166         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
19167         /dev/null.
19168
19169 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19170
19171         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
19172         io fs process)): Drop spurious backslash.
19173
19174 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
19175
19176         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
19177         Use sysinfo system call instead of parsing /proc/meminfo.
19178         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
19179         Likewise.
19180
19181 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
19182
19183         [BZ #16985]
19184         * programs/localedef.c (main): Display argv[remaining] when
19185         output_path is NULL.
19186
19187 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
19188
19189         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
19190         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
19191         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
19192         tanh.
19193         * math/auto-libm-test-out: Regenerated.
19194         * sysdeps/i386/fpu/libm-test-ulps: Update.
19195         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
19196         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19198
19199 2015-09-11  Roland McGrath  <roland@hack.frob.com>
19200
19201         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
19202         Use 'override' keyword to freeze the value here, preventing
19203         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
19204
19205 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
19206
19207         [BZ #14912]
19208         * sysdeps/aarch64/bits/atomic.h: Move to ...
19209         * sysdeps/aarch64/atomic-machine.h: ...here.
19210         (_AARCH64_BITS_ATOMIC_H): Rename macro to
19211         _AARCH64_ATOMIC_MACHINE_H.
19212         * sysdeps/alpha/bits/atomic.h: Move to ...
19213         * sysdeps/alpha/atomic-machine.h: ...here.
19214         * sysdeps/arm/bits/atomic.h: Move to ...
19215         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
19216         * bits/atomic.h: Move to ...
19217         * sysdeps/generic/atomic-machine.h: ...here.
19218         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
19219         * sysdeps/i386/bits/atomic.h: Move to ...
19220         * sysdeps/i386/atomic-machine.h: ...here.
19221         * sysdeps/ia64/bits/atomic.h: Move to ...
19222         * sysdeps/ia64/atomic-machine.h: ...here.
19223         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
19224         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
19225         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
19226         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
19227         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
19228         * sysdeps/microblaze/bits/atomic.h: Move to ...
19229         * sysdeps/microblaze/atomic-machine.h: ...here.
19230         * sysdeps/mips/bits/atomic.h: Move to ...
19231         * sysdeps/mips/atomic-machine.h: ...here.
19232         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
19233         * sysdeps/powerpc/bits/atomic.h: Move to ...
19234         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
19235         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
19236         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
19237         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
19238         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
19239         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
19240         <atomic-machine.h> instead of <bits/atomic.h>.
19241         * sysdeps/s390/bits/atomic.h: Move to ...
19242         * sysdeps/s390/atomic-machine.h: ...here.
19243         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
19244         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
19245         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
19246         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
19247         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
19248         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
19249         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
19250         * sysdeps/tile/bits/atomic.h: Move to ...
19251         * sysdeps/tile/atomic-machine.h: ...here.
19252         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
19253         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
19254         <sysdeps/tile/atomic-machine.h> instead of
19255         <sysdeps/tile/bits/atomic.h>.
19256         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
19257         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
19258         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
19259         <sysdeps/tile/atomic-machine.h> instead of
19260         <sysdeps/tile/bits/atomic.h>.
19261         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
19262         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
19263         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
19264         <sysdeps/arm/atomic-machine.h> instead of
19265         <sysdeps/arm/bits/atomic.h>.
19266         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
19267         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
19268         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
19269         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
19270         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
19271         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
19272         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
19273         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
19274         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
19275         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
19276         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
19277         * sysdeps/x86_64/bits/atomic.h: Move to ...
19278         * sysdeps/x86_64/atomic-machine.h: ...here.
19279         * include/atomic.h: Include <atomic-machine.h> instead of
19280         <bits/atomic.h>.
19281
19282         * sysdeps/mips/mips32/libm-test-ulps: Update.
19283         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19284
19285         [BZ #18952]
19286         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
19287         not convert non-integer negative arguments to int to determine the
19288         value of signgam.
19289         * math/auto-libm-test-in: Add more tests of lgamma.
19290         * math/auto-libm-test-out: Regenerated.
19291
19292         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
19293         cosh, csqrt, erfc, expm1 and lgamma.
19294         * math/auto-libm-test-out: Regenerated.
19295         * sysdeps/i386/fpu/libm-test-ulps: Update.
19296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19297
19298 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
19299
19300         [BZ #2542]
19301         [BZ #2543]
19302         [BZ #2558]
19303         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
19304         __lgamma_neg for arguments from -28.0 to -2.0.
19305         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
19306         __lgamma_negf for arguments from -15.0 to -2.0.
19307         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
19308         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
19309         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
19310         Call __lgamma_negl for arguments from -33.0 to -2.0.
19311         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
19312         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
19313         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
19314         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
19315         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
19316         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
19317         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
19318         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
19319         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
19320         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
19321         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
19322         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
19323         (__lgamma_neg): Likewise.
19324         (__lgamma_negl): Likewise.
19325         (__lgamma_product): Likewise.
19326         (__lgamma_productl): Likewise.
19327         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
19328         * math/auto-libm-test-in: Add more tests of lgamma.
19329         * math/auto-libm-test-out: Regenerated.
19330         * sysdeps/i386/fpu/libm-test-ulps: Update.
19331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19332
19333 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
19334
19335         [BZ #18675]
19336         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
19337
19338 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
19339
19340         [BZ #14912]
19341         * bits/libc-lock.h: Move to ...
19342         * sysdeps/generic/libc-lock.h: ...here.
19343         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
19344         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
19345         * sysdeps/mach/hurd/libc-lock.h: ...here.
19346         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
19347         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
19348         * sysdeps/mach/bits/libc-lock.h: Move to ...
19349         * sysdeps/mach/libc-lock.h: ...here.
19350         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
19351         * sysdeps/nptl/bits/libc-lock.h: Move to ...
19352         * sysdeps/nptl/libc-lock.h: ...here.
19353         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
19354         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
19355         * sysdeps/nptl/libc-lockP.h: ...here.
19356         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
19357         * crypt/crypt_util.c: Include <libc-lock.h> instead of
19358         <bits/libc-lock.h>.
19359         * dirent/scandir-tail.c: Likewise.
19360         * dlfcn/dlerror.c: Likewise.
19361         * elf/dl-close.c: Likewise.
19362         * elf/dl-iteratephdr.c: Likewise.
19363         * elf/dl-lookup.c: Likewise.
19364         * elf/dl-open.c: Likewise.
19365         * elf/dl-support.c: Likewise.
19366         * elf/dl-writev.h: Likewise.
19367         * elf/rtld.c: Likewise.
19368         * grp/fgetgrent.c: Likewise.
19369         * gshadow/fgetsgent.c: Likewise.
19370         * gshadow/sgetsgent.c: Likewise.
19371         * iconv/gconv_conf.c: Likewise.
19372         * iconv/gconv_db.c: Likewise.
19373         * iconv/gconv_dl.c: Likewise.
19374         * iconv/gconv_int.h: Likewise.
19375         * iconv/gconv_trans.c: Likewise.
19376         * include/link.h: Likewise.
19377         * inet/getnameinfo.c: Likewise.
19378         * inet/getnetgrent.c: Likewise.
19379         * inet/getnetgrent_r.c: Likewise.
19380         * intl/bindtextdom.c: Likewise.
19381         * intl/dcigettext.c: Likewise.
19382         * intl/finddomain.c: Likewise.
19383         * intl/gettextP.h: Likewise.
19384         * intl/loadmsgcat.c: Likewise.
19385         * intl/localealias.c: Likewise.
19386         * intl/textdomain.c: Likewise.
19387         * libidn/idn-stub.c: Likewise.
19388         * libio/libioP.h: Likewise.
19389         * locale/duplocale.c: Likewise.
19390         * locale/freelocale.c: Likewise.
19391         * locale/newlocale.c: Likewise.
19392         * locale/setlocale.c: Likewise.
19393         * login/getutent_r.c: Likewise.
19394         * login/getutid_r.c: Likewise.
19395         * login/getutline_r.c: Likewise.
19396         * login/utmp-private.h: Likewise.
19397         * login/utmpname.c: Likewise.
19398         * malloc/mtrace.c: Likewise.
19399         * misc/efgcvt.c: Likewise.
19400         * misc/error.c: Likewise.
19401         * misc/fstab.c: Likewise.
19402         * misc/getpass.c: Likewise.
19403         * misc/mntent.c: Likewise.
19404         * misc/syslog.c: Likewise.
19405         * nis/nis_call.c: Likewise.
19406         * nis/nis_callback.c: Likewise.
19407         * nis/nss-default.c: Likewise.
19408         * nis/nss_compat/compat-grp.c: Likewise.
19409         * nis/nss_compat/compat-initgroups.c: Likewise.
19410         * nis/nss_compat/compat-pwd.c: Likewise.
19411         * nis/nss_compat/compat-spwd.c: Likewise.
19412         * nis/nss_nis/nis-alias.c: Likewise.
19413         * nis/nss_nis/nis-ethers.c: Likewise.
19414         * nis/nss_nis/nis-grp.c: Likewise.
19415         * nis/nss_nis/nis-hosts.c: Likewise.
19416         * nis/nss_nis/nis-network.c: Likewise.
19417         * nis/nss_nis/nis-proto.c: Likewise.
19418         * nis/nss_nis/nis-pwd.c: Likewise.
19419         * nis/nss_nis/nis-rpc.c: Likewise.
19420         * nis/nss_nis/nis-service.c: Likewise.
19421         * nis/nss_nis/nis-spwd.c: Likewise.
19422         * nis/nss_nisplus/nisplus-alias.c: Likewise.
19423         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
19424         * nis/nss_nisplus/nisplus-grp.c: Likewise.
19425         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
19426         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
19427         * nis/nss_nisplus/nisplus-network.c: Likewise.
19428         * nis/nss_nisplus/nisplus-proto.c: Likewise.
19429         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
19430         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
19431         * nis/nss_nisplus/nisplus-service.c: Likewise.
19432         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
19433         * nis/ypclnt.c: Likewise.
19434         * nptl/libc_pthread_init.c: Likewise.
19435         * nss/getXXbyYY.c: Likewise.
19436         * nss/getXXent.c: Likewise.
19437         * nss/getXXent_r.c: Likewise.
19438         * nss/nss_db/db-XXX.c: Likewise.
19439         * nss/nss_db/db-netgrp.c: Likewise.
19440         * nss/nss_db/nss_db.h: Likewise.
19441         * nss/nss_files/files-XXX.c: Likewise.
19442         * nss/nss_files/files-alias.c: Likewise.
19443         * nss/nsswitch.c: Likewise.
19444         * posix/regex_internal.h: Likewise.
19445         * posix/wordexp.c: Likewise.
19446         * pwd/fgetpwent.c: Likewise.
19447         * resolv/res_hconf.c: Likewise.
19448         * resolv/res_libc.c: Likewise.
19449         * shadow/fgetspent.c: Likewise.
19450         * shadow/lckpwdf.c: Likewise.
19451         * shadow/sgetspent.c: Likewise.
19452         * socket/opensock.c: Likewise.
19453         * stdio-common/reg-modifier.c: Likewise.
19454         * stdio-common/reg-printf.c: Likewise.
19455         * stdio-common/reg-type.c: Likewise.
19456         * stdio-common/vfprintf.c: Likewise.
19457         * stdio-common/vfscanf.c: Likewise.
19458         * stdlib/abort.c: Likewise.
19459         * stdlib/cxa_atexit.c: Likewise.
19460         * stdlib/fmtmsg.c: Likewise.
19461         * stdlib/random.c: Likewise.
19462         * stdlib/setenv.c: Likewise.
19463         * string/strsignal.c: Likewise.
19464         * sunrpc/auth_none.c: Likewise.
19465         * sunrpc/bindrsvprt.c: Likewise.
19466         * sunrpc/create_xid.c: Likewise.
19467         * sunrpc/key_call.c: Likewise.
19468         * sunrpc/rpc_thread.c: Likewise.
19469         * sysdeps/arm/backtrace.c: Likewise.
19470         * sysdeps/generic/ldsodefs.h: Likewise.
19471         * sysdeps/generic/stdio-lock.h: Likewise.
19472         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
19473         * sysdeps/i386/backtrace.c: Likewise.
19474         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
19475         * sysdeps/m68k/backtrace.c: Likewise.
19476         * sysdeps/mach/hurd/cthreads.c: Likewise.
19477         * sysdeps/mach/hurd/dirstream.h: Likewise.
19478         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
19479         * sysdeps/nptl/malloc-machine.h: Likewise.
19480         * sysdeps/nptl/stdio-lock.h: Likewise.
19481         * sysdeps/posix/dirstream.h: Likewise.
19482         * sysdeps/posix/getaddrinfo.c: Likewise.
19483         * sysdeps/posix/system.c: Likewise.
19484         * sysdeps/pthread/aio_suspend.c: Likewise.
19485         * sysdeps/s390/s390-32/backtrace.c: Likewise.
19486         * sysdeps/s390/s390-64/backtrace.c: Likewise.
19487         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
19488         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
19489         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
19490         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
19491         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
19492         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
19493         * sysdeps/unix/sysv/linux/system.c: Likewise.
19494         * sysdeps/x86_64/backtrace.c: Likewise.
19495         * time/alt_digit.c: Likewise.
19496         * time/era.c: Likewise.
19497         * time/tzset.c: Likewise.
19498         * wcsmbs/wcsmbsload.c: Likewise.
19499         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
19500         instead of <bits/libc-lock.h> in comment.
19501
19502 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
19503
19504         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
19505         Only use .set mips2 if the current ISA is below mips2.
19506         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
19507         Likewise.
19508         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
19509         mips32r2 if the current ISA is below mips32r2.
19510         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
19511         (TLS_IE): Updated to use the TLD_RDHWR macro.
19512         (TLS_LE): Likewise.
19513         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
19514         __ASSEMBLER__ condition.
19515
19516 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19517
19518         Fix parallel build of before-compile targets.
19519
19520         * sysdeps/mach/Makefile ($(patsubst
19521         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
19522         mach-before-compile target.
19523         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
19524         io fs process)): Move rule to dedicated hurd-before-compile target.
19525
19526 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19527
19528         Fix rules generating headers in hurd/ and mach/ when initial make call
19529         has subdir= explicitly set.
19530
19531         * sysdeps/mach/Makefile ($(patsubst
19532         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
19533         calling $(MAKE).
19534         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
19535         io fs process)): Force subdir to hurd when calling $(MAKE).
19536         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
19537         subdir to mach when calling $(MAKE).
19538
19539 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
19540
19541         Check sysheaders when looking for Mach and Hurd headers
19542
19543         * sysdeps/mach/configure.ac: Add sysheaders check.
19544         * sysdeps/mach/configure: Regenerate.
19545         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
19546         * sysdeps/mach/hurd/configure: Regenerate.
19547
19548 2015-09-04  Roland McGrath  <roland@hack.frob.com>
19549
19550         [BZ #18921]
19551         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
19552         Fix inverted sense of test of 'o_directory_works' value.
19553         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
19554         Bernhard Voelker <mail@bernhard-voelker.de>.
19555
19556 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
19557
19558         [BZ #14912]
19559         * bits/linkmap.h: Move to ...
19560         * sysdeps/generic/linkmap.h: ...here.
19561         * sysdeps/aarch64/bits/linkmap.h: Move to ...
19562         * sysdeps/aarch64/linkmap.h: ...here.
19563         * sysdeps/arm/bits/linkmap.h: Move to ...
19564         * sysdeps/arm/linkmap.h: ...here.
19565         * sysdeps/hppa/bits/linkmap.h: Move to ...
19566         * sysdeps/hppa/linkmap.h: ...here.
19567         * sysdeps/ia64/bits/linkmap.h: Move to ...
19568         * sysdeps/ia64/linkmap.h: ...here.
19569         * sysdeps/mips/bits/linkmap.h: Move to ...
19570         * sysdeps/mips/linkmap.h: ...here.
19571         * sysdeps/s390/bits/linkmap.h: Move to ...
19572         * sysdeps/s390/linkmap.h: ...here.
19573         * sysdeps/sh/bits/linkmap.h: Move to ...
19574         * sysdeps/sh/linkmap.h: ...here.
19575         * sysdeps/x86/bits/linkmap.h: Move to ...
19576         * sysdeps/x86/linkmap.h: ...here.
19577         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
19578
19579 2015-09-04  Andreas Schwab  <schwab@suse.de>
19580
19581         [BZ #18635]
19582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
19583         (__makecontext): Terminate FDE before return label.
19584         (__novec_makecontext): Likewise.
19585
19586 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19587
19588         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
19589         first member of struct sv in syscall macro.
19590
19591 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
19592
19593         [BZ #14912]
19594         * bits/stdio-lock.h: Move to ...
19595         * sysdeps/generic/stdio-lock.h: ...here.
19596         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
19597         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
19598         * sysdeps/nptl/stdio-lock.h: ...here.
19599         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
19600         * include/libio.h: Include <stdio-lock.h> instead of
19601         <bits/stdio-lock.h>.
19602         * sysdeps/nptl/fork.c: Likewise.
19603         * sysdeps/pthread/flockfile.c: Likewise.
19604         * sysdeps/pthread/ftrylockfile.c: Likewise.
19605         * sysdeps/pthread/funlockfile.c: Likewise.
19606
19607         [BZ #14912]
19608         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
19609         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
19610         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
19611         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
19612         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
19613         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
19614         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
19615
19616 2015-09-03  Roland McGrath  <roland@hack.frob.com>
19617
19618         * elf/Makefile (test-xfail-tst-protected1a): New variable.
19619         (test-xfail-tst-protected1b): New variable.
19620
19621 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
19622
19623         [BZ #14912]
19624         * bits/libc-tsd.h: Move to ...
19625         * sysdeps/generic/libc-tsd.h: ...here.
19626         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
19627         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
19628         * sysdeps/mach/hurd/libc-tsd.h: ...here.
19629         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
19630         * include/ctype.h: Include <libc-tsd.h> instead of
19631         <bits/libc-tsd.h>.
19632         * include/rpc/rpc.h: Likewise.
19633         * locale/localeinfo.h: Likewise.
19634         * sunrpc/rpc_thread.c: Likewise.
19635         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
19636         * sysdeps/nptl/malloc-machine.h: Likewise.
19637
19638         * Makefile (headers): Remove bits/libc-lock.h.
19639         * libio/Makefile (headers): Remove bits/stdio-lock.h.
19640
19641         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
19642         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
19643         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
19644         <bits/stdio-lock.h>.
19645         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
19646         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
19647
19648 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
19649
19650         [BZ #18757]
19651         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
19652         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
19653         BZ #18757.
19654
19655 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
19656
19657         * malloc/mtrace.pl: Filter out NULL entries.
19658
19659 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
19660
19661         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
19662         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
19663         macro.
19664
19665         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
19666         (TCP_CC_INFO): Likewise.
19667         (TCP_SAVE_SYN): Likewise.
19668         (TCP_SAVED_SYN): Likewise.
19669
19670 2015-08-31  Brett Neumeier <brett@neumeier.us>
19671
19672         [BZ #18870]
19673         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
19674
19675 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19676
19677         [BZ #18873]
19678         Fix broken overflow check in posix_fallocate
19679         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
19680         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
19681         Fix parenthesization typo.
19682
19683 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
19684
19685         [BZ #18887]
19686         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
19687         tst-mntent-blank-passno.
19688         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
19689         * misc/tst-mntent-blank-corrupt.c: New test.
19690         * misc/tst-mntent-blank-passno.c: New test ripped from ...
19691         * misc/tst-mntent.c (do_test): ... here.
19692
19693 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
19694
19695         [BZ #4404]
19696         * po/de.po: Fix SIGALRM typo.
19697
19698 2015-08-28  James Perkins  <james@loowit.net>
19699
19700         * time/tst-strptime2.c (tests): Replace short list of test
19701         strings for strptime %z specifier with code which exhaustively
19702         tests every combination of sign and 0 to 5 digits. Tests for
19703         rejection of invalid strings.
19704
19705 2015-08-28  James Perkins  <james@loowit.net>
19706
19707         [BZ #16141]
19708         * time/strptime_l.c (__strptime_internal): Fix %z minutes
19709         calculation, removing incorrect decimal time rounding, so that
19710         all minute values result in a valid seconds value.
19711         * time/strptime_l.c (__strptime_internal): Extend %z time zone
19712         offset range limits to UTC-99:59 through UTC+99:59 to parse
19713         current and historical use cases.
19714         * time/tst-strptime2.c (tests): Modify and add tests for the
19715         strptime %z input field descriptor, specifically conversion of
19716         minutes to seconds and validating an offset range of -9959 to
19717         +9959.
19718
19719 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19720             Dmitry V. Levin  <ldv@altlinux.org>
19721
19722         [BZ #18877]
19723         * posix/Makefile (tests): Add tst-mmap-offset.
19724         * posix/tst-mmap.c: New file.
19725         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
19726         offset calculation for negative values.
19727
19728 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19729
19730         * sysdeps/i386/init-arch.h: New file.
19731         * sysdeps/i386/i586/init-arch.h: Likewise.
19732         * sysdeps/i386/i686/init-arch.h: Likewise.
19733         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
19734         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
19735         * sysdeps/x86/cpu-features.h (bit_I586): New.
19736         (bit_I686): Likewise.
19737         (bit_CX8): Likewise.
19738         (bit_CMOV): Likewise.
19739         (index_CX8): Likewise.
19740         (index_CMOV): Likewise.
19741         (index_I586): Likewise.
19742         (index_I686): Likewise.
19743         (reg_CX8): Likewise.
19744         (reg_CMOV): Likewise.
19745         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
19746         available at compile-time.
19747         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
19748         available at compile-time.
19749         * sysdeps/x86/init-arch.h (USE_I586): New macro.
19750         (USE_I686): Likewise.
19751
19752 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19753
19754         * sysdeps/i386/bcopy.S: New file.
19755         * sysdeps/i386/bzero.S: Likewise.
19756         * sysdeps/i386/memcpy.S: Likewise.
19757         * sysdeps/i386/memmove.S: Likewise.
19758         * sysdeps/i386/mempcpy.S: Likewise.
19759         * sysdeps/i386/memset.S: Likewise.
19760         * sysdeps/i386/bzero.c: Removed.
19761         * sysdeps/i386/memset.c: Likewise.
19762         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
19763         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
19764         * sysdeps/i386/i586/memset_chk.S: Likewise.
19765         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
19766         * sysdeps/i386/memcpy_chk.S: Here.
19767         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
19768         * sysdeps/i386/memmove_chk.S: Here.
19769         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
19770         * sysdeps/i386/mempcpy_chk.S: Likewise.
19771         * sysdeps/i386/i686/memset_chk.S: Moved to ...
19772         * sysdeps/i386/memset_chk.S: Likewise.
19773
19774 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
19775
19776         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
19777         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
19778         file, move DIAG_POP_NEEDS_COMMENT to end of file.
19779         * soft-fp/fmadf4.c: Ditto.
19780         * soft-fp/fmatf4.c: Ditto.
19781
19782 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19783
19784         * sysdeps/i386/i586/Implies: Removed.
19785         * sysdeps/i386/i686/Implies: Likewise.
19786
19787 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19788
19789         * sysdeps/i386/i486/strlen.S: Moved to ...
19790         * sysdeps/i386/strlen.S: Here.
19791
19792 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19793
19794         * sysdeps/i386/i486/strcat.S: Moved to ...
19795         * sysdeps/i386/strcat.S: Here.
19796
19797 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19798
19799         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
19800         * sysdeps/i386/pthread_spin_trylock.S: Here.
19801         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
19802         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
19803
19804 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19805
19806         * sysdeps/i386/i486/string-inlines.c: Moved to ...
19807         * sysdeps/i386/string-inlines.c: Here.
19808
19809 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19810
19811         * sysdeps/i386/i486/htonl.S: Moved ...
19812         * sysdeps/i386/htonl.S: here.
19813
19814 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19815
19816         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
19817         * sysdeps/i386/bits/atomic.h: Here.
19818
19819 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19820
19821         * sysdeps/i386/i486/Versions: Removed.
19822
19823 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
19824
19825         [BZ #2898]
19826         * misc/mktemp.c: Add mkdtemp to the link_warning message.
19827         Based on patch by Aurelien Jarno.
19828
19829 2015-08-26  Stan Shebs  <stanshebs@google.com>
19830
19831         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
19832         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
19833
19834 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19835
19836         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
19837         * sysdeps/powerpc/dl-procinfo.c:
19838         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
19839         feature so it shows when LD_SHOW_AUXV=1.
19840
19841 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19842
19843         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
19844         (__arch_compare_and_exchange_val_32_acq): Remove and use common
19845         definition.  ISA 2.07B no longer requires full sync.
19846
19847 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
19848
19849         [BZ #18863]
19850         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
19851         (si_call_addr): Define.
19852         (si_syscall): Define.
19853         (si_arch): Define.
19854
19855 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19856
19857         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
19858         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
19859         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
19860         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19861         (__memset_zero_constant_len_parameter): New.
19862         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
19863         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19864         (__memset_zero_constant_len_parameter): Don't define if
19865         __memset_chk or USE_AS_BZERO are defined.
19866
19867         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
19868         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
19869         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
19870
19871         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
19872         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
19873         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
19874         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
19875         comments.
19876         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
19877         -mno-mmx for $(all-rtld-routines).
19878         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
19879         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
19880         i386.
19881
19882 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
19883
19884         * sysdeps/generic/unwind.h
19885         (_Unwind_Word): Use __mode__(__unwind_word__)
19886         instead of __mode__(__word__).
19887         (_Unwind_Sword): Likewise.
19888
19889         * sysdeps/s390/s390-64/utf8-utf16-z9.c
19890         (MAX_NEEDED_INPUT): New define.
19891         (MAX_NEEDED_OUTPUT): New define.
19892
19893         * NEWS: New item for IBM z13 string optimizations.
19894
19895         * sysdeps/s390/multiarch/memrchr-c.c: New File.
19896         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
19897         * sysdeps/s390/multiarch/memrchr.c: Likewise.
19898         * sysdeps/s390/multiarch/Makefile
19899         (sysdep_routines): Add memrchr functions.
19900         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19901         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
19902
19903         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
19904         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
19905         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
19906         * sysdeps/s390/multiarch/Makefile
19907         (sysdep_routines): Add wmemcmp functions.
19908         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19909         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
19910         * benchtests/bench-wmemcmp.c: New File.
19911         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
19912
19913         * sysdeps/s390/multiarch/wmemset-c.c: New File.
19914         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
19915         * sysdeps/s390/multiarch/wmemset.c: Likewise.
19916         * sysdeps/s390/multiarch/Makefile
19917         (sysdep_routines): Add wmemset functions.
19918         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19919         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
19920         * wcsmbs/wmemset.c: Use WMEMSET if defined.
19921         * string/test-memset.c: Add wmemset support.
19922         * wcsmbs/test-wmemset.c: New File.
19923         * wcsmbs/Makefile (strop-tests): Add wmemset.
19924         * benchtests/bench-memset.c: Add wmemset support.
19925         * benchtests/bench-wmemset.c: New File.
19926         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
19927
19928         * sysdeps/s390/multiarch/memccpy-c.c: New File.
19929         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
19930         * sysdeps/s390/multiarch/memccpy.c: Likewise.
19931         * sysdeps/s390/multiarch/Makefile
19932         (sysdep_routines): Add memccpy functions.
19933         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19934         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
19935         * string/memccpy.c: Use MEMCCPY if defined.
19936
19937         * sysdeps/s390/multiarch/memchr-vx.S: New File.
19938         * sysdeps/s390/multiarch/memchr.c: Likewise.
19939         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
19940         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
19941         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
19942         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
19943         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
19944         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
19945         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
19946         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
19947         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
19948         and rawmemchr functions.
19949         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19950         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
19951         and wmemchr.
19952         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
19953         * string/test-memchr.c: Add wmemchr support.
19954         * wcsmbs/test-wmemchr.c: New File.
19955         * wcsmbs/Makefile (strop-tests): Add wmemchr.
19956         * benchtests/bench-memchr.c: Add wmemchr support.
19957         * benchtests/bench-wmemchr.c: New File.
19958         * benchtests/Makefile (wcsmbs-bench): wmemchr.
19959
19960         * sysdeps/s390/multiarch/strcspn-c.c: New File.
19961         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
19962         * sysdeps/s390/multiarch/strcspn.c: Likewise.
19963         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
19964         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
19965         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
19966         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
19967         wcscspn functions.
19968         * sysdeps/s390/multiarch/ifunc-impl-list.c
19969         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
19970         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
19971         * string/test-strcspn.c: Add wcscspn support.
19972         * wcsmbs/test-wcscspn.c: New File.
19973         * wcsmbs/Makefile (strop-tests): Add wcscspn.
19974         * benchtests/bench-strcspn.c: Add wcscspn support.
19975         * benchtests/bench-wcscspn.c: New File.
19976         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
19977
19978         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
19979         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
19980         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
19981         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
19982         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
19983         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
19984         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
19985         wcspbrk functions.
19986         * sysdeps/s390/multiarch/ifunc-impl-list.c
19987         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
19988         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
19989         * string/test-strpbrk.c: Add wcspbrk support.
19990         * wcsmbs/test-wcspbrk.c: New File.
19991         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
19992         * benchtests/bench-strpbrk.c: Add wcspbrk support.
19993         * benchtests/bench-wcspbrk.c: New File.
19994         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
19995
19996         * sysdeps/s390/multiarch/strspn-c.c: New File.
19997         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
19998         * sysdeps/s390/multiarch/strspn.c: Likewise.
19999         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
20000         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
20001         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
20002         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
20003         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
20004         wcsspn functions.
20005         * sysdeps/s390/multiarch/ifunc-impl-list.c
20006         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
20007         * string/test-strspn.c: Add wcsspn support.
20008         * wcsmbs/test-wcsspn.c: New File.
20009         * wcsmbs/Makefile (strop-tests): Add wcsspn.
20010         * benchtests/bench-strspn.c: Add wcsspn support.
20011         * benchtests/bench-wcsspn.c: New File.
20012         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
20013
20014         * sysdeps/s390/multiarch/strrchr-c.c: New File.
20015         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
20016         * sysdeps/s390/multiarch/strrchr.c: Likewise.
20017         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
20018         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
20019         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
20020         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
20021         wcsrchr functions.
20022         * sysdeps/s390/multiarch/ifunc-impl-list.c
20023         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
20024         * benchtests/bench-wcsrchr.c: New File.
20025         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
20026
20027         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
20028         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
20029         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
20030         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
20031         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
20032         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
20033         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
20034         wcschrnul functions.
20035         * sysdeps/s390/multiarch/ifunc-impl-list.c
20036         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
20037         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
20038         * string/test-strchr.c: Add wcschrnul support.
20039         * wcsmbs/test-wcschrnul.c: New File.
20040         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
20041         * benchtests/bench-strchr.c: Add wcschrnul support.
20042         * benchtests/bench-wcschrnul.c: New File.
20043         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
20044
20045         * sysdeps/s390/multiarch/strchr-c.c: New File.
20046         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
20047         * sysdeps/s390/multiarch/strchr.c: Likewise.
20048         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
20049         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
20050         * sysdeps/s390/multiarch/wcschr.c: Likewise.
20051         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
20052         wcschr functions.
20053         * sysdeps/s390/multiarch/ifunc-impl-list.c
20054         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
20055         * string/strchr.c (STRCHR): Define and use macro.
20056         * benchtests/bench-wcschr.c: New File.
20057         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
20058
20059         * sysdeps/s390/multiarch/strncmp-c.c: New File.
20060         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
20061         * sysdeps/s390/multiarch/strncmp.c: Likewise.
20062         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
20063         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
20064         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
20065         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
20066         wcsncmp functions.
20067         * sysdeps/s390/multiarch/ifunc-impl-list.c
20068         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
20069         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
20070         * benchtests/bench-strncmp.c: Add wcsncmp support.
20071         * benchtests/bench-wcsncmp.c: New File.
20072         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
20073
20074         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
20075         * sysdeps/s390/multiarch/strcmp.c: Likewise.
20076         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
20077         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
20078         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
20079         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
20080         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
20081         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
20082         wcscmp functions.
20083         * sysdeps/s390/multiarch/ifunc-impl-list.c
20084         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
20085         * string/strcmp.c (STRCMP): Define and use macro.
20086         * benchtests/bench-wcscmp.c: New File.
20087         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
20088         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
20089         instead of _HAVE_STRING_ARCH_memchr.
20090
20091         * sysdeps/s390/multiarch/strncat-c.c: New File.
20092         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
20093         * sysdeps/s390/multiarch/strncat.c: Likewise.
20094         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
20095         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
20096         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
20097         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
20098         wcsncat functions.
20099         * sysdeps/s390/multiarch/ifunc-impl-list.c
20100         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
20101         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
20102         * string/test-strncat.c: Add wcsncat support.
20103         * wcsmbs/test-wcsncat.c: New File.
20104         * wcsmbs/Makefile (strop-tests): Add wcsncat.
20105         * benchtests/bench-strncat.c: Add wcsncat support.
20106         * benchtests/bench-wcsncat.c: New File.
20107         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
20108
20109         * sysdeps/s390/multiarch/strcat-c.c: New File.
20110         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
20111         * sysdeps/s390/multiarch/strcat.c: Likewise.
20112         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
20113         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
20114         * sysdeps/s390/multiarch/wcscat.c: Likewise.
20115         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
20116         wcscat functions.
20117         * sysdeps/s390/multiarch/ifunc-impl-list.c
20118         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
20119         * string/strcat.c (STRCAT): Define and use macro.
20120         * wcsmbs/wcscat.c: Use WCSCAT if defined.
20121         * string/test-strcat.c: Add wcscat support.
20122         * wcsmbs/test-wcscat.c: New File.
20123         * wcsmbs/Makefile (strop-tests): Add wcscat.
20124         * benchtests/bench-strcat.c: Add wcscat support.
20125         * benchtests/bench-wcscat.c: New File.
20126         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
20127
20128         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
20129         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
20130         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
20131         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
20132         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
20133         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
20134         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
20135         wcpncpy functions.
20136         * sysdeps/s390/multiarch/ifunc-impl-list.c
20137         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
20138         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
20139         * string/test-stpncpy.c: Add wcpncpy support.
20140         * wcsmbs/test-wcpncpy.c: New File.
20141         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
20142         * benchtests/bench-stpncpy.c: Add wcpncpy support.
20143         * benchtests/bench-wcpncpy.c: New File.
20144         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
20145
20146         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
20147         * sysdeps/s390/multiarch/strncpy.c: Likewise.
20148         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
20149         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
20150         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
20151         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
20152         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
20153         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
20154         wcsncpy functions.
20155         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
20156         * sysdeps/s390/multiarch/ifunc-impl-list.c
20157         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
20158         * string/test-strncpy.c: Add wcsncpy support.
20159         * wcsmbs/test-wcsncpy.c: New File.
20160         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
20161         * benchtests/bench-strncpy.c: Add wcsncpy support.
20162         * benchtests/bench-wcsncpy.c: New File.
20163         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
20164
20165         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
20166         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
20167         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
20168         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
20169         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
20170         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
20171         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
20172         wcpcpy functions.
20173         * string/stpcpy.c: Use STPCPY if defined.
20174         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
20175         * sysdeps/s390/multiarch/ifunc-impl-list.c
20176         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
20177         * string/test-stpcpy.c: Add wcpcpy support.
20178         * wcsmbs/test-wcpcpy.c: New File.
20179         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
20180         * benchtests/bench-stpcpy.c: Add wcpcpy support.
20181         * benchtests/bench-wcpcpy.c: New File.
20182         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
20183
20184         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
20185         * sysdeps/s390/multiarch/strcpy.c: Likewise.
20186         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
20187         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
20188         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
20189         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
20190         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
20191         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
20192         wcscpy functions.
20193         * sysdeps/s390/multiarch/ifunc-impl-list.c
20194         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
20195         * benchtests/bench-wcscpy.c: New File.
20196         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
20197
20198         * sysdeps/s390/multiarch/strnlen-c.c: New File.
20199         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
20200         * sysdeps/s390/multiarch/strnlen.c: Likewise.
20201         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
20202         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
20203         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
20204         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
20205         wcsnlen functions.
20206         * sysdeps/s390/multiarch/ifunc-impl-list.c
20207         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
20208         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
20209         * string/test-strnlen.c: Add wcsnlen support.
20210         * wcsmbs/test-wcsnlen.c: New File.
20211         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
20212         * benchtests/bench-strnlen.c: Add wcsnlen support.
20213         * benchtests/bench-wcsnlen.c: New File.
20214         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
20215
20216         * sysdeps/s390/multiarch/Makefile: New File.
20217         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
20218         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
20219         * sysdeps/s390/multiarch/strlen.c: Likewise.
20220         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
20221         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
20222         * sysdeps/s390/multiarch/wcslen.c: Likewise.
20223         * string/strlen.c (STRLEN): Define and use macro.
20224         * sysdeps/s390/multiarch/ifunc-impl-list.c
20225         (IFUNC_VX_IMPL): New macro function.
20226         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
20227         * benchtests/Makefile (wcsmbs-bench): New variable.
20228         (string-bench-all): Added wcsmbs-bench.
20229         * benchtests/bench-wcslen.c: New File.
20230
20231         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
20232         s390_vx_libc_ifunc2): New macro function.
20233
20234         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
20235         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
20236         assembler support.
20237         * sysdeps/s390/configure: Regenerated.
20238
20239         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
20240         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
20241
20242         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
20243         * sysdeps/s390/dl-procinfo.h: Add vector capability.
20244         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
20245
20246         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
20247         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
20248         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
20249         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
20250         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
20251         (memcmp, bcmp): Use __memcmp_default as alias source.
20252         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
20253         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
20254         Rename to __memcmp_default.
20255         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
20256         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
20257         (memcpy): Use __memcpy_default as alias source.
20258         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
20259         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
20260         Rename to __memcpy_default.
20261         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
20262         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
20263         (memset): Use __memset_default as alias source.
20264         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
20265         * sysdeps/s390/s390-32/memset.S (__memset_g5):
20266         Rename to __memset_default.
20267         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
20268         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
20269         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
20270         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
20271         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
20272         (memcmp, bcmp): Use __memcmp_default as alias source.
20273         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
20274         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
20275         Rename to __memcmp_default.
20276         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
20277         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
20278         (memcpy): Use __memcpy_default as alias source.
20279         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
20280         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
20281         Rename to __memcpy_default.
20282         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
20283         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
20284         (memset): Use __memset_default as alias source.
20285         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
20286         * sysdeps/s390/s390-64/memset.S (__memset_z900):
20287         Rename to __memset_default.
20288         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
20289         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
20290
20291         [BZ #18610]
20292         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
20293         __ieee_instruction_pointer to __unused.
20294         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
20295         __ieee_instruction_pointer.
20296         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
20297         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
20298         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
20299         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20300         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
20301         Mark dxc-field as reserved.
20302
20303 2015-08-25  Roland McGrath  <roland@hack.frob.com>
20304
20305         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
20306         if the weak reference is not null.
20307
20308 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20309
20310         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
20311
20312         [BZ #11214]
20313         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
20314
20315 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20316
20317         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
20318         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
20319         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
20320         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
20321         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
20322         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
20323         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
20324         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
20325         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
20326         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
20327         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
20328         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
20329         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
20330         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
20331         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
20332         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
20333         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
20334         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
20335
20336 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20337
20338         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
20339         register other than r0 for tabort, it has special meaning.
20340         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
20341         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
20342         transaction before starting syscall.
20343
20344 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20345
20346         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
20347
20348 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20349
20350         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
20351
20352         * sysdeps/x86_64/rtld-memcmp.c: Removed.
20353         * sysdeps/x86_64/rtld-memset.S: Likewise.
20354         * sysdeps/x86_64/rtld-strchr.S: Likewise.
20355         * sysdeps/x86_64/rtld-strlen.S: Likewise.
20356         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
20357         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
20358
20359         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
20360
20361 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
20362
20363         * debug/strcpy_chk.c: Improve performance.
20364         * debug/stpcpy_chk.c: Likewise.
20365         * sysdeps/x86_64/strcpy_chk.S: Remove.
20366         * sysdeps/x86_64/stpcpy_chk.S: Remove.
20367
20368         [BZ #18240]
20369         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
20370
20371 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20372
20373         [BZ #15128]
20374         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
20375         ifuncmain8.
20376         (modules-names): Add ifuncmod8.
20377         ($(objpfx)ifuncmain8): New rule.
20378         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
20379         <cpuid.h>.
20380         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
20381         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
20382         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
20383         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
20384         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
20385         * sysdeps/x86_64/dl-trampoline.h: Likewise.
20386         * sysdeps/x86_64/ifuncmain8.c: New file.
20387         * sysdeps/x86_64/ifuncmod8.c: Likewise.
20388         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
20389         Removed.
20390         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
20391         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
20392         Change rtld_savespace_sse to __glibc_unused2.
20393         (RTLD_CHECK_FOREIGN_CALL): Removed.
20394         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
20395         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
20396         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
20397
20398 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
20399
20400         * sysdeps/aarch64/bzero.S (__bzero): Remove.
20401
20402 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
20403
20404         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
20405         Unconditionally set __fpcr to avoid uninialized warning.
20406         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
20407
20408 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20409
20410         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
20411         is corrupt.
20412
20413         * malloc/arena.c (arena_get2): Drop unused argument.
20414         (arena_lock): Adjust.
20415         (arena_get_retry): Likewise.
20416
20417 2015-08-24  Andreas Schwab  <schwab@suse.de>
20418
20419         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
20420         Don't define.
20421         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20422         (__ASSUME_IPC64): Don't undef.
20423         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
20424         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
20425         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
20426         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
20427         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
20428         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
20429         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
20430         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
20431         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
20432         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
20433         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
20434         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
20435         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
20436         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
20437         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
20438         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
20439         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
20440         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
20441         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
20442         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
20443         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
20444
20445 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
20446
20447         * manual/Makefile (install): Only build manual when perl is available.
20448
20449 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20450
20451         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
20452         '#undef memcpy' by '#undef memchr'.
20453
20454 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20455
20456         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
20457         memchr not point to the internal __GI_memchr implementation.
20458
20459 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
20460
20461         * timezone/Makefile (CFLAGS-zdump.c): Remove
20462         -Wno-strict-prototypes.
20463         (CFLAGS-zic.c): Likewise.
20464         (CFLAGS-ialloc.c): Likewise.
20465         (CFLAGS-scheck.c): Likewise.
20466
20467         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
20468         -Wno-error=undef.
20469
20470 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
20471
20472         * i386/i686/multiarch/strcasestr-c.c: Removed.
20473         * x86_64/multiarch/strcasestr.c: Likewise.
20474         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
20475         Remove strcasestr.
20476
20477 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
20478
20479         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
20480
20481         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
20482         variables for high and low parts before possibly modifying them.
20483
20484 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
20485
20486         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
20487         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
20488         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
20489         of "multiarch/init-arch.h".
20490         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
20491         * sysdeps/x86/init-arch.h: This.
20492
20493 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
20494
20495         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
20496         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
20497
20498 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
20499
20500         [BZ #17787]
20501         * manual/macros.texi: Add twoexp macro.
20502         * manual/filesys.texi: Fix exponents.
20503         * manual/llio.texi: Likewise.
20504         * manual/stdio.texi: Likewise.
20505
20506 2015-08-20  Florian Weimer  <fweimer@redhat.com>
20507
20508         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
20509         incorrect use.
20510
20511 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
20512
20513         [BZ #18370]
20514         * math/s_csqrt.c (__csqrt): Force underflow exception for results
20515         whose real or imaginary part has small absolute value.
20516         * math/s_csqrtf.c (__csqrtf): Likewise.
20517         * math/s_csqrtl.c (__csqrtl): Likewise.
20518         * math/auto-libm-test-in: Add more tests of csqrt.
20519         * math/auto-libm-test-out: Regenerated.
20520         * sysdeps/i386/fpu/libm-test-ulps: Update.
20521
20522 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
20523
20524         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
20525         __ppc_set_ppr_very_low): New functions.
20526         * manual/platform.texi: Add documentation about
20527         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
20528
20529 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
20530
20531         * string/stpncpy.c (stpncpy): Improve performance using
20532         __strnlen/memcpy/memset.
20533
20534 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
20535
20536         [BZ #18796]
20537         * scripts/test-installation.pl: Don't add -lmvec to build options if
20538         libmvec wasn't built.
20539
20540 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
20541
20542         [BZ #14341]
20543         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
20544         case when there is a gap between DT_REL and DT_JMPREL sections.
20545         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
20546         (LDFLAGS-tst-split-dynreloc): New.
20547         (tst-split-dynreloc-ENV): Likewise.
20548         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
20549         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
20550
20551 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
20552
20553         [BZ #18822]
20554         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
20555         attribute_hidden.
20556         (__xstat64_conv): Likewise.
20557         (__xstat32_conv): Likewise.
20558
20559 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
20560
20561         [BZ #18822]
20562         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20563         Don't load %ebx when calling __setcontext.  Call __setcontext
20564         with HIDDEN_JUMPTARGET.
20565         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
20566         libc_hidden_def.
20567
20568 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
20569
20570         * sysdeps/i386/i686/Makefile
20571         [$(subdir) == string] (sysdep_routines): Moved to ...
20572         * sysdeps/i386/Makefile: Here.
20573         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
20574         * sysdeps/i386/cacheinfo.c: Here.
20575         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
20576         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
20577         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
20578         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
20579
20580 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
20581
20582         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
20583         __i586__ is defined.
20584         (HAS_I686): Defined to 1 if __i686__ is defined.
20585
20586 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
20587
20588         * elf/Makefile [$(have-z-execstack) = yes]
20589         (CPPFLAGS-tst-execstack.c): New variable.
20590
20591         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
20592         conditional to [defined UTMPX || _HAVE_UT_TYPE].
20593         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
20594         UTMPX || _HAVE_UT_TV].
20595         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
20596         UTMPX || _HAVE_UT_TV - 0].
20597
20598 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
20599
20600         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
20601         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
20602         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
20603
20604 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20605
20606         * sysdeps/powerpc/dl-procinfo.c:
20607         (_dl_powerpc_cap_flags): Added missing strings for some
20608         hwcap features.
20609         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
20610
20611 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
20612
20613         Port the 0x7efe...feff pattern to GCC 6.
20614         See Steve Ellcey's bug report in:
20615         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
20616         * string/memrchr.c (MEMRCHR):
20617         * string/rawmemchr.c (RAWMEMCHR):
20618         * string/strchr.c (strchr):
20619         * string/strchrnul.c (STRCHRNUL):
20620         Rewrite code to avoid issues with signed shift overflow.
20621
20622 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
20623
20624         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
20625         whether cpuid is available only if HAS_CPUID is 0.
20626         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
20627         (HAS_I586): Likewise.
20628         (HAS_I686): Likewise.
20629
20630 2015-08-18  Zack Weinberg  <zackw@panix.com>
20631
20632         * misc/Versions (libc): Add GLIBC_2.23.
20633
20634 2015-08-18  Alan Modra  <amodra@gmail.com>
20635
20636         [BZ #18421]
20637         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
20638         .Lp__global.
20639         (_start): Load %dp via .Lp__global.
20640         [!SHARED]: Use .section .rodata.
20641
20642 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20643
20644         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
20645         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
20646
20647 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20648
20649         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
20650         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
20651
20652 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20653
20654         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
20655         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
20656
20657 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20658
20659         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
20660         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
20661
20662 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20663
20664         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
20665         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
20666
20667 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20668
20669         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
20670         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
20671
20672 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20673
20674         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
20675
20676 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20677
20678         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
20679         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
20680         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20681         (__ASSUME_LWS_CAS): Delete.
20682
20683 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
20684
20685         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
20686         * sysdeps/hppa/configure: Regenerated.
20687         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
20688         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
20689         * sysdeps/hppa/nptl/tls.h: Likewise.
20690
20691 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
20692
20693         [BZ #18823]
20694         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
20695         for scaling up small arguments.
20696         * math/s_csqrtf.c (__csqrtf): Likewise.
20697         * math/s_csqrtl.c (__csqrtl): Likewise.
20698         * math/auto-libm-test-in: Add more tests of csqrt.
20699         * math/auto-libm-test-out: Regenerated.
20700
20701 2015-08-17  Andreas Schwab  <schwab@suse.de>
20702
20703         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
20704         version set GLIBC_2.19.
20705
20706 2015-08-16  Zack Weinberg  <zackw@panix.com>
20707
20708         [BZ #18681]
20709         * misc/regexp.h: This interface is no longer supported.
20710         Remove all contents, leaving only an #error directive.
20711         * misc/regexp.c (loc1, loc2, locs, step, advance):
20712         Demote to compatibility symbols.
20713
20714 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
20715
20716         [BZ #18084]
20717         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
20718         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
20719         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
20720         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
20721         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
20722         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
20723         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
20724         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
20725         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
20726
20727 2015-08-15  Zack Weinberg  <zackw@panix.com>
20728
20729         [BZ #18795]
20730         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
20731         buffer length is known to be too large, not if it's known to be
20732         small enough.
20733         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
20734         overflow at runtime, involving a length parameter, twice: once
20735         with a compile-time constant length parameter, once without.
20736
20737 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
20738
20739         [BZ #18824]
20740         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
20741         scaling x * y up instead of down.
20742         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
20743         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
20744         * math/auto-libm-test-in: Add more tests of fma.
20745         * math/auto-libm-test-out: Regenerated.
20746
20747 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
20748
20749         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
20750
20751 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20752
20753         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
20754         unnecessary movq.
20755         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
20756         Likewise.
20757
20758 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
20759
20760         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
20761         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
20762         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
20763         and tgamma.
20764         * math/auto-libm-test-out: Regenerated.
20765         * sysdeps/i386/fpu/libm-test-ulps: Update.
20766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20767
20768         [BZ #16520]
20769         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
20770         (__tanh): Force underflow exception for arguments with small
20771         absolute value.
20772         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
20773         (__tanhf): Force underflow exception for arguments with small
20774         absolute value.
20775         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
20776         (__tanhl): Force underflow exception for arguments with small
20777         absolute value.
20778         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
20779         (__tanhl): Force underflow exception for arguments with small
20780         absolute value.
20781         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
20782         (__tanhl): Force underflow exception for arguments with small
20783         absolute value.
20784         * math/auto-libm-test-in: Add more tests of tanh.
20785         * math/auto-libm-test-out: Regenerated.
20786         * sysdeps/i386/fpu/libm-test-ulps: Update.
20787
20788 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20789
20790         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
20791         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
20792
20793 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20794
20795         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
20796         <cpuid.h>.
20797
20798 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20799
20800         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
20801         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
20802
20803 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20804
20805         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
20806         Remove $(objpfx)init-arch.o.
20807         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
20808         init-arch.
20809         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
20810         (INIT_ARCH_EXT): Defined as empty.
20811         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
20812         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
20813         __init_cpu_features call.  Replace HAS_XXX with
20814         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20815         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
20816         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
20817         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
20818         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
20819         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
20820         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
20821         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
20822         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
20823         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
20824         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
20825         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
20826         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
20827         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
20828         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
20829         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
20830         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
20831         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
20832         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
20833         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
20834         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
20835         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20836         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
20837         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
20838         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20839         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
20840         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
20841         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20842         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
20843         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
20844         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20845         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
20846         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
20847         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20848         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
20849         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
20850
20851 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20852
20853         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
20854         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20855         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20856         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20857         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
20858         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
20859         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
20860         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
20861         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
20862         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
20863         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
20864         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
20865         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20866         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20867         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20868         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20869         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20870         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20871         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20872         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20873         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20874         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20875         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20876         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20877         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20878         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20879         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20880         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20881         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20882         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20883         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20884         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20885         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20886         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20887         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
20888         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
20889         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
20890         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
20891         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
20892         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
20893         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
20894         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
20895         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
20896
20897 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20898
20899         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
20900         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20901         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
20902         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20903         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20904         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
20905         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20906         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
20907         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
20908         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20909         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20910         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
20911         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
20912         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
20913         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
20914         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
20915         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
20916         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
20917         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
20918         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
20919         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
20920         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
20921         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
20922         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
20923         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20924         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
20925         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
20926         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
20927         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20928         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
20929         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
20930         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
20931         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
20932         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20933         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20934         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
20935         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
20936         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
20937         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
20938         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
20939         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
20940         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
20941         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
20942
20943 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20944
20945         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
20946         (dl_platform_init): Call init_cpu_features.
20947         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
20948         * sysdeps/i386/i686/cacheinfo.c
20949         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
20950         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
20951         * sysdeps/i386/i686/multiarch/Versions: Removed.
20952         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
20953         Removed.
20954         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
20955         * sysdeps/unix/sysv/linux/x86/Makefile
20956         (libpthread-sysdep_routines): Remove init-arch.
20957         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
20958         <sysdeps/x86_64/dl-procinfo.c> instead of
20959         sysdeps/generic/dl-procinfo.c>.
20960         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
20961         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
20962         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
20963         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
20964         [$(subdir) == elf] (tests-static): Add
20965         tst-get-cpu-features-static.
20966         * sysdeps/x86/Versions: New file.
20967         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
20968         * sysdeps/x86/cpu-features.c: Likewise.
20969         * sysdeps/x86/cpu-features.h: Likewise.
20970         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
20971         * sysdeps/x86/libc-start.c: Likewise.
20972         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
20973         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
20974         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
20975         * sysdeps/x86_64/dl-procinfo.c: Likewise.
20976         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
20977         Assume USE_MULTIARCH is defined and don't check it.
20978         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
20979         (is_amd): Likewise.
20980         (max_cpuid): Likewise.
20981         (intel_check_word): Likewise.
20982         (__cache_sysconf): Don't call __init_cpu_features.
20983         (__x86_preferred_memory_instruction): Removed.
20984         (init_cacheinfo): Don't call __init_cpu_features. Replace
20985         __cpu_features with GLRO(dl_x86_cpu_features).
20986         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
20987         (dl_platform_init): Call init_cpu_features.
20988         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
20989         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
20990         * sysdeps/x86_64/multiarch/Versions: Removed.
20991         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
20992         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
20993         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
20994         Removed.
20995         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
20996
20997 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
20998
20999         [BZ #18820]
21000         * libio/Makefile (test-fmemopen-mem): New test.
21001         * libio/test-fmemopen.c (do_bz18820): New test.
21002         * libio/fmemopen.c (__fmemopen): Fix memory leak.
21003         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
21004
21005 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
21006
21007         [BZ #16734]
21008         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
21009         (FREE_BUF): Delete.
21010         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
21011         * libio/genops.c (_IO_setb): Use malloc and free directly.
21012         (_IO_default_doallocate, _IO_default_finish): Likewise.
21013         ( _IO_unbuffer_all): Likewise.
21014         ( libc_freeres_fn): Likewise.
21015         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
21016         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
21017         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
21018         (_IO_wdefault_doallocate): Likewise.
21019
21020 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
21021
21022         [BZ #18086]
21023         * sysdeps/posix/nice.c (nice): Restore old errno.
21024         * posix/tst-nice.c (do_test): Add test for BZ #18086.
21025
21026 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
21027
21028         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
21029
21030 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21031
21032         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
21033         __bcopy and add a weak_alias to bcopy.
21034         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
21035         for static build.
21036
21037         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
21038         cleanup macro usage.
21039         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
21040         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
21041         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
21042         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
21043         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
21044         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
21045         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
21046         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
21047         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
21048         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
21049         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
21050         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
21051         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
21052         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
21053         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
21054         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
21055         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
21056         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
21057         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
21058
21059         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
21060         libc_hidden_def.
21061         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
21062
21063         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
21064         (sysdep_routines): Add strstr-ppc64.
21065         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
21066
21067 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
21068
21069         [BZ #18778]
21070         * elf/Makefile (tests): Add Add tst-nodelete2.
21071         (modules-names): Add tst-nodelete2mod.
21072         (tst-nodelete2mod.so-no-z-defs): New.
21073         ($(objpfx)tst-nodelete2): Likewise.
21074         ($(objpfx)tst-nodelete2.out): Likewise.
21075         (LDFLAGS-tst-nodelete2): Likewise.
21076         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
21077         out of loop through all loaded libraries.
21078         * elf/tst-nodelete2.c: New file.
21079         * elf/tst-nodelete2mod.c: Likewise.
21080         * elf/tst-znodelete-zlib.cc: Delete.
21081
21082 2015-08-11  Andreas Schwab  <schwab@suse.de>
21083
21084         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
21085         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
21086         (__openat64_nocancel): Likewise.
21087
21088 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
21089
21090         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
21091         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
21092         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
21093         * math/auto-libm-test-out: Regenerated.
21094         * sysdeps/i386/fpu/libm-test-ulps: Update.
21095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21096
21097 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
21098
21099         [BZ #18790]
21100         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
21101         threshold for returning +/- 1.
21102         * math/auto-libm-test-in: Add more tests of tanh.
21103         * math/auto-libm-test-out: Regenerated.
21104         * sysdeps/i386/fpu/libm-test-ulps: Update.
21105
21106 2015-08-10  Andreas Schwab  <schwab@suse.de>
21107
21108         [BZ #18781]
21109         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
21110         MORE_OFLAGS to oflag.
21111         * io/test-lfs.c (do_test): Test openat64.
21112
21113 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
21114
21115         [BZ #18789]
21116         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
21117         smaller threshold for returning the argument.
21118         * math/auto-libm-test-in: Add more tests of sinh.
21119         * math/auto-libm-test-out: Regenerated.
21120         * sysdeps/i386/fpu/libm-test-ulps: Update.
21121
21122 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
21123
21124         [BZ #18674]
21125         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
21126         break.
21127
21128 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
21129
21130         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
21131         (generated): Don't add $(addprefix z.,$(tzfiles)).
21132
21133 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
21134
21135         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
21136         * scripts/sysd-rules.awk: Likewise.
21137
21138 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
21139
21140         * iconvdata/tst-tables.sh: Change echo -n to printf.
21141         * nss/db-Makefile: Likewise.
21142         * posix/tst-getconf.sh: Likewise.
21143         * stdio-common/tst-unbputc.sh: Likewise.
21144
21145 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
21146
21147         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
21148         MADV_*_PAGES defines behind this feature check.
21149
21150 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
21151
21152         [BZ #18480]
21153         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
21154         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
21155         Define.
21156         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
21157         LOAD_REGS_5, LOAD_REGS_6): Update.
21158         (INTERNAL_SYSCALL): Update using new LOAD defines.
21159         (INTERNAL_SYSCALL_NCS): Likewise.
21160         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
21161
21162 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
21163
21164         [BZ #16734]
21165         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
21166
21167 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
21168
21169         [BZ #17905]
21170         * catgets/Makefile (tst-catgets-mem): New test.
21171         * catgets/catgets.c (catopen): Don't use unbounded alloca.
21172         * catgets/open_catalog.c (__open_catalog): Likewise.
21173         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
21174
21175 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
21176
21177         [BZ #18787]
21178         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
21179         clobber registers.
21180         (atomic_compare_and_exchange_val_acq): Use register asms to assign
21181         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
21182         Cast return to __typeof (oldval).
21183
21184 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
21185
21186         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
21187         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
21188         and delete sys/syscall.h include.
21189
21190 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
21191
21192         [BZ #16517]
21193         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
21194         (tan): Force underflow exception for arguments with small absolute
21195         value.
21196         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
21197         (__kernel_tanf): Force underflow exception for arguments with
21198         small absolute value.
21199         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
21200         (__kernel_tanl): Force underflow exception for arguments with
21201         small absolute value.
21202         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
21203         (__kernel_tanl): Force underflow exception for arguments with
21204         small absolute value.
21205         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
21206         (__kernel_tanl): Force underflow exception for arguments with
21207         small absolute value.
21208         * math/auto-libm-test-in: Add more tests of tan.
21209         * math/auto-libm-test-out: Regenerated.
21210
21211 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21212
21213         Fix sysdeps/i386/fpu/s_scalbn.S build
21214
21215         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
21216
21217 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
21218
21219         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
21220
21221 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21222
21223         Fix gcrt0.o compilation
21224
21225         When static-start-installed-name is different from
21226         start-installed-name, we must not use the shared objects.
21227
21228         * csu/Makefile
21229         (extra-objs): Add gmon-start.o when building shared library and
21230         $(static-start-installed-name) is different from
21231         $(start-installed-name).
21232         $(objpfx)g$(static-start-installed-name): When building shared
21233         library and $(static-start-installed-name) is different from
21234         $(static-start-installed-name), revert to non-shared rule,
21235         i.e. using $(objpfx)% and gmon-start.o.
21236
21237 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
21238
21239         [BZ #16519]
21240         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
21241         (__ieee754_sinh): Force underflow exception for arguments with
21242         small absolute value.
21243         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
21244         (__ieee754_sinhf): Force underflow exception for arguments with
21245         small absolute value.
21246         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
21247         (__ieee754_sinhl): Force underflow exception for arguments with
21248         small absolute value.
21249         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
21250         (__ieee754_sinhl): Force underflow exception for arguments with
21251         small absolute value.
21252         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
21253         (__ieee754_sinhl): Force underflow exception for arguments with
21254         small absolute value.
21255         * math/auto-libm-test-in: Add more tests of sinh.
21256         * math/auto-libm-test-out: Regenerated.
21257         * sysdeps/i386/fpu/libm-test-ulps: Update.
21258
21259 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
21260
21261         * libio/oldfileops.c: Include unistd.h.
21262
21263 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
21264
21265         * stdlib/isomac.c: Include ctype.h.
21266
21267 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
21268
21269         * dirent/tst-seekdir.c (main): Converted to ...
21270         (do_test): ... this.
21271         (TEST_FUNCTION): New macro.
21272         Include test-skeleton.c.
21273         * elf/tst-dlmodcount.c (main): Converted to ...
21274         (do_test): ... this.
21275         (TEST_FUNCTION): New macro.
21276         Include test-skeleton.c.
21277         * elf/tst-order-main.c (main): Converted to ...
21278         (do_test): ... this.
21279         (TEST_FUNCTION): New macro.
21280         Include test-skeleton.c.
21281         * elf/tst-pie2.c (main): Converted to ...
21282         (do_test): ... this.
21283         (TEST_FUNCTION): New macro.
21284         Include test-skeleton.c.
21285         * inet/tst-ether_aton.c (main): Converted to ...
21286         (do_test): ... this.
21287         (TEST_FUNCTION): New macro.
21288         Include test-skeleton.c.
21289         * misc/tst-mntent.c (main): Converted to ...
21290         (do_test): ... this.
21291         (TEST_FUNCTION): New macro.
21292         Include test-skeleton.c.
21293         * misc/tst-tsearch.c (main): Converted to ...
21294         (do_test): ... this.
21295         (TEST_FUNCTION): New macro.
21296         Include test-skeleton.c.
21297         * posix/tst-regexloc.c (main): Converted to ...
21298         (do_test): ... this.
21299         (TEST_FUNCTION): New macro.
21300         Include test-skeleton.c.
21301         * resolv/tst-aton.c (main): Converted to ...
21302         (do_test): ... this.
21303         (TEST_FUNCTION): New macro.
21304         Include test-skeleton.c.
21305         * stdio-common/test-fwrite.c (main): Converted to ...
21306         (do_test): ... this.
21307         (TEST_FUNCTION): New macro.
21308         Include test-skeleton.c.
21309         * stdio-common/tst-ferror.c (main): Converted to ...
21310         (do_test): ... this.
21311         (TEST_FUNCTION): New macro.
21312         Include test-skeleton.c.
21313         * stdio-common/tst-printf.c (main): Converted to ...
21314         (do_test): ... this.
21315         (TEST_FUNCTION): New macro.
21316         Include test-skeleton.c.
21317         * stdio-common/tst-printfsz.c (main): Converted to ...
21318         (do_test): ... this.
21319         (TEST_FUNCTION): New macro.
21320         Include test-skeleton.c.
21321         * stdlib/tst-strtod.c (main): Converted to ...
21322         (do_test): ... this.
21323         (TEST_FUNCTION): New macro.
21324         Include test-skeleton.c.
21325         * string/tst-strlen.c (main): Converted to ...
21326         (do_test): ... this.
21327         (TEST_FUNCTION): New macro.
21328         Include test-skeleton.c.
21329         * string/tst-svc.c (main): Converted to ...
21330         (do_test): ... this.
21331         (TEST_FUNCTION): New macro.
21332         Include test-skeleton.c.
21333         * time/tst-strptime.c (main): Converted to ...
21334         (do_test): ... this.
21335         (TEST_FUNCTION): New macro.
21336         Include test-skeleton.c.
21337         * timezone/tst-timezone.c (main): Converted to ...
21338         (do_test): ... this.
21339         (TEST_FUNCTION): New macro.
21340         Include test-skeleton.c.
21341
21342 2015-08-05  Zack Weinberg  <zackw@panix.com>
21343
21344         * misc/regexp.h: Update comments.
21345
21346 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
21347
21348         [BZ #18635]
21349         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
21350         before return label.
21351
21352 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
21353
21354         [BZ #18661]
21355         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
21356         when calling __errno_location.
21357         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
21358         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
21359
21360 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
21361
21362         [BZ #18661]
21363         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
21364         (__lll_timedwait_tid): Align stack to 16 bytes when calling
21365         __gettimeofday.
21366
21367 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
21368
21369         [BZ #18661]
21370         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21371         (__start_context): Don't use pop to restore %rdi so that stack
21372         is aligned to 16 bytes when calling __setcontext.
21373
21374 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
21375
21376         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
21377         only for libc.
21378         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
21379
21380 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
21381
21382         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
21383         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
21384         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
21385
21386 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
21387
21388         * string/memccpy.c (memccpy):
21389         Improve performance by using memchr/memcpy/__mempcpy.
21390
21391 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
21392
21393         * string/strncpy.c (strncpy):
21394         Improve performance by using __strnlen/memcpy.
21395
21396 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
21397
21398         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
21399         Optimize to avoid an unnecessary FPCR read.
21400
21401 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
21402
21403         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
21404         Optimize to reduce FPCR/FPSR accesses.
21405
21406 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
21407
21408         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
21409         dead->data[category] != NULL.
21410
21411 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
21412
21413         [BZ #18647]
21414         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
21415         and |x| close to 1, use absolute value of x when computing log.
21416         * math/auto-libm-test-in: Add more tests of pow.
21417         * math/auto-libm-test-out: Regenerated.
21418
21419 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21420
21421         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
21422         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
21423         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
21424
21425 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
21426
21427         [BZ #18525]
21428         * locales/km_KH: Remove timezone definition.
21429         * locales/lo_LA: Likewise.
21430         * locales/my_MM: Likewise.
21431         * locales/nan_TW@latin: Likewise.
21432         * locales/th_TH: Likewise.
21433         * locales/uk_UA: Likewise.
21434
21435 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
21436
21437         [BZ #18265]
21438         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
21439         (wcsncat): Likewise.
21440         (wcscmp): Likewise.
21441         (wcsncmp): Likewise.
21442
21443 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
21444
21445         * test-skeleton.c (usage): New function.
21446         (main): Call usage when opt is '?'.
21447
21448 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
21449
21450         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
21451         before first use.
21452
21453 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
21454
21455         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
21456         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
21457         in there too.
21458
21459 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
21460
21461         * version.h (RELEASE): Set to "development".
21462         (VERSION): Set to "2.22.90"
21463
21464         * version.h (RELEASE): Set to "stable".
21465         (VERSION): Set to "2.22"
21466         * include/features.h (__GLIBC_MINOR__): Set to 22.
21467
21468 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
21469
21470         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
21471         Restructure macro to avoid "value computed is not used" warning.
21472         (atomic_compare_and_exchange_val_acq): Likewise.
21473
21474 2015-08-04  Andreas Schwab  <schwab@suse.de>
21475
21476         [BZ #18635]
21477         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
21478         ret.
21479         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
21480
21481 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
21482
21483         * po/pl.po: Updated translation.
21484         * po/uk.po: Likewise.
21485         * po/fi.po: Likewise.
21486         * po/ko.po: Likewise.
21487         * po/ru.po: Likewise.
21488         * po/vi.po: Likewise.
21489
21490 2015-07-31  Zack Weinberg  <zackw@panix.com>
21491
21492         [BZ #18681]
21493         * regexp.h: Add unconditional #warning stating that this header
21494         will be removed soon.  Revise banner comment to match.
21495         (compile): Consistently use ERROR instead of RETURN to report
21496         errors (partial fix for bz#18681).
21497         * regexp.c: Don't include regexp.h. Remove some unnecessary
21498         declarations.
21499
21500 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
21501
21502         * po/libc.pot: Regenerated.
21503
21504 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21505
21506         [BZ #18740]
21507         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
21508         float-vlen4-arch-ext-cflags): Removed.
21509         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
21510         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
21511
21512 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
21513
21514         [BZ #14113]
21515         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
21516         aligned to __aligned__.
21517         (pthread_cond_t, pthread_rwlock_t): Likewise.
21518
21519 2015-07-30  Torvald Riegel  <triegel@redhat.com>
21520
21521         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
21522
21523 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
21524
21525         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
21526         (struct sigaction): Change sa_flags from a long to an int, and add
21527         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
21528
21529 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
21530
21531         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
21532         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
21533         sysdeps/generic/sysdep.h include.
21534         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
21535         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
21536         sysdeps/hppa/sysdep.h.
21537         (ENTRY, PSEUDO): Undefine before defining.
21538
21539 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
21540
21541         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
21542         from scratch to use INTERNAL_SYSCALL.
21543
21544 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
21545
21546         [BZ #18078]
21547         * scripts/check-localplt.awk: Support alternate relocations.
21548         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
21549         sections.
21550         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
21551         malloc entries with + REL R_386_GLOB_DAT.
21552         * sysdeps/x86_64/localplt.data: New file.
21553
21554 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
21555
21556         [BZ #18731]
21557         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
21558         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
21559         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
21560
21561 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
21562
21563         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
21564
21565 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
21566
21567         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
21568         directly in terms of __sync_fetch_and_add and delete (int) cast.
21569
21570 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
21571
21572         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
21573         the -D_ASM_IA64_CURRENT_H flag.
21574
21575 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
21576
21577         [BZ #18641]
21578         * pwd/pwd.h (putpwent): Delete __nonnull markings.
21579
21580 2015-07-27  Andreas Schwab  <schwab@suse.de>
21581
21582         * conform/conformtest.pl (checknamespace): Filter out string
21583         literals while tokenizing.
21584
21585 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
21586
21587         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
21588         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
21589         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
21590
21591 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
21592
21593         * nptl/tst-join7mod.c: Add #include <string.h>.
21594
21595 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
21596
21597         * sysdeps/nios2/libm-test-ulps: Update.
21598
21599 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
21600
21601         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
21602         Fix order of arguments to the rt_sigprocmask syscall.
21603         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
21604         Likewise.
21605
21606 2015-07-24  Roland McGrath  <roland@hack.frob.com>
21607
21608         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
21609
21610 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
21611
21612         [BZ #18457]
21613         * nptl/Makefile (tests): New test case tst-join7.
21614         (modules-names): New test case module tst-join7mod.
21615         * nptl/tst-join7.c: New file.
21616         * nptl/tst-join7mod.c: New file.
21617         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
21618         all translation units in libc.so, libpthread.so and rtld.
21619
21620 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21621
21622         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21623
21624 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
21625
21626         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
21627         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
21628         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
21629         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
21630         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
21631         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
21632         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
21633         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
21634         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
21635         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
21636         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
21637         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
21638         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
21639         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
21640         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
21641         implementation.
21642
21643 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21644
21645         [BZ #17711]
21646         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
21647         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
21648         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
21649         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
21650         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
21651         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
21652
21653 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
21654
21655         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
21656         instead of just saying load lock in the comments.
21657
21658 2015-07-23  Roland McGrath  <roland@hack.frob.com>
21659
21660         * sysdeps/unix/Subdirs: Moved ...
21661         * sysdeps/posix/Subdirs: ... here.
21662         * login/pty.h (struct termios, struct winsize): Add forward decls.
21663         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
21664         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
21665         * sysdeps/arm/nacl/libc.abilist: Updated.
21666         * sysdeps/nacl/libutil.abilist: New file.
21667
21668         * bits/signum.h: Update comments to mention 1003.1-2013 too.
21669         (SIGWINCH): New macro.
21670
21671         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
21672         * sysdeps/arm/nacl/libc.abilist: Add it.
21673
21674 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
21675
21676         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
21677
21678 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
21679
21680         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
21681         Swap __glibc_reserved0 and sa_flags order.
21682
21683 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
21684
21685         [BZ #18657]
21686         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
21687         are pending TLS destructor calls.
21688         * include/link.h (struct link_map): Add concurrency note for
21689         L_TLS_DTOR_COUNT.
21690         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
21691         Don't touch the link map flag.  Atomically increment
21692         l_tls_dtor_count.
21693         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
21694         Avoid taking the load lock and don't touch the link map flag.
21695         * stdlib/tst-tls-atexit-nodelete.c: New test case.
21696         * stdlib/Makefile (tests): Use it.
21697         * stdlib/tst-tls-atexit.c (do_test): dlopen
21698         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
21699         to allow tst-tls-atexit-nodelete test case to use it.
21700
21701 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
21702
21703         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
21704         to bits/types.h.
21705         (msgqnum_t): New typedef.
21706         (msglen_t): Likewise.
21707         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
21708         and msg_qbytes type to msglen_t.
21709
21710 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
21711
21712         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
21713         pad0 to __glibc_reserved0.
21714         (struct stat64): Likewise.
21715
21716 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
21717
21718         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
21719         Change sa_flags from a long to an int and add __glibc_reserved0 before
21720         it for padding.
21721
21722 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
21723
21724         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
21725         anonymous by deleting "siginfo" name.
21726
21727 2015-07-21  Roland McGrath  <roland@hack.frob.com>
21728
21729         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
21730         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
21731         rather than __nacl_irt_filename.
21732         * sysdeps/nacl/xstat.c (__xstat): Likewise.
21733
21734         * NEWS: New item for arm-nacl port.
21735         * sysdeps/arm/nacl/libc.abilist: New file.
21736         * sysdeps/nacl/ld.abilist: New file.
21737         * sysdeps/nacl/libBrokenLocale.abilist: New file.
21738         * sysdeps/nacl/libanl.abilist: New file.
21739         * sysdeps/nacl/libcrypt.abilist: New file.
21740         * sysdeps/nacl/libdl.abilist: New file.
21741         * sysdeps/nacl/libm.abilist: New file.
21742         * sysdeps/nacl/libpthread.abilist: New file.
21743         * sysdeps/nacl/libresolv.abilist: New file.
21744         * sysdeps/nacl/librt.abilist: New file.
21745
21746 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
21747
21748         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
21749         __startcontext to initialize the new context.
21750         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
21751         up CFI directive to forbid further backtracing.
21752
21753 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
21754
21755         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
21756         reference.
21757         * charmaps/ANSI_X3.4-1968: Likewise.
21758         * charmaps/BS_4730: Likewise.
21759         * charmaps/BS_VIEWDATA: Likewise.
21760         * charmaps/CP1250: Likewise.
21761         * charmaps/CP1251: Likewise.
21762         * charmaps/CP1252: Likewise.
21763         * charmaps/CP1253: Likewise.
21764         * charmaps/CP1254: Likewise.
21765         * charmaps/CP1255: Likewise.
21766         * charmaps/CP1256: Likewise.
21767         * charmaps/CSN_369103: Likewise.
21768         * charmaps/EBCDIC-DK-NO: Likewise.
21769         * charmaps/GB_1988-80: Likewise.
21770         * charmaps/GREEK-CCITT: Likewise.
21771         * charmaps/GREEK7: Likewise.
21772         * charmaps/INIS-8: Likewise.
21773         * charmaps/ISIRI-3342: Likewise.
21774         * charmaps/ISO_2033-1983: Likewise.
21775         * charmaps/ISO_5427-EXT: Likewise.
21776         * locales/POSIX: Likewise.
21777         * locales/ar_SA: Likewise.
21778         * locales/be_BY: Likewise.
21779         * locales/be_BY@latin: Likewise.
21780         * locales/ca_ES: Likewise.
21781         * locales/cs_CZ: Likewise.
21782         * locales/da_DK: Likewise.
21783         * locales/de_BE: Likewise.
21784         * locales/de_CH: Likewise.
21785         * locales/de_LU: Likewise.
21786         * locales/en_AU: Likewise.
21787         * locales/en_BW: Likewise.
21788         * locales/en_CA: Likewise.
21789         * locales/en_DK: Likewise.
21790         * locales/en_GB: Likewise.
21791         * locales/en_IE: Likewise.
21792         * locales/en_NZ: Likewise.
21793         * locales/en_ZA: Likewise.
21794         * locales/en_ZW: Likewise.
21795         * locales/es_AR: Likewise.
21796         * locales/es_BO: Likewise.
21797         * locales/es_CL: Likewise.
21798         * locales/es_CO: Likewise.
21799         * locales/es_DO: Likewise.
21800         * locales/es_EC: Likewise.
21801         * locales/es_ES: Likewise.
21802         * locales/es_HN: Likewise.
21803         * locales/es_MX: Likewise.
21804         * locales/es_PA: Likewise.
21805         * locales/es_PE: Likewise.
21806         * locales/es_PY: Likewise.
21807         * locales/es_SV: Likewise.
21808         * locales/es_US: Likewise.
21809         * locales/es_UY: Likewise.
21810         * locales/es_VE: Likewise.
21811         * locales/et_EE: Likewise.
21812         * locales/fa_IR: Likewise.
21813         * locales/fo_FO: Likewise.
21814         * locales/fr_CA: Likewise.
21815         * locales/fr_CH: Likewise.
21816         * locales/gv_GB: Likewise.
21817         * locales/he_IL: Likewise.
21818         * locales/hr_HR: Likewise.
21819         * locales/id_ID: Likewise.
21820         * locales/is_IS: Likewise.
21821         * locales/it_CH: Likewise.
21822         * locales/iw_IL: Likewise.
21823         * locales/kl_GL: Likewise.
21824         * locales/ko_KR: Likewise.
21825         * locales/kw_GB: Likewise.
21826         * locales/lg_UG: Likewise.
21827         * locales/lt_LT: Likewise.
21828         * locales/lv_LV: Likewise.
21829         * locales/mi_NZ: Likewise.
21830         * locales/nhn_MX: Likewise.
21831         * locales/nl_BE: Likewise.
21832         * locales/pl_PL: Likewise.
21833         * locales/sk_SK: Likewise.
21834         * locales/sl_SI: Likewise.
21835         * locales/sv_FI: Likewise.
21836         * locales/tl_PH: Likewise.
21837         * locales/tr_TR: Likewise.
21838         * locales/vi_VN: Likewise.
21839
21840 2015-07-21  Khem Raj  <raj.khem@gmail.com>
21841
21842         [BZ #17475]
21843         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
21844         of tu_IN and bh_IN.
21845
21846 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
21847
21848         [BZ #18694]
21849         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
21850         bits/wordsize.h.
21851         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
21852
21853 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21854
21855         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
21856         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
21857         (spawn_thread): New function.
21858         (load): Rename to reg_dtor_and_close.  Move dlopen to...
21859         (do_test): ... here.  Use IS_LOADED to test for its
21860         availability.
21861
21862 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
21863
21864         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
21865
21866 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
21867
21868         [BZ #18696]
21869         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
21870         si_addr_bnd.
21871         (si_lower): New.
21872         (si_upper): Likewise.
21873
21874 2015-07-16  David S. Miller  <davem@davemloft.net>
21875
21876         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
21877
21878 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21879
21880         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
21881         buffer.
21882         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
21883         fail output information.
21884
21885 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21886
21887         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
21888         and strstr-ppc64..
21889         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
21890         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
21891         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
21892         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
21893         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
21894
21895 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21896
21897         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21898         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21899         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21900         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21901
21902 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21903
21904         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
21905         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
21906         rtld_hidden_proto.
21907         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
21908
21909 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
21910
21911         * tst-nodelete-opened.c (do_test): Add comment to clarify how
21912         the test can fail.
21913
21914         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
21915
21916         [BZ #18676]
21917         * elf/tst-nodelete-opened.c: New test case.
21918         * elf/tst-nodelete-opened-lib.c: New test case module.
21919         * elf/Makefile (tests, modules-names): Use them.
21920         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
21921         early.
21922
21923 2015-07-15  David S. Miller  <davem@davemloft.net>
21924
21925         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
21926         futex-intenal.h
21927         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
21928         * sysdeps/sparc/sparc64/Makefile: Likewise.
21929         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21930         Remove space from macro define.
21931         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
21932
21933 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
21934
21935         [BZ #17475]
21936         * locale/iso-639.def: Update Bhili and Tulu language codes as
21937         per iso639-3.
21938
21939 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
21940
21941         * elf/tst-leaks1.c (main): Converted to ...
21942         (do_test): ... this.
21943         (TEST_FUNCTION): New macro.
21944         Include test-skeleton.c.
21945         * localedata/tst-langinfo.c (main): Converted to ...
21946         (do_test): ... this.
21947         (TEST_FUNCTION): New macro.
21948         Include test-skeleton.c.
21949         * math/test-fpucw.c (main): Converted to ...
21950         (do_test): ... this.
21951         (TEST_FUNCTION): New macro.
21952         Include test-skeleton.c.
21953         * math/test-tgmath.c (main): Converted to ...
21954         (do_test): ... this.
21955         (TEST_FUNCTION): New macro.
21956         Include test-skeleton.c.
21957         * math/test-tgmath2.c (main): Converted to ...
21958         (do_test): ... this.
21959         (TEST_FUNCTION): New macro.
21960         Include test-skeleton.c.
21961         * setjmp/tst-setjmp.c (main): Converted to ...
21962         (do_test): ... this.
21963         (TEST_FUNCTION): New macro.
21964         Include test-skeleton.c.
21965         * stdio-common/tst-sscanf.c (main): Converted to ...
21966         (do_test): ... this.
21967         (TEST_FUNCTION): New macro.
21968         Include test-skeleton.c.
21969         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
21970         (do_test): ... this.
21971         (TEST_FUNCTION): New macro.
21972         Include test-skeleton.c.
21973
21974         * elf/tst-audit9.c (main): Converted to ...
21975         (do_test): ... this.
21976         (TEST_FUNCTION): New macro.
21977         Include test-skeleton.c.
21978
21979 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
21980
21981         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
21982
21983 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21984
21985         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
21986         New variable.
21987
21988 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21989
21990         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21991
21992 2015-07-14  Roland McGrath  <roland@hack.frob.com>
21993
21994         * sysdeps/generic/dl-fileid.h: New file.
21995         * sysdeps/posix/dl-fileid.h: New file.
21996         * sysdeps/nacl/dl-fileid.h: New file.
21997         * include/link.h: Include <dl-fileid.h>.
21998         (struct link_map): Replace l_dev and l_ino with l_file_id.
21999         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
22000         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
22001         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
22002
22003 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22004
22005         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
22006
22007 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22008
22009         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
22010         Add iff $CXX is set.
22011         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
22012         Likewise.
22013         (tst-nodelete-zmodiff): Likewise.
22014         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
22015
22016 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22017
22018         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
22019
22020 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
22021
22022         * sysdeps/aarch64/fpu/math_private.h
22023         (define math_opt_barrier): Add AArch64 version.
22024         (math_force_eval): Likewise.
22025
22026 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
22027
22028         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
22029
22030 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
22031
22032         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
22033         %ld with %jd and cast to intmax_t.
22034         (do_test_length_zero): Likewise.
22035
22036 2015-07-10  Roland McGrath  <roland@hack.frob.com>
22037
22038         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
22039
22040 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
22041
22042         * sysdeps/tile/libm-test-ulps: Regenerated.
22043
22044         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
22045         Comment out the whole function, not just its body.
22046
22047 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22048
22049         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
22050         locks.
22051
22052         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
22053
22054 2015-07-10  Torvald Riegel  <triegel@redhat.com>
22055
22056         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
22057         (sem_assume_only_signals_cause_futex_EINTR): Remove.
22058
22059 2015-07-10  Torvald Riegel  <triegel@redhat.com>
22060
22061         * sysdeps/nptl/futex-internal.h: New file.
22062         * sysdeps/nacl/futex-internal.h: New file.
22063         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
22064         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
22065         error checking.
22066         (setxid_unmark_thread): Likewise.
22067         (__nptl_setxid): Likewise.
22068         (__wait_lookup_done): Likewise.
22069         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
22070         * nptl/nptl-init.c (sighandler_setxid): Likewise.
22071         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22072         * nptl/pthread_once.c (clear_once_control): Likewise.
22073         (__pthread_once_slow): Likewise.
22074         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
22075         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
22076         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
22077         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22078         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
22079         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
22080         Likewise.
22081         (__pthread_rwlock_rdlock): Likewise.
22082         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22083         Likewise.
22084         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22085         Likewise.
22086         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
22087         Likewise.
22088         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
22089         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
22090         Likewise.
22091         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
22092         __ASSUME_PRIVATE_FUTEX check.
22093         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
22094         Check that shared futexes are supported.
22095         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
22096         wrappers with error checking.
22097         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
22098         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
22099         * nptl/pthread_barrierattr_setpshared.c
22100         (pthread_barrierattr_setpshared): Check that shared futexes are
22101         supported.
22102         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
22103         Likewise.
22104         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
22105         Likewise.
22106         * nptl/sem_init.c (futex_private_if_supported): Remove.
22107         (__new_sem_init): Adapt and check that shared futexes are supported.
22108         * nptl/sem_open.c (sem_open): Likewise.
22109         * nptl/sem_post.c (futex_wake): Remove.
22110         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
22111         (do_futex_wait): Use futex wrappers with error checking.
22112         * nptl/sem_wait.c: Include lowlevellock.h.
22113         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
22114         Use futex_supports_pshared.
22115         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
22116         Use futex wrappers with error checking.
22117         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
22118         Likewise.
22119         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
22120         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
22121         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
22122         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
22123         (futex_wake): Likewise.
22124         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
22125         (do_futex_wait): Use futex wrappers with error checking.
22126         (__new_sem_wait_slow): Update EINTR handling.
22127         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
22128
22129 2015-07-09  Martin Sebor  <msebor@redhat.com>
22130
22131         [BZ #18435]
22132         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
22133         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
22134         * nptl/Makefile (test-xfail-tst-once5): Define.
22135
22136 2015-07-09  Roland McGrath  <roland@hack.frob.com>
22137
22138         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
22139         * elf/dl-minimal.c: For readability, reorder some definitions and
22140         introduce more page breaks.  Include <stdio.h>.
22141         (__libc_fatal): New function.
22142
22143         * include/unistd.h: Add rtld_hidden_proto for _exit.
22144         * posix/_exit.c: Add rtld_hidden_def.
22145         * sysdeps/mach/hurd/_exit.c: Likewise.
22146         * sysdeps/nacl/_exit.c: Likewise.
22147         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
22148         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
22149
22150 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22151
22152         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
22153         bndmov encoding with zero displacement.
22154
22155 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
22156             H.J. Lu  <hongjiu.lu@intel.com>
22157
22158         [BZ #18134]
22159         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
22160         * sysdeps/i386/configure: Regenerated.
22161         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
22162         (_dl_runtime_profile): Save and restore Intel MPX return bound
22163         registers when calling _dl_call_pltexit.  Add
22164         PRESERVE_BND_REGS_PREFIX before return.
22165         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
22166         (LRV_BND1_OFFSET): Likewise.
22167         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
22168         lrv_bnd1.
22169         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
22170         typo in bndmov encoding.
22171         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
22172         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
22173         branch instructions to preserve bounds.
22174
22175 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22176
22177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
22178         [GLIBC_2.22]: Add fmemopen.
22179
22180 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22181
22182         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
22183         returns an error, also try to use host port from __mach_host_self for
22184         the __vm_wire call.
22185         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
22186
22187 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22188
22189         [BZ #18400]
22190         [BZ #18648]
22191         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
22192         Fix pr_uid and pr_gid members.
22193         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
22194         definition to elf_greg_t.
22195
22196 2015-07-08  Roland McGrath  <roland@hack.frob.com>
22197
22198         [BZ #18383]
22199         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
22200         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
22201         * sysdeps/arm/configure: Regenerated.
22202         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
22203         (test-xfail-tst-tlsalign-static): Variable removed.
22204
22205         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
22206         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
22207         rather than explicit 'ln -s'.
22208
22209         * resolv/rpc/netdb.h: New file.
22210         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
22211
22212 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22213
22214         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
22215         length buffers.
22216         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
22217         test-skeleton.c.
22218
22219         [BZ #6544]
22220         [BZ #11216]
22221         [BZ #12836]
22222         [BZ #13151]
22223         [BZ #13152]
22224         [BZ #14292]
22225         * include/stdio.h (fmemopen): Remove hidden prototype.
22226         (__fmemopen): Add new hidden prototype.
22227         * libio/Makefile: Add oldfmemopen object.
22228         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
22229         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
22230         compliance.
22231         * libio/oldfmemopen.c: New file: old fmemopen implementation for
22232         symbol compatibility.
22233         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
22234         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
22235         fmemopen.
22236         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
22237         on append and read mode.
22238         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
22239         fmemopen.
22240         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
22241         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
22242         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
22243         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
22244         Likewise.
22245         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
22246         [GLIBC_2.22]: Likewise.
22247         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
22248         Likewise.
22249         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
22250         Likewise.
22251         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
22252         [GLIBC_2.22]: Likewise.
22253         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
22254         [GLIBC_2.22]: Likewise.
22255         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
22256         [GLIBC_2.22]: Likewise.
22257         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
22258         [GLIBC_2.22]: Likewise.
22259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
22260         [GLIBC_2.22]: Likewise.
22261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
22262         [GLIBC_2.22]: Likewise.
22263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
22264         [GLIBC_2.22]: Likewise.
22265         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
22266         Likewise.
22267         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
22268         Likewise.
22269         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
22270         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
22271         [GLIBC_2.22]: Likewise.
22272         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
22273         [GLIBC_2.22]: Likewise.
22274         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
22275         [GLIBC_2.22]: Likewise.
22276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
22277         [GLIBC_2.22]: Likewise.
22278         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
22279         Likewise.
22280         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
22281         Likewise.
22282         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
22283         Likewise.
22284         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
22285         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
22286
22287 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
22288
22289         [BZ #18643]
22290         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
22291         IPV6_PATHMTU, and IPV6_DONTFRAG.
22292
22293 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
22294
22295         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
22296         and _IO_UNBUFFERED.
22297         * libio/oldfileops.c: Likewise.
22298         * libio/wfileops.c: Likewise.
22299
22300 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
22301
22302         * nscd/selinux.c: Delete selinux/flask.h include.
22303
22304 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
22305
22306         [BZ #18641]
22307         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
22308         (putpwent): Likewise.
22309         (getpwnam): Likewise.
22310         (getpwent_r): Likewise.
22311         (getpwuid_r): Likewise.
22312         (getpwnam_r): Likewise.
22313         (fgetpwent_r): Likewise.
22314
22315 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
22316
22317         [BZ #18557]
22318         * inet/rcmd.c (__validuser2_sa): Check user first to
22319         short-circuit host check.
22320
22321 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
22322             Mikhail Ilin  <m.ilin@samsung.com>
22323
22324         [BZ #17833]
22325         * elf/Makefile (tests): Add tst-nodelete.
22326         (modules-names): Add tst-nodelete-uniquemod.
22327         (tst-nodelete-uniquemod.so-no-z-defs): New.
22328         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
22329         (tst-nodelete-zmod.so-no-z-defs): Likewise.
22330         ($(objpfx)tst-nodelete): Likewise.
22331         ($(objpfx)tst-nodelete.out): Likewise.
22332         (LDFLAGS-tst-nodelete): Likewise.
22333         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
22334         * elf/dl-close.c (_dl_close_worker): Add a parameter to
22335         implement forced object deletion.
22336         (_dl_close): Pass false to _dl_close_worker.
22337         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
22338         * elf/tst-nodelete.cc: New file.
22339         * elf/tst-nodeletelib.cc: Likewise.
22340         * elf/tst-znodeletelib.cc: Likewise.
22341         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
22342
22343 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
22344
22345         [BZ #18508]
22346         * stdlib/Makefile ($(objpfx)tst-makecontext3):
22347         Depend on $(libdl).
22348         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
22349         is not called infinitely times.
22350         (backtrace_helper): New function.
22351         (trace_arg): New struct.
22352         (st1): Enlarge stack size.
22353         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
22354         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
22355         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
22356         Likewise.
22357
22358 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
22359
22360         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22361
22362 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
22363
22364         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
22365         Include sys/types.h instead of bits/types.h.
22366         Remove inclusion of bits/wordsize.h.
22367
22368 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
22369
22370         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
22371         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
22372         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
22373         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
22374         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
22375         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
22376
22377 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
22378
22379         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
22380         link-defines.sym.
22381         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
22382         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
22383         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
22384         and LR_SIZE.
22385         * sysdeps/i386/link-defines.sym: New file.
22386
22387 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
22388
22389         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
22390         (modules-names): Add tst-auditmod3a tst-auditmod3b.
22391         ($(objpfx)tst-audit3): New rule.
22392         ($(objpfx)tst-audit3.out): Likewise.
22393         * sysdeps/i386/tst-audit3.c: New file.
22394         * sysdeps/i386/tst-audit3.h: Likewise.
22395         * sysdeps/i386/tst-auditmod3a.c: Likewise.
22396         * sysdeps/i386/tst-auditmod3b.c: Likewise.
22397
22398 2015-07-07  Torvald Riegel  <triegel@redhat.com>
22399
22400         [BZ #18633]
22401         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
22402         pointer in C code.
22403         (__strcat_c): Likewise.
22404         (__strcat_g): Likewise.
22405
22406 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
22407
22408         [BZ #18592]
22409         * misc/sbrk.c: Set errno to ENOMEM on overflow.
22410
22411 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
22412
22413         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
22414         New function.  (__ieee754_sqrtf): New function.
22415         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
22416         New function.
22417         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
22418         New function.
22419
22420 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
22421
22422         * sysdeps/ieee754/support.c: Remove unused file.
22423
22424 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22425
22426         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
22427         registers instead of d ones so the layout is kernel abi compatible.
22428         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
22429         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
22430         Likewise.
22431
22432 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22433
22434         * sysdeps/aarch64/libm-test-ulps: Regenerated.
22435
22436 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
22437
22438         [BZ #18619]
22439         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
22440         and return argument in case of subnormal argument.
22441
22442 2015-07-01  Martin Sebor  <msebor@redhat.com>
22443
22444         [BZ #18435]
22445         * nptl/Makefile: Add tst-once5.cc.
22446         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
22447         Remove macro redefinitions.
22448         * nptl/tst-once5.cc: New test.
22449
22450 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
22451
22452         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
22453
22454         * sysdeps/arm/libm-test-ulps: Regenerated.
22455
22456         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
22457         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
22458
22459 2015-06-30  Torvald Riegel  <triegel@redhat.com>
22460
22461         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
22462         lll_lock_wait_private and lll_futex_wake probes.
22463
22464         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
22465         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
22466         Likewise.
22467         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
22468         atomic_spin_nop.
22469         * sysdeps/x86_64/bits/atomic.h: Likewise.
22470         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
22471         to atomic_spin_nop and move ...
22472         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
22473         ... here and ...
22474         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
22475         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
22476         atomic_spin_nop instead of BUSY_WAIT_NOP.
22477         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
22478         Likewise.
22479         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
22480         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
22481         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
22482         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
22483         instead of atomic_delay.
22484
22485 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
22486
22487         [BZ #18613]
22488         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
22489         X_ADJ not X when adjusting exponent.
22490         (__ieee754_gamma_r): Do intermediate computations in
22491         round-to-nearest then adjust overflowing and underflowing results
22492         as needed.
22493         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
22494         of X_ADJ not X when adjusting exponent.
22495         (__ieee754_gammaf_r): Do intermediate computations in
22496         round-to-nearest then adjust overflowing and underflowing results
22497         as needed.
22498         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
22499         log of X_ADJ not X when adjusting exponent.
22500         (__ieee754_gammal_r): Do intermediate computations in
22501         round-to-nearest then adjust overflowing and underflowing results
22502         as needed.  Use 1.0L not 1.0f as numerator of division.
22503         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
22504         log of X_ADJ not X when adjusting exponent.
22505         (__ieee754_gammal_r): Do intermediate computations in
22506         round-to-nearest then adjust overflowing and underflowing results
22507         as needed.  Use 1.0L not 1.0f as numerator of division.
22508         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
22509         of X_ADJ not X when adjusting exponent.
22510         (__ieee754_gammal_r): Do intermediate computations in
22511         round-to-nearest then adjust overflowing and underflowing results
22512         as needed.  Use 1.0L not 1.0f as numerator of division.
22513         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
22514         to auto-libm-test-in.
22515         (tgamma_test): Use ALL_RM_TEST.
22516         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
22517         tests of tgamma with spurious-overflow.
22518         * math/auto-libm-test-out: Regenerated.
22519         * math/gen-libm-have-vector-test.sh: Do not check for START.
22520         * sysdeps/i386/fpu/libm-test-ulps: Update.
22521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22522
22523         [BZ #18612]
22524         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
22525         arguments, just return 0.5 times the argument, with underflow
22526         forced as needed.
22527         * math/auto-libm-test-in: Add more tests of j1.
22528         * math/auto-libm-test-out: Regenerated.
22529
22530         [BZ #16559]
22531         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
22532         (__ieee754_j1): Force underflow exception for small results.
22533         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
22534         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
22535         (__ieee754_j1f): Force underflow exception for small results.
22536         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
22537         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
22538         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
22539         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
22540         (__ieee754_j1l): Force underflow exception for small results.
22541         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
22542         * math/auto-libm-test-in: Add more tests of j1 and jn.
22543         * math/auto-libm-test-out: Regenerated.
22544
22545         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
22546         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
22547         (PF_MPLS): Likewise.
22548         (AF_IB): Likewise.
22549         (AF_MPLS): Likewise.
22550         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
22551         value and macro.
22552         (MS_RMT_MASK): Include MS_LAZYTIME.
22553
22554 2015-06-26  Mel Gorman  <mgorman@suse.de>
22555
22556         [BZ #18502]
22557         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
22558         already minimal.
22559
22560 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
22561
22562         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
22563         (DT_MIPS_NUM): Update.
22564         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
22565         DT_MIPS_RLD_MAP_REL.
22566
22567 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
22568
22569         [BZ #16559]
22570         [BZ #18602]
22571         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
22572         round-to-nearest internally then recompute results that
22573         underflowed to zero in the original rounding mode.
22574         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
22575         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
22576         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
22577         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
22578         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
22579         * sysdeps/i386/fpu/libm-test-ulps: Update.
22580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22581
22582 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
22583
22584         * NEWS: Fixed description of link with vector math library.
22585
22586 2015-06-25  Andreas Schwab  <schwab@suse.de>
22587
22588         [BZ #18549]
22589         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
22590         * libio/test-fmemopen.c (do_test): Add test for it.
22591
22592 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22593
22594         [BZ #17841]
22595         * Makeconfig (no-pie-ldflag): New.
22596         (+link): Set to $(+link-pie) if default to PIE.
22597         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
22598         * config.make.in (build-pie-default): New.
22599         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
22600         is default.  AC_SUBST.
22601         * configure: Regenerated.
22602         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
22603
22604 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22605
22606         * nptl/descr.h (struct pthread): Change type of field setxid_futex
22607         to 'unsigned int'.
22608
22609         * resolv/gai_misc.h (struct waitlist): Change type of field
22610         counterp to 'volatile unsigned int *'.
22611         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
22612         FUTEXADDR and OLDVAL.
22613         * resolv/getaddrinfo_a.c (getaddrinfo_a):
22614         Give local variable TOTAL type 'volatile unsigned int'.
22615         (struct async_waitlist): Change type of field counter to 'unsigned int'.
22616         * resolv/gai_suspend.c (gai_suspend):
22617         Give local variable CNTR type 'unsigned int'.
22618
22619         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
22620         counterp to 'volatile unsigned int *'.
22621         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
22622         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
22623         (aio_suspend): Give local variable CNTR type 'unsigned int'.
22624         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
22625         Give local variable TOTAL type 'volatile unsigned int'.
22626         (struct async_waitlist): Change type of field counter to 'unsigned int'.
22627
22628 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22629
22630         [BZ #18383]
22631         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
22632         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
22633         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
22634         comment for i386/x86-64.
22635         (test-xfail-tst-tlsalign-extern-static): Removed.
22636
22637 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22638
22639         * math/test-double.h: New file.
22640         * math/test-float.h: Likewise.
22641         * math/test-ldouble.h: Likewise.
22642         * math/test-math-inline.h: Likewise.
22643         * math/test-math-no-inline.h: Likewise.
22644         * math/test-math-scalar.h: Likewise.
22645         * math/test-math-vector.h: Likewise.
22646         * math/test-vec-loop.h: Remove file.  Contents moved into
22647         test-math-vector.h.
22648         * math/libm-test.inc (MATHCONST): Do not document macro.
22649         * math/test-double.c: Include test-double.h, test-math-no-inline.h
22650         and test-math-scalar.h.
22651         (FUNC): Remove macro.
22652         (FUNC_TEST): Likewise.
22653         (FLOAT): Likewise.
22654         (MATHCONST): Likewise.
22655         (PRINTF_EXPR): Likewise.
22656         (PRINTF_XEXPR): Likewise.
22657         (PRINTF_NEXPR): Likewise.
22658         (TEST_DOUBLE): Likewise.
22659         (TEST_MATHVEC): Likewise.
22660         (__NO_MATH_INLINES): Likewise.
22661         * math/test-float.c: Include test-float.h, test-math-no-inline.h
22662         and test-math-scalar.h.
22663         (FUNC): Remove macro.
22664         (FUNC_TEST): Likewise.
22665         (FLOAT): Likewise.
22666         (MATHCONST): Likewise.
22667         (PRINTF_EXPR): Likewise.
22668         (PRINTF_XEXPR): Likewise.
22669         (PRINTF_NEXPR): Likewise.
22670         (TEST_FLOAT): Likewise.
22671         (TEST_MATHVEC): Likewise.
22672         (__NO_MATH_INLINES): Likewise.
22673         * math/test-idouble.c: Include test-double.h, test-math-inline.h
22674         and test-math-scalar.h.
22675         (FUNC): Remove macro.
22676         (FUNC_TEST): Likewise.
22677         (FLOAT): Likewise.
22678         (MATHCONST): Likewise.
22679         (PRINTF_EXPR): Likewise.
22680         (PRINTF_XEXPR): Likewise.
22681         (PRINTF_NEXPR): Likewise.
22682         (TEST_DOUBLE): Likewise.
22683         (TEST_MATHVEC): Likewise.
22684         (TEST_INLINE): Likewise.
22685         (__NO_MATH_INLINES): Likewise.
22686         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
22687         test-math-scalar.h.
22688         (FUNC): Remove macro.
22689         (FUNC_TEST): Likewise.
22690         (FLOAT): Likewise.
22691         (MATHCONST): Likewise.
22692         (PRINTF_EXPR): Likewise.
22693         (PRINTF_XEXPR): Likewise.
22694         (PRINTF_NEXPR): Likewise.
22695         (TEST_FLOAT): Likewise.
22696         (TEST_MATHVEC): Likewise.
22697         (TEST_INLINE): Likewise.
22698         (__NO_MATH_INLINES): Likewise.
22699         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
22700         and test-math-scalar.h.
22701         (FUNC): Remove macro.
22702         (FUNC_TEST): Likewise.
22703         (FLOAT): Likewise.
22704         (MATHCONST): Likewise.
22705         (PRINTF_EXPR): Likewise.
22706         (PRINTF_XEXPR): Likewise.
22707         (PRINTF_NEXPR): Likewise.
22708         (TEST_LDOUBLE): Likewise.
22709         (TEST_MATHVEC): Likewise.
22710         (TEST_INLINE): Likewise.
22711         (__NO_MATH_INLINES): Likewise.
22712         * math/test-ldouble.c: Include test-ldouble.h,
22713         test-math-no-inline.h and test-math-scalar.h.
22714         (FUNC): Remove macro.
22715         (FUNC_TEST): Likewise.
22716         (FLOAT): Likewise.
22717         (MATHCONST): Likewise.
22718         (PRINTF_EXPR): Likewise.
22719         (PRINTF_XEXPR): Likewise.
22720         (PRINTF_NEXPR): Likewise.
22721         (TEST_LDOUBLE): Likewise.
22722         (TEST_MATHVEC): Likewise.
22723         (__NO_MATH_INLINES): Likewise.
22724         * math/test-double-vlen2.h: Include test-double.h,
22725         test-math-no-inline.h and test-math-vector.h.
22726         (FLOAT): Remove macro.
22727         (FUNC): Likewise.
22728         (MATHCONST): Likewise.
22729         (PRINTF_EXPR): Likewise.
22730         (PRINTF_XEXPR): Likewise.
22731         (PRINTF_NEXPR): Likewise.
22732         (TEST_DOUBLE): Likewise.
22733         (TEST_MATHVEC): Likewise.
22734         (__NO_MATH_INLINES): Likewise.
22735         (CNCT): Likewise.
22736         (CONCAT): Likewise.
22737         (WRAPPER_NAME): Likewise.
22738         (WRAPPER_DECL): Likewise.
22739         (WRAPPER_DECL_ff): Likewise.
22740         (WRAPPER_DECL_fFF): Likewise.
22741         (VECTOR_WRAPPER): Likewise.
22742         (VECTOR_WRAPPER_ff): Likewise.
22743         (VECTOR_WRAPPER_fFF): Likewise.
22744         (VEC_LEN): New macro.
22745         * math/test-double-vlen4.h: Include test-double.h,
22746         test-math-no-inline.h and test-math-vector.h.
22747         (FLOAT): Remove macro.
22748         (FUNC): Likewise.
22749         (MATHCONST): Likewise.
22750         (PRINTF_EXPR): Likewise.
22751         (PRINTF_XEXPR): Likewise.
22752         (PRINTF_NEXPR): Likewise.
22753         (TEST_DOUBLE): Likewise.
22754         (TEST_MATHVEC): Likewise.
22755         (__NO_MATH_INLINES): Likewise.
22756         (CNCT): Likewise.
22757         (CONCAT): Likewise.
22758         (WRAPPER_NAME): Likewise.
22759         (WRAPPER_DECL): Likewise.
22760         (WRAPPER_DECL_ff): Likewise.
22761         (WRAPPER_DECL_fFF): Likewise.
22762         (VECTOR_WRAPPER): Likewise.
22763         (VECTOR_WRAPPER_ff): Likewise.
22764         (VECTOR_WRAPPER_fFF): Likewise.
22765         (VEC_LEN): New macro.
22766         * math/test-double-vlen8.h: Include test-double.h,
22767         test-math-no-inline.h and test-math-vector.h.
22768         (FLOAT): Remove macro.
22769         (FUNC): Likewise.
22770         (MATHCONST): Likewise.
22771         (PRINTF_EXPR): Likewise.
22772         (PRINTF_XEXPR): Likewise.
22773         (PRINTF_NEXPR): Likewise.
22774         (TEST_DOUBLE): Likewise.
22775         (TEST_MATHVEC): Likewise.
22776         (__NO_MATH_INLINES): Likewise.
22777         (CNCT): Likewise.
22778         (CONCAT): Likewise.
22779         (WRAPPER_NAME): Likewise.
22780         (WRAPPER_DECL): Likewise.
22781         (WRAPPER_DECL_ff): Likewise.
22782         (WRAPPER_DECL_fFF): Likewise.
22783         (VECTOR_WRAPPER): Likewise.
22784         (VECTOR_WRAPPER_ff): Likewise.
22785         (VECTOR_WRAPPER_fFF): Likewise.
22786         (VEC_LEN): New macro.
22787         * math/test-float-vlen4.h: Include test-float.h,
22788         test-math-no-inline.h and test-math-vector.h.
22789         (FLOAT): Remove macro.
22790         (FUNC): Likewise.
22791         (MATHCONST): Likewise.
22792         (PRINTF_EXPR): Likewise.
22793         (PRINTF_XEXPR): Likewise.
22794         (PRINTF_NEXPR): Likewise.
22795         (TEST_FLOAT): Likewise.
22796         (TEST_MATHVEC): Likewise.
22797         (__NO_MATH_INLINES): Likewise.
22798         (CNCT): Likewise.
22799         (CONCAT): Likewise.
22800         (WRAPPER_NAME): Likewise.
22801         (WRAPPER_DECL): Likewise.
22802         (WRAPPER_DECL_ff): Likewise.
22803         (WRAPPER_DECL_fFF): Likewise.
22804         (VECTOR_WRAPPER): Likewise.
22805         (VECTOR_WRAPPER_ff): Likewise.
22806         (VECTOR_WRAPPER_fFF): Likewise.
22807         (VEC_LEN): New macro.
22808         * math/test-float-vlen8.h: Include test-float.h,
22809         test-math-no-inline.h and test-math-vector.h.
22810         (FLOAT): Remove macro.
22811         (FUNC): Likewise.
22812         (MATHCONST): Likewise.
22813         (PRINTF_EXPR): Likewise.
22814         (PRINTF_XEXPR): Likewise.
22815         (PRINTF_NEXPR): Likewise.
22816         (TEST_FLOAT): Likewise.
22817         (TEST_MATHVEC): Likewise.
22818         (__NO_MATH_INLINES): Likewise.
22819         (CNCT): Likewise.
22820         (CONCAT): Likewise.
22821         (WRAPPER_NAME): Likewise.
22822         (WRAPPER_DECL): Likewise.
22823         (WRAPPER_DECL_ff): Likewise.
22824         (WRAPPER_DECL_fFF): Likewise.
22825         (VECTOR_WRAPPER): Likewise.
22826         (VECTOR_WRAPPER_ff): Likewise.
22827         (VECTOR_WRAPPER_fFF): Likewise.
22828         (VEC_LEN): New macro.
22829         * math/test-float-vlen16.h: Include test-float.h,
22830         test-math-no-inline.h and test-math-vector.h.
22831         (FLOAT): Remove macro.
22832         (FUNC): Likewise.
22833         (MATHCONST): Likewise.
22834         (PRINTF_EXPR): Likewise.
22835         (PRINTF_XEXPR): Likewise.
22836         (PRINTF_NEXPR): Likewise.
22837         (TEST_FLOAT): Likewise.
22838         (TEST_MATHVEC): Likewise.
22839         (__NO_MATH_INLINES): Likewise.
22840         (CNCT): Likewise.
22841         (CONCAT): Likewise.
22842         (WRAPPER_NAME): Likewise.
22843         (WRAPPER_DECL): Likewise.
22844         (WRAPPER_DECL_ff): Likewise.
22845         (WRAPPER_DECL_fFF): Likewise.
22846         (VECTOR_WRAPPER): Likewise.
22847         (VECTOR_WRAPPER_ff): Likewise.
22848         (VECTOR_WRAPPER_fFF): Likewise.
22849         (VEC_LEN): New macro.
22850         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
22851         test-vec-loop.h.
22852         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22853         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22854         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22855         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22856         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22857         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22858         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22859
22860 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22861
22862         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
22863         (__getlogin_r): ... this.
22864
22865 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22866
22867         [BZ #18594]
22868         * math/s_ccosh.c (__ccosh): Compare with least normal value
22869         instead of comparing class with FP_SUBNORMAL.
22870         * math/s_ccoshf.c (__ccoshf): Likewise.
22871         * math/s_ccoshl.c (__ccoshl): Likewise.
22872         * math/s_cexp.c (__cexp): Likewise.
22873         * math/s_cexpf.c (__cexpf): Likewise.
22874         * math/s_cexpl.c (__cexpl): Likewise.
22875         * math/s_csin.c (__csin): Likewise.
22876         * math/s_csinf.c (__csinf): Likewise.
22877         * math/s_csinh.c (__csinh): Likewise.
22878         * math/s_csinhf.c (__csinhf): Likewise.
22879         * math/s_csinhl.c (__csinhl): Likewise.
22880         * math/s_csinl.c (__csinl): Likewise.
22881         * math/s_ctan.c (__ctan): Likewise.
22882         * math/s_ctanf.c (__ctanf): Likewise.
22883         * math/s_ctanh.c (__ctanh): Likewise.
22884         * math/s_ctanhf.c (__ctanhf): Likewise.
22885         * math/s_ctanhl.c (__ctanhl): Likewise.
22886         * math/s_ctanl.c (__ctanl): Likewise.
22887         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
22888         csin, csinh, ctan and ctanh.
22889         * math/auto-libm-test-out: Regenerated.
22890         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
22891         * sysdeps/i386/fpu/libm-test-ulps: Update.
22892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22893
22894 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22895
22896         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
22897         return value is wrong, print the expected value too.
22898
22899 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22900
22901         [BZ #18585]
22902         * elf/readlib.c (is_gdb_python_file): New.
22903         (process_file): Don't issue errors on filenames with -gdb.py
22904         suffix.
22905
22906 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22907
22908         * math/auto-libm-test-in: Add more tests of csin and csinh.
22909         * math/auto-libm-test-out: Regenerated.
22910         * math/libm-test.inc (csin_test_data): Remove tests moved to
22911         auto-libm-test-in.
22912         (csinh_test_data): Likewise.
22913
22914         [BZ #18593]
22915         * math/s_csin.c (__csin): Negate before rather than after possibly
22916         overflowing multiplication.
22917         * math/s_csinf.c (__csinf): Likewise.
22918         * math/s_csinh.c (__csinh): Likewise.
22919         * math/s_csinhf.c (__csinhf): Likewise.
22920         * math/s_csinhl.c (__csinhl): Likewise.
22921         * math/s_csinl.c (__csinl): Likewise.
22922         * math/auto-libm-test-in: Add some tests of csin and csinh.
22923         * math/auto-libm-test-out: Regenerated.
22924         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
22925         (csinh_test_data): Likewise.
22926         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22927
22928         [BZ #18586]
22929         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
22930         underflow exception for small results.
22931
22932 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
22933
22934         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
22935         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
22936         variable and included header.
22937         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
22938         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
22939         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
22940         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
22941         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
22942         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
22943         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
22944         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
22945         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
22946         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
22947         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
22948         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
22949         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
22950         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
22951         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
22952         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
22953
22954 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22955
22956         [BZ #16526]
22957         [BZ #16538]
22958         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
22959         (__sin): Force underflow exception for arguments with small
22960         absolute value.
22961         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
22962         (__kernel_sinf): Force underflow exception for arguments with
22963         small absolute value.
22964         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
22965         (__kernel_sincosl): Force underflow exception for arguments with
22966         small absolute value.
22967         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
22968         (__kernel_sinl): Force underflow exception for arguments with
22969         small absolute value.
22970         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
22971         (__kernel_sincosl): Force underflow exception for arguments with
22972         small absolute value.
22973         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
22974         (__kernel_sinl): Force underflow exception for arguments with
22975         small absolute value.
22976         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
22977         (__kernel_sinl): Force underflow exception for arguments with
22978         small absolute value.
22979         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
22980         (__kernel_sinf): Force underflow exception for arguments with
22981         small absolute value.
22982         * math/auto-libm-test-in: Add more tests of sin and sincos.
22983         * math/auto-libm-test-out: Regenerated.
22984
22985         [BZ #18245]
22986         [BZ #18583]
22987         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
22988         (__kernel_standard_l): Use feholdexcept and fesetenv around
22989         conversion to double instead of special-casing overflow and
22990         underflow.
22991         * math/libm-test.inc (fmod_test_data): Add more tests.
22992         (remainder_test_data): Likewise.
22993         (sqrt_test_data): Likewise.
22994
22995 2015-06-23  Torvald Riegel  <triegel@redhat.com>
22996
22997         [BZ #17403]
22998         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
22999         atomic_read_barrier, atomic_write_barrier): Define.
23000         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
23001         atomic_read_barrier, atomic_write_barrier): Define.
23002
23003 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
23004
23005         * math/Makefile [$(PERL) != no]
23006         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
23007         dependency on libm-test.stmp below the inclusion of Rules.
23008
23009 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
23010
23011         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
23012         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
23013         and included header.
23014         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
23015         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
23016         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
23017         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
23018         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
23019         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
23020         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
23021         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
23022         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
23023         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
23024         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
23025         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
23026         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
23027         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
23028         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
23029         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
23030         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
23031         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
23032         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
23033
23034 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
23035
23036         [BZ #18371]
23037         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
23038         intermediate but not final result might underflow.
23039         * math/s_csqrtf.c (__csqrtf): Likewise.
23040         * math/s_csqrtl.c (__csqrtl): Likewise.
23041         * math/auto-libm-test-in: Add more tests of csqrt.
23042         * math/auto-libm-test-out: Regenerated.
23043         * sysdeps/i386/fpu/libm-test-ulps: Update.
23044
23045         [BZ #18219]
23046         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
23047         threshold on absolute value of exponent for which scaling is used.
23048         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
23049         * math/auto-libm-test-in: Add more tests of exp2.
23050         * math/auto-libm-test-out: Regenerated.
23051
23052 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
23053
23054         [BZ #17977]
23055         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
23056         when initializing interface list, based on the bug analysis
23057         and the patch proposed by Eric Newton.
23058         * resolv/tst-res_hconf_reorder.c: New test.
23059         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
23060         tst-res_hconf_reorder.
23061         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
23062         and $(shared-thread-library).
23063         (tst-res_hconf_reorder-ENV): New variable.
23064
23065         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
23066         in comment.
23067
23068 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
23069
23070         [BZ #16353]
23071         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
23072         (__expm1): Force underflow exception for arguments with small
23073         absolute value.
23074         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
23075         (__expm1f): Force underflow exception for arguments with small
23076         absolute value.
23077         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
23078         (__expm1): Force underflow exception for arguments with small
23079         absolute value.
23080         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
23081         (__expm1f): Force underflow exception for arguments with small
23082         absolute value.
23083         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
23084         Check for small arguments before calling __expm1.
23085         * math/auto-libm-test-in: Do not mark underflow exceptions as
23086         possibly missing for bug 16353.
23087         * math/auto-libm-test-out: Regenerated.
23088
23089 2015-06-22  Andreas Schwab  <schwab@suse.de>
23090
23091         [BZ #18513]
23092         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
23093         PTR queries.
23094
23095 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
23096
23097         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
23098
23099         * string/strcoll_l.c: Remove unused struct element idxnow.
23100
23101 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
23102
23103         [BZ #18569]
23104         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
23105         underflow and return argument in case of subnormal argument.
23106         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
23107         Likewise.
23108         * math/auto-libm-test-in: Add more tests of expm1.
23109         * math/auto-libm-test-out: Regenerated.
23110
23111         [BZ #16361]
23112         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
23113         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
23114         tiny results.
23115         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
23116         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
23117         tiny results.
23118         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
23119         mark underflow exceptions as possibly missing for bug 16361.
23120         * math/auto-libm-test-out: Regenerated.
23121
23122 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
23123
23124         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
23125         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
23126         Remove variable.
23127         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
23128         (test-xfail-XOPEN2K8/utmpx.h/conform).
23129
23130         * conform/conformtest.pl ($xerrors): New variable.
23131         (note_error): New function.
23132         (compiletest): New argument $xfail.  Use not_error.
23133         (runtest): Likewise.
23134         (top level): Handle xfail- lines.  Update calls to compiletest and
23135         runtest.  Handle xfail- and optional- in headers listed with
23136         allow-header.
23137         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
23138         (O_EXEC): Likewise.
23139         (O_SEARCH): Likewise.
23140         * conform/data/stropts.h-data (ioctl): Likewise.
23141         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
23142         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
23143         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
23144         (msghdr.msg_controllen): Likewise.
23145         (cmsghdr.cmsg_len): Likewise.
23146         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
23147         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
23148         variable.
23149         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
23150         (test-xfail-XPG4/stropts.h/conform): Likewise.
23151         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
23152         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
23153         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
23154         (test-xfail-UNIX98/stropts.h/conform): Likewise.
23155         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
23156         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
23157         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
23158         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
23159         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
23160         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
23161         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
23162         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
23163         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
23164         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
23165         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
23166         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
23167         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
23168         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
23169         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
23170
23171 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
23172
23173         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
23174         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
23175         definitions for proper unfolding of __MATHDECL_VEC.
23176
23177 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
23178
23179         * benchtests/bench-strcoll.c:
23180         Include string.h.
23181         (main): Remove unused variable res.
23182
23183 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
23184
23185         * timezone/Makefile (%/UTC %/Universal):
23186         Generate test-result files for UTC and Universal.
23187
23188 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
23189
23190         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
23191
23192 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
23193
23194         [BZ #16350]
23195         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
23196         for arguments with small absolute value.
23197         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
23198         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
23199         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
23200         (__asinh): Force underflow exception for arguments with small
23201         absolute value.
23202         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
23203         (__asinhf): Force underflow exception for arguments with small
23204         absolute value.
23205         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
23206         (__asinhl): Force underflow exception for arguments with small
23207         absolute value.
23208         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
23209         (__asinhl): Force underflow exception for arguments with small
23210         absolute value.
23211         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
23212         (__asinhl): Force underflow exception for arguments with small
23213         absolute value.
23214         * math/auto-libm-test-in: Do not mark underflow exceptions as
23215         possibly missing for bug 16350.
23216         * math/auto-libm-test-out: Regenerated.
23217
23218         * include/bits/ipc.h: Remove file.
23219         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
23220         variable.
23221         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
23222         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
23223         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
23224         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
23225         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
23226         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
23227         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
23228         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
23229         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
23230
23231         * math/auto-libm-test-in: Remove spurious underflow allowance for
23232         tests of cexp.
23233         * math/auto-libm-test-out: Regenerated.
23234
23235         [BZ #18558]
23236         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
23237         unconditional definition.
23238         (MCAST_BLOCK_SOURCE): Likewise.
23239         (MCAST_UNBLOCK_SOURCE): Likewise.
23240         (MCAST_LEAVE_GROUP): Likewise.
23241         (MCAST_JOIN_SOURCE_GROUP): Likewise.
23242         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
23243         (MCAST_MSFILTER): Likewise.
23244         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
23245         Remove variable.
23246         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
23247         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
23248         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
23249         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
23250         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
23251
23252 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
23253
23254         * NEWS: Mention addition of x86_64 vector sincosf.
23255         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
23256         * math/test-float-vlen4.h: Likewise.
23257         * math/test-float-vlen8.h: Likewise.
23258         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
23259         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
23260         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23261         * sysdeps/x86_64/fpu/Versions: New versions added.
23262         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23263         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23264         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23265         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
23266         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
23267         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
23268         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
23269         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
23270         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
23271         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
23272         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
23273         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
23274         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
23275         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
23276         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
23277         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
23278         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
23279         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
23280         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
23281         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
23282         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
23283         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
23284         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
23285         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
23286
23287         * NEWS: Mention addition of x86_64 vector sincos.
23288         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
23289         * math/math.h (__MATHDECL_VEC): New macro.
23290         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
23291         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
23292         declaration under condition.
23293         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
23294         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
23295         TEST_VEC_LOOP change.
23296         * math/test-double-vlen4.h: Likewise.
23297         * math/test-double-vlen8.h: Likewise.
23298         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
23299         * math/test-float-vlen4.h: Likewise.
23300         * math/test-float-vlen8.h: Likewise.
23301         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
23302         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
23303         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23304         * sysdeps/x86_64/fpu/Versions: New versions added.
23305         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23306         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23307         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23308         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
23309         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
23310         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
23311         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
23312         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
23313         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
23314         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
23315         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
23316         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
23317         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
23318         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
23319         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
23320         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
23321         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
23322         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23323         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23324         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23325         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23326         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23327         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23328         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23329
23330         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
23331         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23332         redirections for powf.
23333         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23334         * sysdeps/x86_64/fpu/Versions: New versions added.
23335         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23336         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23337         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23338         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
23339         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
23340         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
23341         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
23342         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
23343         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
23344         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
23345         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
23346         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
23347         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
23348         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
23349         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
23350         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
23351         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
23352         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
23353         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
23354         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
23355         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
23356         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
23357         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
23358         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
23359         * math/test-float-vlen16.h: Fixed 2 argument macro.
23360         * math/test-float-vlen4.h: Likewise.
23361         * math/test-float-vlen8.h: Likewise.
23362         * NEWS: Mention addition of x86_64 vector powf.
23363
23364 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
23365
23366         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
23367         and redefine.
23368         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
23369         and redefine.
23370         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
23371         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
23372         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
23373
23374         [BZ #18553]
23375         * resource/getpriority.c (getpriority): Rename to __getpriority
23376         and define as weak alias of __getpriority.
23377         * resource/setpriority.c (setpriority): Rename to __setpriority
23378         and define as weak alias of __setpriority.
23379         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
23380         __getpriority and define as weak alias of __getpriority.
23381         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
23382         __setpriority and define as weak alias of __setpriority.
23383         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
23384         strong name.
23385         (setpriority): Use __setpriority as strong name.
23386         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
23387         __getpriority and define as weak alias of __getpriority.
23388         * include/sys/resource.h (__getpriority): Declare.  Use
23389         libc_hidden_proto.
23390         (__setpriority): Likewise.
23391         (getpriority): Don't use libc_hidden_proto.
23392         (setpriority): Likewise.
23393         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
23394         getpriority.  Call __setpriority instead of setpriority.
23395         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
23396         Remove variable.
23397
23398         [BZ #18547]
23399         * misc/getttyent.c (getttynam): Rename to __getttynam and define
23400         as weak alias of __getttynam.  Use prototype function definition.
23401         Call __setttyent, __getttyent and __endttyent instead of
23402         setttyent, getttyent and endttyent.
23403         (getttyent): Rename to __getttyent and define as weak alias of
23404         __getttyent.  Call __setttyent instead of setttyent.  Call
23405         __fgets_unlocked instead of fgets_unlocked.
23406         (setttyent): Rename to __setttyent and define as weak alias of
23407         __setttyent.
23408         (endttyent): Rename to __endttyent and define as weak alias of
23409         __endttyent.
23410         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
23411         (__setttyent): Likewise.
23412         (__endttyent): Likewise.
23413         (getttyent): Don't use libc_hidden_proto.
23414         (setttyent): Likewise.
23415         (endttyent): Likewise.
23416         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
23417         __endttyent instead of setttyent, getttyent and endttyent.
23418         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
23419         Remove variable.
23420
23421         [BZ #18546]
23422         * socket/recv.c (__recv): Use libc_hidden_def.
23423         * socket/socket.c (__socket): Likewise.
23424         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
23425         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
23426         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
23427         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
23428         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
23429         libc_hidden_def.
23430         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
23431         libc_hidden_weak.
23432         * include/sys/socket.h (__socket): Do not use attribute_hidden.
23433         Use libc_hidden_proto.
23434         (__recv): Likewise.
23435         * socket/Versions (libc): Export __recv and __socket at version
23436         GLIBC_PRIVATE.
23437         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
23438         instead of recv.
23439         (init_mq_netlink): Call __socket instead of socket.
23440         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
23441         Remove variable.
23442
23443         [BZ #18545]
23444         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
23445         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
23446         hidden_weak.
23447         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
23448         define as alias of __mq_timedsend.  Use hidden_weak.
23449         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
23450         __mq_timedsend as strong name.
23451         (mq_timedreceive): Use __mq_timedreceive as strong name.
23452         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
23453         (__mq_timedreceive): Likewise.
23454         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
23455         __mq_timedreceive instead of mq_timedreceive.
23456         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
23457         instead of mq_timedsend.
23458         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
23459         Remove variable.
23460
23461         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
23462         hidden_def and hidden_weak instead of libc_hidden_def and
23463         libc_hidden_weak.
23464         (top level): Refer to hidden_def in comment.
23465         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
23466         macro.  Use it instead of libc_hidden_def.
23467         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
23468         specify __GI_* name explicitly.
23469         (mq_timedreceive): Likewise.
23470         (mq_setattr): Likewise.
23471
23472         [BZ #18544]
23473         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
23474         __pthread_barrier_init and define as weak alias of
23475         __pthread_barrier_init.
23476         * sysdeps/sparc/nptl/pthread_barrier_init.c
23477         (pthread_barrier_init): Likewise.
23478         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
23479         __pthread_barrier_wait and define as weak alias of
23480         __pthread_barrier_wait.
23481         * sysdeps/sparc/nptl/pthread_barrier_wait.c
23482         (pthread_barrier_wait): Likewise.
23483         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
23484         (pthread_barrier_wait): Likewise.
23485         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
23486         (pthread_barrier_wait): Likewise.
23487         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
23488         (pthread_barrier_wait): Likewise.
23489         * nptl/Versions (libpthread): Export __pthread_barrier_init and
23490         __pthread_barrier_wait at version GLIBC_PRIVATE.
23491         * include/pthread.h (__pthread_barrier_init): Declare.
23492         (__pthread_barrier_wait): Likewise.
23493         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
23494         Call __pthread_barrier_wait instead of pthread_barrier_wait.
23495         (helper_thread): Likewise.
23496         (init_mq_netlink): Call __pthread_barrier_init instead of
23497         pthread_barrier_init.
23498
23499         [BZ #18542]
23500         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
23501         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
23502         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
23503         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
23504         vswscanf.
23505         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
23506         Remove variable.
23507
23508         [BZ #18540]
23509         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
23510         strong alias of _IO_fflush.  Use libc_hidden_def.
23511         * libio/iofflush_u.c (fflush_unlocked): Rename to
23512         __fflush_unlocked and define as weak alias of __fflush_unlocked.
23513         Use libc_hidden_weak.
23514         * include/stdio.h (__fflush_unlocked): Declare.  Use
23515         libc_hidden_proto.
23516         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
23517         fflush_unlocked.
23518         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
23519         Remove variable.
23520
23521         [BZ #18539]
23522         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
23523         define as weak alias of __addseverity.
23524         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
23525         Remove variable.
23526         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
23527         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
23528         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
23529
23530         [BZ #18536]
23531         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
23532         (__tfind): Likewise.
23533         (__tdelete): Likewise.
23534         (__twalk): Likewise.
23535         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
23536         __twalk to GLIBC_PRIVATE.
23537         * include/search.h (__tsearch): Use libc_hidden_proto.
23538         (__tfind): Likewise.
23539         (__tdelete): Likewise.
23540         (__twalk): Likewise.
23541         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
23542         Call __tdelete instead of tdelete.
23543         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
23544         tfind.  Call __tsearch instead of tsearch.
23545         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
23546         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
23547         Remove variable.
23548         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
23549
23550         [BZ #18534]
23551         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
23552         (dprintf): Define as a weak alias of __dprintf, not a strong
23553         alias.
23554         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
23555         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
23556         dprintf.
23557         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
23558         Remove variable.
23559         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
23560         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
23561
23562         [BZ #18533]
23563         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
23564         not a strong alias.
23565         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
23566         Remove variable.
23567
23568         [BZ #18532]
23569         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
23570         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
23571         (in6addr_loopback): Rename to __in6addr_loopback and define as
23572         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
23573         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
23574         libc_hidden_proto.
23575         (__in6addr_any): Likewise.
23576         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
23577         in6addr_any.
23578         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
23579         variable.
23580         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
23581
23582 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
23583
23584         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
23585         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
23586         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23587         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23588         redirections for pow.
23589         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23590         * sysdeps/x86_64/fpu/Versions: New versions added.
23591         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23592         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23593         build of SSE, AVX2 and AVX512 IFUNC versions.
23594         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
23595         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
23596         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
23597         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
23598         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
23599         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
23600         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
23601         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
23602         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
23603         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
23604         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
23605         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
23606         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
23607         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
23608         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23609         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23610         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23611         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23612         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23613         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23614         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23615         * NEWS: Mention addition of x86_64 vector pow.
23616
23617         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
23618         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23619         redirections for expf.
23620         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23621         * sysdeps/x86_64/fpu/Versions: New versions added.
23622         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23623         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23624         build of SSE, AVX2 and AVX512 IFUNC versions.
23625         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
23626         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
23627         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
23628         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
23629         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
23630         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
23631         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
23632         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
23633         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
23634         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
23635         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
23636         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
23637         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
23638         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
23639         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
23640         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
23641         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
23642         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
23643         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
23644         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
23645         * NEWS: Mention addition of x86_64 vector expf.
23646
23647         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
23648         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
23649         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23650         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23651         redirections for exp.
23652         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23653         * sysdeps/x86_64/fpu/Versions: New versions added.
23654         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23655         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23656         build of SSE, AVX2 and AVX512 IFUNC versions.
23657         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
23658         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
23659         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
23660         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
23661         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
23662         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
23663         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
23664         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
23665         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
23666         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
23667         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
23668         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
23669         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
23670         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23671         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23672         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23673         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23674         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23675         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23676         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23677         * NEWS: Mention addition of x86_64 vector exp.
23678
23679         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
23680         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23681         redirections for logf.
23682         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23683         * sysdeps/x86_64/fpu/Versions: New versions added.
23684         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23685         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23686         build of SSE, AVX2 and AVX512 IFUNC versions.
23687         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
23688         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
23689         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
23690         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
23691         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
23692         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
23693         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
23694         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
23695         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
23696         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
23697         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
23698         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
23699         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
23700         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
23701         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
23702         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
23703         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
23704         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
23705         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
23706         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
23707         * NEWS: Mention addition of x86_64 vector logf.
23708
23709         * bits/libm-simd-decl-stubs.h: Added stubs for log.
23710         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
23711         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23712         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
23713         redirections for log.
23714         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23715         * sysdeps/x86_64/fpu/Versions: New versions added.
23716         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23717         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23718         build of SSE, AVX2 and AVX512 IFUNC versions.
23719         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
23720         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
23721         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
23722         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
23723         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
23724         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
23725         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
23726         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
23727         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
23728         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
23729         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
23730         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
23731         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
23732         test.
23733         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23734         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23735         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23736         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23737         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23738         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23739         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23740         * NEWS: Mention addition of x86_64 vector log.
23741
23742 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23743
23744         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
23745         cfi_adjust_cfa_offset argument.
23746         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
23747         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
23748
23749         [BZ #18034]
23750         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
23751         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
23752         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
23753         ordering using ldar.
23754         (_dl_tlsdesc_dynamic): Likewise.
23755         (_dl_tlsdesc_return_lazy): Likewise.
23756         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
23757         relaxed atomics instead of volatile and synchronize with release store.
23758         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
23759         volatile.
23760         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
23761
23762 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
23763
23764         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
23765         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
23766         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23767         * sysdeps/x86_64/fpu/Versions: New versions added.
23768         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23769         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
23770         build of SSE, AVX2 and AVX512 IFUNC versions.
23771         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
23772         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
23773         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
23774         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
23775         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
23776         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
23777         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
23778         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
23779         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
23780         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
23781         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
23782         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
23783         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
23784         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
23785         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
23786         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
23787         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
23788         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
23789         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
23790         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
23791         * NEWS: Mention addition of x86_64 vector sinf.
23792
23793 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
23794
23795         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
23796         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
23797         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
23798         Remove variable.
23799         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
23800         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
23801
23802 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
23803
23804         [BZ #18530]
23805         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
23806         strong alias of _IO_fputs.  Use libc_hidden_def.
23807         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
23808         and define as weak alias of __fputs_unlocked.  Use
23809         libc_hidden_weak.
23810         * include/stdio.h (__fputs_unlocked): Declare.  Use
23811         libc_hidden_proto.
23812         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
23813         fputs_unlocked.
23814
23815         [BZ #18529]
23816         * resolv/netdb.h [__USE_POSIX]: Change condition to
23817         [__USE_XOPEN2K].
23818         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
23819         not expect.
23820         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
23821         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
23822         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
23823         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
23824         [XPG4 || UNIX98] (AI_ALL): Likewise.
23825         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
23826         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
23827         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
23828         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
23829         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
23830         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
23831         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
23832         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
23833         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
23834         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
23835         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
23836         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
23837         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
23838         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
23839         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
23840         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23841         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23842         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
23843         [XPG4 || UNIX98] (gai_strerror): Likewise.
23844         [XPG4 || UNIX98] (getaddrinfo): Likewise.
23845         [XPG4 || UNIX98] (getnameinfo): Likewise.
23846
23847         [BZ #18528]
23848         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
23849         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
23850         __USE_XOPEN2K8].
23851         (getgrent): Likewise.
23852         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
23853         expect.
23854         [XPG3 || POSIX2008] (endgrent): Likewise.
23855         [XPG3] (setgrent): Likewise.
23856         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
23857         variable.
23858         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
23859
23860         [BZ #18527]
23861         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
23862         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
23863         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
23864         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
23865         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
23866         * include/unistd.h (__getlogin_r): Declare.  Use
23867         libc_hidden_proto.
23868         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
23869         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
23870         variable.
23871         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
23872         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
23873         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
23874
23875 2015-06-12  Martin Sebor  <msebor@redhat.com>
23876
23877         [BZ #18512]
23878         * Makerules (check-install-supported): New target.
23879         (install): Add check-install-supported as a dependency.
23880         * manual/install.texi (Installing the C Library): Document
23881         that overriding prefix and exec_prefix is not supported.
23882         Mention DESTDIR.
23883         * INSTALL: Regenerate from the above.
23884
23885 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
23886
23887         [BZ #18519]
23888         * posix/Versions (libc): Export __libc_pread at version
23889         GLIBC_PRIVATE.
23890         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
23891         instead of pread.
23892         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
23893         variable.
23894
23895         [BZ #18522]
23896         * misc/efgcvt_r.c
23897         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
23898         (cvt_symbol): Use weak_alias instead of strong_alias.
23899         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
23900         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
23901         Remove variable.
23902         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
23903         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
23904
23905         [BZ #18520]
23906         * inet/herrno.c (h_errno): Rename to __h_errno.
23907         (__libc_h_errno): Define as alias of __h_errno not h_errno.
23908         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
23909         to __h_errno instead of h_errno.
23910         * nptl/herrno.c (h_errno): Rename to __h_errno.
23911         (__h_errno_location): Refer to __h_errno not h_errno.
23912         * resolv/Versions (h_errno): Rename to __h_errno.
23913         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
23914         Remove variable.
23915         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
23916
23917 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
23918
23919         * configure.ac: More strict check for AVX512 assembler support.
23920         * configure: Regenerated.
23921
23922         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
23923         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
23924         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23925         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
23926         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23927         * sysdeps/x86_64/fpu/Versions: New versions added.
23928         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23929         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23930         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23931         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
23932         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
23933         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
23934         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
23935         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
23936         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
23937         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
23938         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
23939         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
23940         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
23941         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
23942         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
23943         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
23944         test.
23945         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23946         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23947         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23948         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23949         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23950         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23951         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23952         * NEWS: Mention addition of x86_64 vector sin.
23953
23954 2015-06-11  Florian Weimer  <fweimer@redhat.com>
23955
23956         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
23957         comment.
23958
23959 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
23960
23961         [BZ #18479]
23962         * nptl/pt-interp.c: New file.
23963         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
23964         Add pt-interp.
23965         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
23966         $(common-objpfx)runtime-linker.h.
23967
23968 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
23969
23970         * Makeconfig (+interp): Remove unused variable.
23971         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
23972         only.  Depend on $(common-objpfx)runtime-linker.h instead of
23973         $(elf-objpfx)runtime-linker.h.
23974         ($(elf-objpfx)runtime-linker.h): Rename to
23975         $(common-objpfx)runtime-linker.h and move ...
23976         * Makerules [$(build-shared) = yes]: ... here.
23977         * elf/interp.c: Include <runtime-linker.h> instead of
23978         <elf/runtime-linker.h>.
23979
23980 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23981
23982         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
23983         (__gettimeofday_syscall): Remove vsyscall fallback.
23984         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
23985         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
23986         Add syscall fallback function.
23987         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
23988         if vDSO is not present.
23989         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
23990         fallback function.
23991         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
23992         present.
23993         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
23994         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
23995
23996 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
23997
23998         [BZ #18497]
23999         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
24000         of wcscmp.
24001         (wcscmp): Define as weak alias of WCSCMP.
24002         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
24003         wcscoll.
24004         (USE_HIDDEN_DEF): Define.
24005         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
24006         __wcscoll.  Don't use libc_hidden_weak.
24007         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
24008         wcscmp.
24009         * sysdeps/i386/i686/multiarch/wcscmp-c.c
24010         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
24011         __GI_wcscmp.
24012         (weak_alias): Undefine and redefine.
24013         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
24014         __wcscmp and define as weak alias of __wcscmp.
24015         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
24016         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
24017         (__wcscoll): Likewise.
24018         (wcscmp): Don't use libc_hidden_proto.
24019         (wcscoll): Likewise.
24020         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
24021         wcscoll.
24022         * posix/regexec.c (check_node_accept_bytes): Likewise.
24023         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
24024         variable.
24025         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24026         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24027
24028         [BZ #18507]
24029         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
24030         __fstatvfs and define as weak alias of __fstatvfs.  Use
24031         libc_hidden_weak.
24032         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
24033         and define as weak alias of __statvfs.  Use libc_hidden_weak.
24034         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
24035         Define as alias of __fstatvfs, not fstatvfs.
24036         (fstatvfs64): Likewise.
24037         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
24038         Define as alias of __statvfs, not statvfs.
24039         (statvfs64): Likewise.
24040         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
24041         Remove variable.
24042
24043 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24044
24045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24046         (HAVE_GETCPU_VSYSCALL): Define.
24047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24048         (HAVE_GETCPU_VSYSCALL): Likewise.
24049         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
24050         * sysdeps/unix/sysv/linux/sched_getcpu.c
24051         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
24052         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
24053         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
24054         prototype.
24055         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24056         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
24057         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
24058         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
24059         Define.
24060         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
24061         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
24062         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
24063         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
24064
24065 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
24066
24067         * sysdeps/x86_64/fpu/Makefile: New file.
24068         * sysdeps/x86_64/fpu/Versions: New file.
24069         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
24070         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
24071         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
24072         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
24073         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
24074         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
24075         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
24076         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
24077         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
24078         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
24079         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
24080         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
24081         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
24082         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
24083         Added build of SSE, AVX2 and AVX512 IFUNC versions.
24084         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
24085         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
24086         * sysdeps/x86_64/configure.ac: Options for libmvec build.
24087         * sysdeps/x86_64/configure: Regenerated.
24088         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
24089         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
24090         * manual/install.texi (Configuring and compiling): Document
24091         --disable-mathvec.
24092         * INSTALL: Regenerated.
24093         * NEWS: Mention addition of libmvec and x86_64 vector cos.
24094
24095         * math/Makefile: Added rules for vector tests.
24096         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
24097         declaration under condition.
24098         * math/test-double-vlen2.h: New file.
24099         * math/test-double-vlen4.h: New file.
24100         * math/test-double-vlen8.h: New file.
24101         * math/test-vec-loop.h: Added initialization macro.
24102         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
24103         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
24104         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
24105         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
24106         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
24107         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
24108         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
24109         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
24110         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
24111         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
24112         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
24113
24114         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
24115         * sysdeps/x86_64/fpu/Versions: New versions added.
24116         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
24117         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
24118         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
24119         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
24120         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
24121         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
24122         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
24123         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
24124         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
24125         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
24126         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
24127         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
24128         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
24129         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
24130         Added build of SSE, AVX2 and AVX512 IFUNC versions.
24131         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
24132         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
24133         * NEWS: Mention addition of x86_64 vector cosf.
24134
24135         * math/Makefile: Added CFLAGS for new tests.
24136         * math/test-float-vlen16.h: New file.
24137         * math/test-float-vlen4.h: New file.
24138         * math/test-float-vlen8.h: New file.
24139         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
24140         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
24141         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
24142         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
24143         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
24144         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
24145         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
24146         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
24147         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
24148         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
24149         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
24150
24151 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
24152
24153         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
24154         * locale/programs/ld-ctype.c: Likewise.
24155
24156 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
24157
24158         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
24159         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
24160         bit_ZMM16_31_state): New macro.
24161         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24162         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
24163
24164 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
24165
24166         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
24167
24168 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
24169
24170         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
24171
24172 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
24173
24174         [BZ #18498]
24175         * libio/memstream.c (open_memstream): Rename to __open_memstream
24176         and define as weak alias of __open_memstream.
24177         * include/stdio.h (__open_memstream): Declare.  Use
24178         libc_hidden_proto.
24179         (open_memstream): Don't use libc_hidden_proto.
24180         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
24181         open_memstream.
24182         * posix/getopt.c (_getopt_internal_r): Likewise.
24183         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
24184         variable.
24185         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24186         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24187         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24188
24189         [BZ #18496]
24190         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
24191         instead of wcrtomb.
24192
24193         [BZ #18483]
24194         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
24195         [__USE_XOPEN2K8].  Remove redundant #endif.
24196         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
24197         Remove redundant #if.
24198         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
24199         Remove variable.
24200         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24201         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24202
24203         [BZ #18495]
24204         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
24205         (__iswlower): Likewise.
24206         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
24207         (__iswlower): Likewise.
24208         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
24209         instead of towlower.
24210         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
24211         instead of iswlower.  Call __towupper instead of towupper.
24212         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
24213         instead of iswalnum.
24214
24215 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24216
24217         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
24218         errors to stderr.
24219
24220 2015-06-05  Florian Weimer  <fweimer@redhat.com>
24221
24222         [BZ #15661]
24223         [BZ #17322]
24224         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
24225         Check for overflow properly.  Check for O_APPEND.  Ignore large
24226         file system block sizes.  Add comments about problems.
24227         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
24228         * manual/filesys.texi (Storage Allocation): New node.
24229
24230 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24231
24232         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
24233         cancellable syscalls.
24234         (SYS_ify): Add guard to no redefine it.
24235         (INLINE_SYSCALL): Likewise.
24236         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
24237         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
24238         SYSCALL_CANCEL instead.
24239         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
24240         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
24241         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
24242         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
24243         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
24244         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
24245         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
24246         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
24247         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
24248         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
24249         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
24250         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
24251         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
24252         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
24253         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
24254         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
24255         Likewise.
24256         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
24257         (__libc_pread64): Likewise.
24258         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
24259         (__libc_preadv): Likewise.
24260         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
24261         (__libc_readv64): Likewise.
24262         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
24263         (__libc_pwrite): Likewise.
24264         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
24265         (__libc_pwrite64): Likewise.
24266         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
24267         (__libc_pwritev): Likewise.
24268         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
24269         (__libc_pwritev64): Likewise.
24270         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
24271         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
24272         (sync_file_range): Likewise.
24273         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
24274         Likewise.
24275         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
24276         Likewise.
24277         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
24278         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
24279         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
24280         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
24281         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
24282         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
24283         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
24284         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
24285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
24286         Likewise.
24287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24288         (__libc_read64): Likewise.
24289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
24290         Likewise.
24291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
24292         Likewise.
24293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
24294         Likewise.
24295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
24296         Likewise.
24297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24298         (__libc_pread64): Likewise.
24299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
24300         Likewise.
24301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24302         (__libc_pwrite64): Likewise.
24303         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
24304         (sync_file_range): Likewise.
24305         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
24306         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
24307         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
24308         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
24309         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
24310         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
24311         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
24312         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
24313         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
24314         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
24315         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
24316         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
24317         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
24318         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
24319         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
24320         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
24321         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
24322         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
24323         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
24324         Likewise.
24325         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
24326         Likewise.
24327         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
24328         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
24329         Likewise.
24330         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
24331         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
24332         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
24333         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
24334         Likewise.
24335         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
24336         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
24337         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
24338         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
24339         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
24340
24341 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
24342
24343         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
24344         Include dl-vdso.
24345         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
24346         Use VDSO routines for gettimeofday, clock_gettime if
24347         available.
24348         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
24349         Declare VDSO symbols.
24350         * sysdeps/unix/sysv/linux/arm/sysdep.h:
24351         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
24352         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24353         * sysdeps/unix/sysv/linux/arm/Versions: Add
24354         __vdso_clock_gettime.
24355
24356 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24357
24358         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
24359         be an inline implementation regardless of library is built within.
24360         (open_not_cancel_2): Likewise.
24361         (__read_nocancel): Likewise.
24362         (__write_nocancel): Likewise.
24363         (openat_not_cancel): Likewise.
24364         (openat_not_cancel_3): Likewise.
24365         (openat64_not_cancel): Likewise.
24366         (openat64_not_cancel_3): Likewise.
24367         (__close_nocancel): Likewise.
24368         (pause_not_cancel): Likewise.
24369         (nanosleep_not_cancel): Likewise.
24370         (sigsuspend_not_cancel): Likewise.
24371
24372 2015-06-04  Torvald Riegel  <triegel@redhat.com>
24373
24374         [BZ #14958]
24375         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
24376         wake-up.
24377         (__pthread_rwlock_rdlock_slow): Likewise.
24378         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
24379         Likewise.
24380         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
24381         Likewise.
24382         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
24383         * nptl/tst-rwlock16.c: New file.
24384         * nptl/Makefile (tests): Add new test.
24385
24386 2015-06-04  Torvald Riegel  <triegel@redhat.com>
24387
24388         [BZ #18324]
24389         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
24390         missing wake-up of readers.
24391         * nptl/tst-rwlock15.c: New file.
24392         * nptl/Makefile (tests): Add new test.
24393
24394 2015-06-03  Roland McGrath  <roland@hack.frob.com>
24395
24396         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
24397         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
24398         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
24399         and __nacl_supply_interface_rtld.
24400         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
24401         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
24402         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
24403         Add __nacl_supply_interface_rtld.
24404         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
24405
24406 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
24407
24408         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
24409         isfinite.
24410         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
24411         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
24412
24413 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
24414
24415         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
24416         __signbit* with standard C99 macros.
24417         * math/e_exp10l.c: Likewise.
24418         * math/e_exp2l.c: Likewise.
24419         * math/e_scalb.c: Likewise.
24420         * math/e_scalbf.c: Likewise.
24421         * math/e_scalbl.c: Likewise.
24422         * math/s_ldexp.c: Likewise.
24423         * math/s_ldexpf.c: Likewise.
24424         * math/s_ldexpl.c: Likewise.
24425         * math/w_atan2.c: Likewise.
24426         * math/w_atan2f.c: Likewise.
24427         * math/w_atan2l.c: Likewise.
24428         * math/w_cosh.c: Likewise.
24429         * math/w_coshf.c: Likewise.
24430         * math/w_coshl.c: Likewise.
24431         * math/w_exp10.c: Likewise.
24432         * math/w_exp10f.c: Likewise.
24433         * math/w_exp10l.c: Likewise.
24434         * math/w_exp2.c: Likewise.
24435         * math/w_exp2f.c: Likewise.
24436         * math/w_exp2l.c: Likewise.
24437         * math/w_fmod.c: Likewise.
24438         * math/w_fmodf.c: Likewise.
24439         * math/w_fmodl.c: Likewise.
24440         * math/w_hypot.c: Likewise.
24441         * math/w_hypotf.c: Likewise.
24442         * math/w_hypotl.c: Likewise.
24443         * math/w_jnl.c: Likewise.
24444         * math/w_lgamma.c: Likewise.
24445         * math/w_lgamma_r.c: Likewise.
24446         * math/w_lgammaf.c: Likewise.
24447         * math/w_lgammaf_r.c: Likewise.
24448         * math/w_lgammal.c: Likewise.
24449         * math/w_lgammal_r.c: Likewise.
24450         * math/w_pow.c: Likewise.
24451         * math/w_powf.c: Likewise.
24452         * math/w_powl.c: Likewise.
24453         * math/w_remainder.c: Likewise.
24454         * math/w_remainderf.c: Likewise.
24455         * math/w_remainderl.c: Likewise.
24456         * math/w_scalb.c: Likewise.
24457         * math/w_scalbf.c: Likewise.
24458         * math/w_scalbl.c: Likewise.
24459         * math/w_scalbln.c: Likewise.
24460         * math/w_scalblnf.c: Likewise.
24461         * math/w_scalblnl.c: Likewise.
24462         * math/w_sinh.c: Likewise.
24463         * math/w_sinhf.c: Likewise.
24464         * math/w_sinhl.c: Likewise.
24465         * math/w_tgamma.c: Likewise.
24466         * math/w_tgammaf.c: Likewise.
24467         * math/w_tgammal.c: Likewise.
24468         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24469         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
24470         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
24471         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24472         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24473         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24474         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
24475         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
24476         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24477         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24478         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
24479         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
24480         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
24481         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24482         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24483         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24484         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24485         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
24486         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
24487         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24488         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24489         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
24490         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
24491         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24492         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
24493         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
24494         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
24495         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24496         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24497         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
24498         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
24499         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
24500         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
24501         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
24502         * stdio-common/printf_fp.c: Likewise.
24503         * stdio-common/printf_fphex.c: Likewise.
24504         * stdio-common/printf_size.c: Likewise.
24505
24506 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
24507
24508         [BZ #18470]
24509         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
24510         strnlen.
24511         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
24512         Remove variable.
24513         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24514         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24515         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24516         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24517         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24518         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24519         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24520         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24521         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24522         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24523
24524         [BZ #18468]
24525         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
24526         weak alias of __wmemchr.  Use libc_hidden_weak.
24527         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
24528         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
24529         instead of wmemchr.
24530
24531 2015-06-02  Roland McGrath  <roland@hack.frob.com>
24532
24533         [BZ #18383]
24534         * elf/tst-tlsalign-extern.c: New file.
24535         * elf/tst-tlsalign-extern-static.c: New file.
24536         * elf/tst-tlsalign-vars.c: New file.
24537         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
24538         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
24539         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
24540         ($(objpfx)tst-tlsalign-extern-static): Likewise.
24541         (test-xfail-tst-tlsalign-extern-static): New variable.
24542
24543 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
24544
24545         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
24546         Use variable name _sc_err instead of err.
24547         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
24548         instead of ret.
24549         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
24550         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
24551         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
24552         (INLINE_SYSCALL): Likewise.
24553
24554         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
24555         * include/string.h (__strnlen): Use libc_hidden_proto.
24556         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
24557         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
24558         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
24559         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
24560         (libc_hidden_def): Undefine and redefine.
24561         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
24562         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
24563         __GI_strnlen.
24564         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
24565         libc_hidden_def.
24566         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
24567
24568         [BZ #18469]
24569         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
24570         weak alias of __towlower.  Use libc_hidden_weak.
24571         (towupper): Rename to __towupper and define as weak alias of
24572         __towupper.  Use libc_hidden_weak.
24573         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
24574         (__towupper): Likewise.
24575         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
24576         __towlower instead of towlower.
24577
24578 2015-06-02  Roland McGrath  <roland@hack.frob.com>
24579
24580         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
24581         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
24582
24583 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24584
24585         * sysdeps/aarch64/libm-test-ulps: Update.
24586
24587 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24588
24589         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
24590         Define.
24591         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24592         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
24593         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
24594         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24595         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
24596         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
24597         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
24598
24599 2015-06-01  Martin Sebor  <msebor@redhat.com>
24600
24601         [BZ #18116]
24602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
24603         (__setcontext): Use extended four-operand version of mtsf whenever
24604         possible.
24605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
24606         (__novec_swapcontext): Likewise.
24607
24608 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
24609
24610         * benchtests/scripts/compare_bench.py: New file.
24611         * benchtests/scripts/import_bench.py (mean): New function.
24612         (split_list): Likewise.
24613         (do_for_all_timings): Likewise.
24614         (compress_timings): Likewise.
24615
24616         * benchtests/scripts/import_bench.py: New file.
24617         * benchtests/scripts/validate_benchout.py: Import import_bench
24618         instead of jsonschema.
24619         (validate_bench): Remove function.
24620         (main): Use import_bench.
24621
24622 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
24623
24624         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
24625         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
24626
24627 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24628
24629         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24630
24631 2015-05-28  Roland McGrath  <roland@hack.frob.com>
24632
24633         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
24634         set THREAD_SELF->tid to a magic value and futex-wake it.
24635         Pass its address to the thread_exit system call.
24636         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
24637         bit is clear.
24638         * sysdeps/nacl/lowlevellock.h: New file.
24639         * sysdeps/nacl/lll_timedwait_tid.c: New file.
24640
24641         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
24642         Add TIMEOUT to current time, don't subtract it.
24643
24644 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
24645
24646         [BZ #2981]
24647         [BZ #18422]
24648         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
24649         ($(objpfx)tst-audit2.out): Also depend on
24650         $(objpfx)tst-auditmod9b.so.
24651         * elf/tst-audit2.c: Include <dlfcn.h>.
24652         (calloc_called): New.
24653         (calloc): Allow to be called more than once.
24654         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
24655
24656 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
24657
24658         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
24659         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
24660
24661 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
24662
24663         * stdlib/monetary.h: Fix comment.
24664
24665 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
24666
24667         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
24668         Avoid using variables in #defines that might cause shadowing.
24669         (INTERNAL_VSYSCALL_CALL): Likewise.
24670
24671 2015-05-26  Roland McGrath  <roland@hack.frob.com>
24672
24673         * sysdeps/nacl/lll_timedlock_wait.c: New file.
24674
24675         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
24676         * nptl/lll_timedlock_wait.c: ... to this new file.
24677         * nptl/Makefile (libpthread-routines): Add it.
24678         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
24679         * nptl/lll_timedwait_tid.c: ... to this new file.
24680         * nptl/Makefile (libpthread-routines): Add it.
24681         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
24682         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
24683         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
24684         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
24685         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
24686         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
24687         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
24688         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
24689         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
24690         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
24691
24692 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24693
24694         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
24695         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
24696         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
24697         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
24698         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
24699         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
24700         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24701         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24702         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24703         * sysdeps/unix/sysv/linux/tile/sysdep.h
24704         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
24705         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
24706         using vDSO syscall macro.
24707
24708 2015-05-26  Andriy Rysin  <arysin@gmail.com>
24709
24710         [BZ #17293]
24711         * uk_UA: Fix sorting order for Ukrainian locale
24712
24713 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
24714
24715         * stdlib/monetary.h: Fix comment.
24716
24717 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24718
24719         [BZ #18234]
24720         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
24721         st_mtim and st_ctim members.
24722         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
24723         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
24724         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
24725         (struct stat64): Likewise.
24726         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
24727         (struct stat64): Likewise.
24728         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
24729         (struct stat64): Likewise.
24730
24731 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24732
24733         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
24734         Define and include sysdep-vdso.h.
24735         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
24736         Likewise.
24737         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
24738         Likewise.
24739         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
24740         Define with VDSO_SYMBOL and use PTR_MANGLE.
24741         (__vdso_clock_gettime): Likewise.
24742         (__vdso_clock_getres): Likewise.
24743         (_libc_vdso_platform_setup): Likewise.
24744         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
24745         Likewise.
24746         (_libc_vdso_platform_setup): Likewise.
24747         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
24748         Likewise.
24749         (__vdso_clock_gettime): Likewise.
24750         (__vdso_clock_getres): Likewise.
24751         (__vdso_get_tbfreq): Likewise.
24752         (__vdso_getcpu): Likewise.
24753         (__vdso_time): Likewise.
24754         (__vdso_sigtramp_rt64): Likewise.
24755         (__vdso_signtramp32): Likewise.
24756         (__vdso_sigtramp_rt32): Likewise.
24757         (_libc_vdso_platform_setup): Likewise.
24758         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
24759         Likewise.
24760         (__vdso_clock_gettime): Likewise.
24761         (__vdso_clock_getres): Likewise.
24762         (_libc_vdso_platform_setup): Likewise.
24763         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
24764         Likewise.
24765         (__vdso_clock_gettime): Likewise.
24766         (_libc_vdso_platform_setup): Likewise.
24767         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
24768         Likewise.
24769         (__vdso_getcpu): Likewise.
24770         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
24771         Use VDSO_SYMBOL macro to define.
24772         (__vdso_clock_gettime): Likewise.
24773         (__vdso_clock_getres): Likewise.
24774         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
24775         Likewise.
24776         (__vdso_clock_gettime): Likewise.
24777         (__vdso_clock_getres): Likewise.
24778         (__vdso_get_tbfreq): Likewise.
24779         (__vdso_getcpu): Likewise.
24780         (__vdso_time): Likewise.
24781         (__vdso_sigtramp_rt64): Likewise.
24782         (__vdso_signtramp32): Likewise.
24783         (__vdso_sigtramp_rt32): Likewise.
24784         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
24785         Likewise.
24786         (__vdso_clock_gettime): Likewise.
24787         (__vdso_clock_getres): Likewise.
24788         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
24789         Likewise.
24790         (__vdso_clock_gettime): Likewise.
24791         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
24792         Likewise.
24793         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
24794         macro.
24795         (INTERNAL_VSYSCALL): Likewise.
24796         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
24797         Remove macro.
24798         (INTERNAL_VSYSCALL): Likewise.
24799         (INTERNAL_VSYSCALL_NCS): Likewise.
24800         (INTERNAL_VSYSCALL_CALL): New macro.
24801         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
24802         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
24803         Likewise.
24804         (INTERNAL_VSYSCALL): Likewise.
24805         (INTERNAL_VSYSCALL_NCS): Likewise.
24806         (INTERNAL_VSYSCALL_CALL): New macro.
24807         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
24808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24809         (INLINE_VSYSCALL): Remove macro.
24810         (INTERNAL_VSYSCALL): Remove macro.
24811         (INTERNAL_VSYSCALL_NCS): Remove macro.
24812         (INTERNAL_VSYSCALL_CALL): New macro.
24813         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
24814         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
24815         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
24816         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
24817         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
24818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24819         (INLINE_VSYSCALL): Remove macro.
24820         (INTERNAL_VSYSCALL): Likewise.
24821         (INTERNAL_VSYSCALL_NCS): Likewise.
24822         (INTERNAL_VSYSCALL_CALL): New macro.
24823         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
24824         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
24825         PTR_DEMANGLE on vDSO pointer.
24826         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
24827         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
24828         macro.
24829         (INTERNAL_SYSCALL): Likewise.
24830         (INTERNAL_VSYSCALL_NCS): Remove macro.
24831         (INTERNAL_VSYSCALL_CALL): New macro.
24832         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
24833         Remove macro.
24834         (INTERNAL_VSYSCALL): Likewise.
24835         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
24836         sysdep-vdso.h instead of libc-vdso.h.
24837         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
24838         definition.
24839         (INLINE_VSYSCALL): Likewise.
24840         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
24841         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
24842         definition.
24843         (INLINE_VSYSCALL): Likewise.
24844         (INTERNAL_VSYSCALL): Likewise.
24845         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24846         * sysdeps/unix/sysv/linux/timespec_get.c
24847         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24848         (timespec_get): Use ANSI prototype.
24849         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
24850         and definition for Linux.
24851
24852 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
24853
24854         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
24855         * include/libc-symbols.h: libmvec_hidden_* macro series added.
24856
24857 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
24858
24859         [BZ #2981]
24860         [BZ #18410]
24861         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
24862         for missing DT_PLTRELSZ.
24863
24864 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24865
24866         Remove obsolete aliases that broke 'locale -a'
24867         [BZ #18412]
24868         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
24869         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
24870         breaking some applications that use 'locale -a' output.
24871         Change the encoding of this file from Latin-1 to ASCII to avoid
24872         other potential problems with people grepping this file.
24873
24874 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24875
24876         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
24877         -fasynchronous-unwind-tables.
24878         (CFLAGS-sendto.c): Likewise.
24879         (CFLAGS-sendmsg.c): Likewise.
24880         (CFLAGS-connect.c): Likewise.
24881         (CFLAGS-recvmsg.c): Likewise.
24882         (CFLAGS-recvfrom.c): Likewise.
24883         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
24884         (SOCKETCALL): New macro: non-cancellable socketcall.
24885         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
24886         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
24887         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
24888         * sysdeps/unix/sysv/linux/accept.c: New file.
24889         * sysdeps/unix/sysv/linux/bind.c: Likewise.
24890         * sysdeps/unix/sysv/linux/connect.c: Likewise.
24891         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
24892         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
24893         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
24894         * sysdeps/unix/sysv/linux/listen.c: Likewise.
24895         * sysdeps/unix/sysv/linux/recv.c: Likewise.
24896         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
24897         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
24898         * sysdeps/unix/sysv/linux/send.c: Likewise.
24899         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
24900         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
24901         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
24902         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
24903         * sysdeps/unix/sysv/linux/socket.c: Likewise.
24904         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
24905         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
24906         prototype.
24907         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
24908         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24909         instead of __internal_xxx function.
24910         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
24911         prototype.
24912         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
24913         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24914         instead of __internal_xxx function.
24915         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
24916         prototype.
24917         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
24918         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24919         instead of __internal_xxx function.
24920         * sysdeps/unix/sysv/linux/accept.S: Remove file.
24921         * sysdeps/unix/sysv/linux/bind.S: Likewise.
24922         * sysdeps/unix/sysv/linux/connect.S: Likewise.
24923         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
24924         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
24925         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
24926         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
24927         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
24928         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
24929         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
24930         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
24931         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
24932         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
24933         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
24934         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
24935         * sysdeps/unix/sysv/linux/listen.S: Likewise.
24936         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
24937         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
24938         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
24939         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
24940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
24941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
24942         * sysdeps/unix/sysv/linux/recv.S: Likewise.
24943         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
24944         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
24945         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
24946         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
24947         * sysdeps/unix/sysv/linux/send.S: Likewise.
24948         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
24949         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
24950         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
24951         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
24952         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
24953         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
24954         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
24955         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
24956         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
24957         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
24958         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
24959         socketcall is implemented in GLIBC.
24960
24961 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24962
24963         * soft-fp/fmadf4.c: Include <libc-internal.h>.
24964         (__fma): Ignore uninitialized warnings around packing.
24965         * soft-fp/fmasf4.c: Include <libc-internal.h>.
24966         (__fmaf): Ignore uninitialized warnings around packing.
24967         * soft-fp/fmatf4.c: Include <libc-internal.h>.
24968         (__fmal): Ignore uninitialized warnings around packing.
24969
24970         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
24971         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24972         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
24973         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24974
24975         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
24976         switch statement into default case.
24977         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
24978
24979         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
24980         a conditional in forcing "inexact".
24981         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
24982         Likewise.
24983
24984 2015-05-22  Roland McGrath  <roland@hack.frob.com>
24985
24986         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24987         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
24988         for each INTERNAL_SYSCALL use.
24989
24990 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24991
24992         [BZ #438]
24993         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
24994         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
24995         variable.
24996
24997         [BZ #18444]
24998         * string/basename.c (basename): Rename to __basename and define as
24999         weak alias of __basename.  Use libc_hidden_weak.
25000         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
25001         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
25002         __basename instead of basename.
25003         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
25004         Remove variable.
25005         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25006
25007 2015-05-18  Florian Weimer  <fweimer@redhat.com>
25008
25009         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
25010         (_IO_JUMPS_FILE_plus): New.
25011         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
25012         _IO_CAST_FIELD_ACCESS.
25013         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
25014         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
25015         * libio/freopen.c (freopen): Likewise.
25016         * libio/freopen64.c (freopen64): Likewise.
25017         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
25018         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
25019         * libio/iofwide.c (_IO_fwide): Likewise.
25020         * libio/memstream.c (open_memstream): Likewise.
25021         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
25022         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
25023         * libio/oldiopopen.c (_IO_old_popen): Likewise.
25024
25025 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
25026
25027         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
25028         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
25029         NADJ.
25030         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
25031         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
25032         NADJ.
25033         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
25034         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
25035         NADJ.
25036
25037         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
25038         (p == 4) case.
25039
25040         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
25041         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
25042         Remove variable.
25043         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25044         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25045         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25046
25047 2015-05-21  Florian Weimer  <fweimer@redhat.com>
25048
25049         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
25050         Adjust jump table label generation macros.
25051
25052 2015-05-21  Florian Weimer  <fweimer@redhat.com>
25053
25054         * stdio-common/vfprintf.c (vfprintf): Move local variables
25055         args_malloced, specs, specs_malloced, and the code after
25056         do_positional to the printf_positional function.
25057         (printf_positional): New function.
25058
25059 2015-05-21  Florian Weimer  <fweimer@redhat.com>
25060
25061         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
25062         function.
25063         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
25064         STEP4_TABLE, process_arg): Move macro definitions
25065         out of the vfprintf function.  (Cosmetic change only.)
25066
25067 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
25068
25069         * benchtests/Makefile (stdio-common-bench): Define.
25070         (benchset): Add stdio-common-bench.
25071         * sprintf-inputs: New file.
25072         * sprintf-source.c: New file.
25073
25074 2015-05-21  Andreas Schwab  <schwab@suse.de>
25075
25076         [BZ #13028]
25077         [BZ #17053]
25078         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
25079         of struct __res_state.
25080         * resolv/res_send.c (__libc_res_nsend): Likewise.
25081         (get_nsaddr): New function.
25082         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
25083         statp directly.
25084
25085 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
25086
25087         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
25088         -D_POSIX_C_SOURCE=199506L.
25089
25090         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
25091
25092         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
25093         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
25094         Do not mention otherwise.
25095         [POSIX] (_XOPEN_VERSION): Do not expect.
25096         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
25097         [POSIX] (_POSIX2_C_BIND): Likewise.
25098         [POSIX] (_POSIX2_VERSION): Likewise.
25099         [POSIX] (_XOPEN_XPG2): Likewise.
25100         [POSIX] (_XOPEN_XPG3): Likewise.
25101         [POSIX] (_XOPEN_XPG4): Likewise.
25102         [POSIX] (_XOPEN_UNIX): Likewise.
25103         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
25104         [POSIX] (_POSIX_BARRIERS): Likewise.
25105         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
25106         [POSIX] (_POSIX_CPUTIME): Likewise.
25107         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
25108         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
25109         [POSIX] (_POSIX_SHELL): Likewise.
25110         [POSIX] (_POSIX_SPAWN): Likewise.
25111         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
25112         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
25113         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
25114         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
25115         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
25116         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
25117         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
25118         [POSIX] (_XBS5_LP64_OFF64): Likewise.
25119         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
25120         [POSIX] (_POSIX_TIMEOUTS): Likewise.
25121         [POSIX] (_POSIX2_PBS): Likewise.
25122         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
25123         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
25124         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
25125         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
25126         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
25127         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
25128         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
25129         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
25130         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
25131         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
25132         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
25133         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
25134         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
25135         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
25136         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
25137         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
25138         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
25139         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
25140         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
25141         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
25142         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
25143         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
25144         [POSIX] (_SC_2_C_BIND): Likewise.
25145         [POSIX] (_SC_2_C_VERSION): Likewise.
25146         [POSIX] (_SC_2_PBS): Likewise.
25147         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
25148         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
25149         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
25150         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
25151         [POSIX] (_SC_2_PBS_TRACK): Likewise.
25152         [POSIX] (_SC_ATEXIT_MAX): Likewise.
25153         [POSIX] (_SC_BARRIERS): Likewise.
25154         [POSIX] (_SC_BASE): Likewise.
25155         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
25156         [POSIX] (_SC_DEVICE_IO): Likewise.
25157         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
25158         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
25159         [POSIX] (_SC_FD_MGMT): Likewise.
25160         [POSIX] (_SC_FIFO): Likewise.
25161         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
25162         [POSIX] (_SC_FILE_LOCKING): Likewise.
25163         [POSIX] (_SC_FILE_SYSTEM): Likewise.
25164         [POSIX] (_SC_IOV_MAX): Likewise.
25165         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
25166         [POSIX] (_SC_NETWORKING): Likewise.
25167         [POSIX] (_SC_PAGE_SIZE): Likewise.
25168         [POSIX] (_SC_PASS_MAX): Likewise.
25169         [POSIX] (_SC_PIPE): Likewise.
25170         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
25171         [POSIX] (_SC_REGEXP): Likewise.
25172         [POSIX] (_SC_SHELL): Likewise.
25173         [POSIX] (_SC_SIGNALS): Likewise.
25174         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
25175         [POSIX] (_SC_SPIN_LOCKS): Likewise.
25176         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
25177         [POSIX] (_SC_USER_GROUPS): Likewise.
25178         [POSIX] (_SC_USER_GROUPS_R): Likewise.
25179         [POSIX] (_SC_STREAMS): Likewise.
25180         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
25181         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
25182         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
25183         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
25184         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
25185         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
25186         [POSIX] (_PC_FILESIZEBITS): Likewise.
25187         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
25188         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
25189         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
25190         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
25191         [POSIX] (uid_t): Likewise.
25192         [POSIX] (gid_t): Likewise.
25193         [POSIX] (off_t): Likewise.
25194         [POSIX] (pid_t): Likewise.
25195         [POSIX] (cuserid): Allow.
25196         (_SC_2_CHAR_TERM): Require constant.
25197         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
25198         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
25199         variable.
25200
25201 2015-05-20  Roland McGrath  <roland@hack.frob.com>
25202
25203         * sysdeps/nacl/pthread-pids.h: New file.
25204         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
25205         (create_thread): Use __nacl_get_tid to initialize PD->tid.
25206
25207         * nptl/pthread-pids.h: New file.
25208         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
25209         * nptl/nptl-init.c: Include <pthread-pids.h>.
25210         (__pthread_initialize_minimal_internal):
25211         Call __pthread_initialize_pids instead of set_tid_address syscall.
25212
25213         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
25214         * sysdeps/posix/usleep.c: ... here.
25215
25216 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25217
25218         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
25219         call_pselect6 object.
25220         [$(subdir) = io]: Remove call_sync_file_range object.
25221         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
25222         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
25223         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
25224         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
25225
25226 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
25227
25228         * math/s_cproj.c: Add include "math_private.h".
25229         * math/s_cprojf.c: Likewise.
25230         * math/s_cprojl.c: Likewise.
25231
25232 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
25233
25234         [BZ #18244]
25235         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
25236         high mantissa bit when testing whether P is a NaN.
25237         * math/libm-test.inc (remainder_test_data): Add more tests.
25238         (remquo_test_data): Likewise.
25239
25240         [BZ #18049]
25241         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
25242         below -32, return the argument, with underflow if subnormal.
25243         * math/auto-libm-test-in: Add more tests of atanh.
25244         * math/auto-libm-test-out: Regenerated.
25245
25246 2015-05-19  Roland McGrath  <roland@hack.frob.com>
25247
25248         [BZ #18434]
25249         * nptl/tst-sem15.c: New file.
25250         * nptl/Makefile (tests): Add it.
25251         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
25252         s/<</>>/ to fix typo in EOVERFLOW check.
25253         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
25254
25255 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
25256
25257         * manual/strings.texi (envz_remove): Fix typo in safety
25258         annotations.
25259
25260 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25261             Steve Ellcey  <sellcey@imgtec.com>
25262
25263         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
25264         in order to avoid strict alias warnings.
25265         (iruserok_af): Ditto for ra.
25266
25267 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
25268
25269         [BZ #17581]
25270         * malloc/hooks.c
25271         (magicbyte): Convert to a function and avoid returning 0x01.
25272         (mem2mem_check): Avoid using a length byte equal to the magic byte.
25273         (mem2chunk_check): Fix unsigned comparisons to zero.
25274         Hoist defs of sz and magic.
25275
25276 2015-05-19  Richard Henderson  <rth@redhat.com>
25277
25278         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
25279
25280         * sysdeps/alpha/fpu/libm-test-ulps: Update.
25281
25282 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
25283
25284         [BZ #16159]
25285         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
25286         * malloc/arena.c (arena_lock): Check if arena is corrupt.
25287         (reused_arena): Find a non-corrupt arena.
25288         (heap_trim): Pass arena to unlink.
25289         * malloc/hooks.c (malloc_check_get_size): Pass arena to
25290         malloc_printerr.
25291         (top_check): Likewise.
25292         (free_check): Likewise.
25293         (realloc_check): Likewise.
25294         * malloc/malloc.c (malloc_printerr): Add arena argument.
25295         (unlink): Likewise.
25296         (munmap_chunk): Adjust.
25297         (ARENA_CORRUPTION_BIT): New macro.
25298         (arena_is_corrupt): Likewise.
25299         (set_arena_corrupt): Likewise.
25300         (sysmalloc): Use mmap if there are no usable arenas.
25301         (_int_malloc): Likewise.
25302         (__libc_malloc): Don't fail if arena_get returns NULL.
25303         (_mid_memalign): Likewise.
25304         (__libc_calloc): Likewise.
25305         (__libc_realloc): Adjust for additional argument to
25306         malloc_printerr.
25307         (_int_free): Likewise.
25308         (malloc_consolidate): Likewise.
25309         (_int_realloc): Likewise.
25310         (_int_memalign): Don't touch corrupt arenas.
25311         * malloc/tst-malloc-backtrace.c: New test case.
25312
25313         * Makefile (summarize-tests): Fix return value on success.
25314
25315         * manual/string.texi (Envz Functions): Add envz_remove.
25316
25317 2015-05-18  Roland McGrath  <roland@hack.frob.com>
25318
25319         * sysdeps/posix/opendir.c: Include <stdbool.h>.
25320         (invalid_name): New function, broken out of ...
25321         (__opendirat): ... here.  Call it.
25322         (need_isdir_precheck): New function, broken out of ...
25323         (__opendirat): ... here.  Call it.
25324         Use __fxstatat64, not __xstatat64.
25325         (opendir_oflags): New function, broken out of ...
25326         (__opendirat): ... here.  Call it.
25327         (opendir_tail): New function, broken out of ...
25328         (__opendirat): ... here.  Call it.
25329         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
25330         opendir_tail, rather than punting to __opendirat.
25331         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
25332
25333 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
25334
25335         * .gitignore: Ignore generated *.pyc.
25336
25337 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
25338
25339         * include/stdio.h: Define __need_wint_t.
25340         * test-skeleton.c: Avoid `for' loop initial declaration.
25341         * nptl/tst-initializers1.c: Use test-skeleton.c.
25342
25343 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25344
25345         [BZ #18418]
25346         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
25347
25348 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
25349
25350         [BZ #16352]
25351         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
25352         (__ieee754_atanh): Force underflow exception for results with
25353         small absolute value.
25354         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
25355         (__ieee754_atanhf): Force underflow exception for results with
25356         small absolute value.
25357         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
25358         (__ieee754_atanh): Force underflow exception for results with
25359         small absolute value.
25360         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
25361         (__ieee754_atanhf): Force underflow exception for results with
25362         small absolute value.
25363         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
25364         (__ieee754_atanhl): Force underflow exception for results with
25365         small absolute value.
25366         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
25367         (__ieee754_atanhl): Force underflow exception for results with
25368         small absolute value.
25369         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
25370         (__ieee754_atanhl): Force underflow exception for results with
25371         small absolute value.
25372         * math/auto-libm-test-in: Do not allow missing underflow
25373         exceptions from atanh.
25374         * math/auto-libm-test-out: Regenerated.
25375
25376         [BZ #18221]
25377         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
25378         2**-28 as threshold for returning x or +/- 1/x.
25379         * math/auto-libm-test-in: Add more tests of tan.
25380         * math/auto-libm-test-out: Regenerated.
25381
25382         [BZ #18220]
25383         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
25384         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
25385         * math/auto-libm-test-in: Add another test of lgamma.
25386         * math/auto-libm-test-out: Regenerated.
25387
25388 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
25389
25390         * stdio-common/printf_fp.c (___printf_fp): Use abs.
25391         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
25392         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
25393         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
25394         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
25395         (ADD2A): Use fabs.  (SUB2A): Use fabs.
25396         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
25397         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
25398         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
25399         (log1): Use fabs.  (my_log2): Use fabs.
25400         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
25401         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
25402         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
25403         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
25404         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
25405         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
25406         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
25407         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
25408         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
25409         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
25410         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
25411
25412 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
25413
25414         [BZ #18217]
25415         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
25416         as threshold for returning 1 - x.
25417         * math/auto-libm-test-in: Add more tests of erfc.
25418         * math/auto-libm-test-out: Regenerated.
25419
25420 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
25421
25422         [BZ #18196]
25423         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
25424         threshold for large arguments.
25425         * math/auto-libm-test-in: Add another test of atan.
25426         * math/auto-libm-test-out: Regenerated.
25427
25428         [BZ #16339]
25429         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
25430         (__log1p): Force underflow exception for results with small
25431         absolute value.
25432         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
25433         (__log1pf): Force underflow exception for results with small
25434         absolute value.
25435         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
25436         (__log1p): Force underflow exception for results with small
25437         absolute value.
25438         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
25439         (__log1pf): Force underflow exception for results with small
25440         absolute value.
25441         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
25442         (__log1pl): Force underflow exception for results with small
25443         absolute value.
25444         * math/auto-libm-test-in: Do not allow missing underflow
25445         exceptions from log1p.
25446         * math/auto-libm-test-out: Regenerated.
25447
25448 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
25449             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25450
25451         [BZ #16704]
25452         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
25453
25454 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
25455
25456         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
25457         (libmvec): New variable.
25458         * configure.ac: Added option for mathvec build.
25459         * configure: Regenerated.
25460         * mathvec/Depend: New file.
25461         * mathvec/Makefile: New file.
25462         * shlib-versions: Added libmvec.
25463         * math/Makefile: Added rule for libm.so installation.
25464
25465         * bits/math-vector.h: New file.
25466         * bits/libm-simd-decl-stubs.h: New header.
25467         * math/Makefile (headers): Added new header
25468         libm-simd-decl-stubs.h.
25469         * math/math.h (__MATHCALL_VEC): New macro.
25470
25471         * math/gen-libm-have-vector-test.sh: Script generates series of macros
25472         for conditions in testing functions.
25473         * math/Makefile: Added call of libm-have-vector-test.sh.
25474         * math/libm-test.inc (HAVE_VECTOR): New macros.
25475
25476         * math/libm-test.inc: START refactored.
25477         * math/test-double.c (TEST_MATHVEC): Add define.
25478         * math/test-float.c: Likewise.
25479         * math/test-idouble.c: Likewise.
25480         * math/test-ifloat.c: Likewise.
25481         * math/test-ildoubl.c: Likewise.
25482         * math/test-ldouble.c: Likewise.
25483         * sysdeps/generic/math-tests-arch.h
25484         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
25485         architecture check.
25486
25487         * math/test-double.c (FUNC_TEST): New macro.
25488         * math/test-float.c: Likewise.
25489         * math/test-idouble.c: Likewise.
25490         * math/test-ifloat.c: Likewise.
25491         * math/test-ildoubl.c: Likewise.
25492         * math/test-ldouble.c: Likewise.
25493         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
25494
25495 2015-05-13  Roland McGrath  <roland@hack.frob.com>
25496
25497         * sysdeps/nacl/fdopendir.c: New file.
25498
25499         * dirent/scandir-tail.c: New file.
25500         * dirent/scandir64-tail.c: New file.
25501         * dirent/Makefile (routines): Add them.
25502         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
25503         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
25504         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
25505         [!SCANDIR] (SCANDIR_TAIL): New macro.
25506         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
25507         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
25508         (SCANDIRAT): Macro removed.
25509         (SCANDIR_TAIL): New macro.
25510         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
25511         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
25512         (SCANDIRAT): Just call __opendirat and __scandir_tail.
25513         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
25514         (READDIR): Macro removed.
25515         (SCANDIR_TAIL): New macro.
25516         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
25517         (SCANDIR_TAIL): New macro.
25518
25519         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
25520         * dirent/scandir-cancel.c: ... to this new file.
25521         * dirent/Makefile (routines): Add it.
25522         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
25523         * sysdeps/unix/sysv/linux/i386/scandir64.c
25524         (SKIP_SCANDIR_CANCEL): Macro removed.
25525         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
25526
25527         * dirent/tst-scandir.c: New file.
25528         * dirent/tst-scandir64.c: New file.
25529         * dirent/Makefile (tests): Add them.
25530
25531 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
25532
25533         [BZ #18409]
25534         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
25535
25536 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25537
25538         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
25539         list.
25540
25541 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
25542
25543         * benchtests/bench-strcoll.c: New benchmark.
25544         * benchtests/Makefile: Generate locales and run benchmark.
25545         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
25546         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
25547         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
25548         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
25549         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
25550         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
25551         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
25552         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
25553         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
25554         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
25555         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
25556         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
25557         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
25558         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
25559         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
25560         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
25561         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
25562         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
25563         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
25564         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
25565         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
25566         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
25567         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
25568         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
25569
25570 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
25571
25572         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
25573         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
25574
25575 2015-05-12  Roland McGrath  <roland@hack.frob.com>
25576
25577         * posix/uname-values.h: New file.
25578         * posix/uname.c: Include that instead of <config-name.h>.
25579         * sysdeps/nacl/uname-values.h: New file.
25580         * sysdeps/arm/nacl/uname-values.h: New file.
25581
25582 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
25583
25584         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
25585         splitting into fields.
25586
25587 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
25588
25589         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
25590         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
25591         * locale/localeinfo.h: Add enum collation_encoding_type.
25592         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
25593         * programs/ld-collate.c (collate_output): Add encoding type info.
25594         * string/strcoll_l.c (STRDIFF): New function.
25595         * (STRCOLL): Use STRDIFF to skip over equal prefix.
25596         * wcsmbs/wcscoll_l.c: Define STRDIFF.
25597
25598 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
25599
25600         [BZ #18397]
25601         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
25602         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
25603         <fpu_control.h> instead of <math/fpu_control.c>.
25604         * sysdeps/mips/mips32/fpu/Makefile: New file.
25605
25606 2015-05-11  Andreas Schwab  <schwab@suse.de>
25607
25608         [BZ #18007]
25609         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
25610         nss_endgrent.
25611         (_nss_compat_endgrent): Call nss_endgrent.
25612         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
25613         nss_endpwent.
25614         (_nss_compat_endpwent): Call nss_endpwent.
25615         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
25616         needent, call nss_setspent only if non-zero.
25617         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
25618         (internal_endspent): Don't call nss_endspent.
25619         (_nss_compat_endspent): Call nss_endspent.
25620         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
25621         Remove.  All uses removed.
25622         (internal_setent): Remove parameter stayopen, add parameter
25623         stream.  Use it instead of global variable.
25624         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
25625         (internal_endent, internal_getent): Add parameter stream.  Use it
25626         instead of global variable.
25627         (CONCAT(_nss_files_end,ENTNAME))
25628         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
25629         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
25630         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
25631         uses removed.
25632         (internal_setent, internal_endent): Add parameter stream.  Use it
25633         instead of global variable.
25634         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
25635         stream.
25636         (get_next_alias): Add parameter stream.
25637         (_nss_files_getaliasent_r): Pass global stream.
25638         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
25639         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
25640         (_nss_files_gethostbyname4_r): Pass local stream to
25641         internal_setent, internal_getent and internal_endent.  Remove
25642         locking.
25643
25644 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
25645
25646         * tst-strfmon1.c (tests): Update expected currency symbol.
25647
25648 2015-05-08  Roland McGrath  <roland@hack.frob.com>
25649
25650         * sysdeps/nacl/gethostname.c: New file.
25651
25652 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
25653
25654         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
25655         and sinh.
25656         * math/auto-libm-test-out: Regenerated.
25657         * sysdeps/i386/fpu/libm-test-ulps: Update.
25658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25659
25660 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
25661
25662         [BZ #18125]
25663         * stdlib/tst-setcontext3.c: New file.
25664         * stdlib/tst-setcontext3.sh: New file.
25665         * stdlib/Makefile (tests): Add tst-setcontext3.
25666         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
25667         to verify test program created output file.
25668         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
25669         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
25670         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
25671         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
25672
25673 2015-05-06  Roland McGrath  <roland@hack.frob.com>
25674
25675         [BZ #18383]
25676         * elf/tst-tlsalign.c: New file.
25677         * elf/tst-tlsalign-static.c: New file.
25678         * elf/tst-tlsalign-lib.c: New file.
25679         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
25680         (tests-static): Add tst-tlsalign-static.
25681         (modules-names): Add tst-tlsalign-lib.
25682         (test-xfail-tst-tlsalign): New variable.
25683         (test-xfail-tst-tlsalign-static): New variable.
25684
25685         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
25686         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
25687
25688 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
25689
25690         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
25691         csqrt, erfc, sin and sincos.
25692         * math/auto-libm-test-out: Regenerated.
25693         * sysdeps/i386/fpu/libm-test-ulps: Update.
25694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25695
25696 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25697
25698         * sysdeps/aarch64/libm-test-ulps: Update.
25699
25700 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
25701
25702         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
25703         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
25704         * math/auto-libm-test-out: Regenerated.
25705         * sysdeps/i386/fpu/libm-test-ulps: Update.
25706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25707
25708 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
25709
25710         [BZ #18265]
25711         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
25712         (wcsncpy): Likewise.
25713
25714 2015-05-05  Florian Weimer  <fweimer@redhat.com>
25715
25716         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
25717         Assume __ASSUME_FALLOCATE is always true.
25718         * sysdeps/unix/sysv/linux/posix_fallocate64.c
25719         (__posix_fallocate64_l64): Likweise.
25720         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
25721         (posix_fallocate): Likewise.
25722         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
25723         (__posix_fallocate64_l64): Likewise.
25724         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
25725         [!__ASSUME_FALLOCATE]: Add comment.
25726
25727 2015-05-05  Florian Weimer  <fweimer@redhat.com>
25728
25729         * sysdeps/unix/sysv/linux/i386/Makefile
25730         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
25731         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
25732         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
25733         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
25734         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
25735         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
25736         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
25737
25738 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
25739
25740         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
25741         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
25742         tgamma.
25743         * math/auto-libm-test-out: Regenerated.
25744         * sysdeps/i386/fpu/libm-test-ulps: Update.
25745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25746
25747 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
25748
25749         * math/auto-libm-test-in: Add more tests of tgamma.
25750         * math/auto-libm-test-out: Regenerated.
25751         * sysdeps/i386/fpu/libm-test-ulps: Update.
25752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25753
25754         * math/auto-libm-test-in: Add more tests of tanh.
25755         * math/auto-libm-test-out: Regenerated.
25756         * sysdeps/i386/fpu/libm-test-ulps: Update.
25757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25758
25759         * math/auto-libm-test-in: Add more tests of tan.
25760         * math/auto-libm-test-out: Regenerated.
25761         * sysdeps/i386/fpu/libm-test-ulps: Update.
25762         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25763
25764         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
25765         * math/auto-libm-test-out: Regenerated.
25766         * sysdeps/i386/fpu/libm-test-ulps: Update.
25767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25768
25769         * math/auto-libm-test-in: Add another test of pow.
25770         * math/auto-libm-test-out: Regenerated.
25771         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25772
25773         * math/auto-libm-test-in: Add more tests of lgamma.
25774         * math/auto-libm-test-out: Regenerated.
25775         * sysdeps/i386/fpu/libm-test-ulps: Update.
25776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25777
25778         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
25779         log1p.
25780         * math/auto-libm-test-out: Regenerated.
25781         * sysdeps/i386/fpu/libm-test-ulps: Update.
25782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25783
25784 2015-05-01  Mark Wielaard  <mjw@redhat.com>
25785
25786         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
25787         Elf64_Chdr structs and ELFCOMPRESS constants.
25788
25789 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
25790
25791         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
25792         expm1.
25793         * math/auto-libm-test-out: Regenerated.
25794         * sysdeps/i386/fpu/libm-test-ulps: Update.
25795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25796
25797         * math/auto-libm-test-in: Add more tests of erf and erfc.
25798         * math/auto-libm-test-out: Regenerated.
25799         * sysdeps/i386/fpu/libm-test-ulps: Update.
25800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25801
25802 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25803
25804         * config.h.in (HAVE_AARCH64_BE): Add.
25805
25806 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
25807
25808         * math/auto-libm-test-in: Add more tests of csqrt.
25809         * math/auto-libm-test-out: Regenerated.
25810         * sysdeps/i386/fpu/libm-test-ulps: Update.
25811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25812
25813         * math/auto-libm-test-in: Add more tests of cosh and sinh.
25814         * math/auto-libm-test-out: Regenerated.
25815         * sysdeps/i386/fpu/libm-test-ulps: Update.
25816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25817
25818         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
25819
25820 2015-04-29  Roland McGrath  <roland@hack.frob.com>
25821
25822         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
25823         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
25824
25825         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
25826         (euidaccess, eaccess): Define as weak aliases.
25827
25828         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
25829         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
25830         but __suseconds_t is often 'long int' so some sources assume that
25831         type is being used (e.g. they use %ld to print tv_usec).
25832
25833 2015-04-29  Florian Weimer  <fweimer@redhat.com>
25834
25835         [BZ #18007]
25836         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
25837         (CVE-2014-8121)
25838         * nss/tst-nss-getpwent.c: New file.
25839         * nss/Makefile (tests): Add new test.
25840
25841 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
25842
25843         [BZ #18346]
25844         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
25845         exponents less than 48 as cases where high part of mantissa needs
25846         examining to determine whether argument is integral.
25847         * math/libm-test.inc (round_test_data): Add more tests.
25848
25849 2015-04-28  Mark Wielaard  <mjw@redhat.com>
25850
25851         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
25852
25853 2015-04-27  David S. Miller  <davem@davemloft.net>
25854
25855         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
25856         __tls_get_addr.
25857         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25858
25859 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
25860
25861         [BZ#18333]
25862         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
25863
25864 2015-04-27  Florian Weimer  <fweimer@redhat.com>
25865
25866         [BZ#18333]
25867         * time/tzset.c (parse_tzname): Return error on memory allocation
25868         failure.
25869         * test-skeleton.c (struct temp_name_list): Change type of name
25870         member to non-const.
25871         (add_temp_file): Create a copy of the file name.
25872         (delete_temp_files): Deallocate memory.
25873         (create_temp_file): Add comment.
25874
25875 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25876
25877         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
25878         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
25879
25880 2015-04-24  Roland McGrath  <roland@hack.frob.com>
25881
25882         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
25883         * sysdeps/arm/configure: Regenerated.
25884
25885 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25886
25887         [BZ #17715]
25888         * time/tzfile.c (__tzfile_read): Check for large values of
25889         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
25890         * time/tzset.c (__tzstring_len): New function, based on the old
25891         __tzstring function.
25892         (__tzstring): Call __tzstring_len.
25893         (parse_tzname): New helper function extracted from
25894         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
25895         the input string.
25896         (parse_offset): New helper function extracted from
25897         __tzset_parse_tz.  Replace switch with fallthrough with
25898         initialization before sscanf.
25899         (parse_rule): Likewise.
25900         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
25901         new-style function definition.
25902         * timezone/Makefile (tests): Add tst-tzset.
25903         (tst-tzset.out): Dependencies on time zone files.
25904         (tst-tzset-ENV): Set TZDIR.
25905         (testdata/XT%): Copy crafted time zone files.
25906         * timezone/README: Mention crafted time zone files.
25907         * timezone/testdata/XT1, timezone/testdata/XT2,
25908         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
25909         files.
25910         * timezone/tst-tzset.c: New test.
25911
25912 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25913
25914         * Makeconfig (+gccwarn): Remove -Winline.
25915
25916 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25917
25918         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
25919
25920 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25921
25922         * NEWS: Mention sysconf() cache information support for s390.
25923         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
25924
25925 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
25926
25927         * math/k_casinh.c (__kernel_casinh): Use __copysign.
25928         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
25929         (__nearbyint): Likewise.
25930         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
25931         (copysignl): Likewise.
25932
25933 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
25934
25935         [BZ #18287]
25936         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
25937         based on padding.  (CVE-2015-1781)
25938
25939 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25940
25941         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
25942         libc-vdso.h.
25943         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
25944         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
25945         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
25946         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
25947         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
25948         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
25949         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
25950         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
25951         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
25952         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
25953         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
25954         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
25955         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
25956         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
25957         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
25958         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
25959         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
25960         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
25961         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
25962         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
25963         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
25964         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
25965         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
25966
25967 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
25968
25969         * stdlib/setenv.c (__add_to_environ):
25970         Dump core quickly if setenv (..., NULL, ...) is called.
25971         This time, do it the right way, and pacify GCC with a pragma.
25972
25973 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25974
25975         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
25976         IMAP->l_prev cannot be null, and #if out the code for the contrary
25977         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
25978         believe that NS (&_dl_ns[NSID]) could point outside the array.
25979
25980         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
25981         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
25982         before using NSID as an index.
25983
25984 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
25985
25986         [BZ #17825]
25987         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
25988         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
25989         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
25990
25991 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25992
25993         Add preliminary port to Google Native Client on ARM.
25994         * abi-tags (.*-.*-nacl.*): New entry.
25995         * sysdeps/arm/nacl: New directory.
25996         * sysdeps/nacl: New directory.
25997
25998 2015-04-16  David S. Miller  <davem@davemloft.net>
25999
26000         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
26001         lowlevellock-futex.h
26002
26003 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
26004
26005         * sysdeps/tile/configure.ac: New file.
26006         * sysdeps/tile/configure: Regenerated.
26007
26008 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26009
26010         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
26011         conditionals for weak_alias and libc_hidden_weak.
26012         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
26013         libc_hidden_weak and weak_alias.
26014         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
26015         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
26016         and weak_alias for static one.
26017
26018 2015-04-15  David S. Miller  <davem@davemloft.net>
26019
26020         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
26021
26022 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
26023
26024         [BZ #18206]
26025         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
26026           Use signed comparision instead of substraction to avoid
26027           overflow bug.
26028         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
26029           Take the sign of ret.
26030         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
26031           Do not expect precise return values. Only the sign matters.
26032         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
26033         * wcsmbs/test-wcsncmp.c: New File.
26034         * string/test-strncmp.c: Add wcsncmp support.
26035
26036 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
26037
26038         [BZ #6792]
26039         * math/w_log1p.c: New file.
26040         * math/w_log1pf.c: Likewise.
26041         * math/w_log1pl.c: Likewise.
26042         * math/Makefile (libm-calls): Add w_log1p.
26043         * math/s_log1pl.c (log1pl): Remove weak_alias.
26044         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
26045         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
26046         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
26047         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
26048         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
26049         [NO_LONG_DOUBLE] (log1pl): Likewise.
26050         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
26051         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
26052         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
26053         (log1p): Remove long_double_symbol.
26054         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
26055         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
26056         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
26057         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
26058         remove weak_alias for corresponding log1p function.
26059         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
26060         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
26061         * sysdeps/ia64/fpu/w_log1p.c: New file.
26062         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
26063         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
26064         * math/libm-test.inc (log1p_test_data): Add errno expectations.
26065
26066 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
26067
26068         [BZ #18247]
26069         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
26070         decimal exponent by 1.
26071         * stdlib/tst-strtod-round-data: Add more tests.
26072         * stdlib/tst-strtod-round.c (tests): Regenerated.
26073
26074 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
26075
26076         * math/auto-libm-test-in: Add more tests of clog and clog10.
26077         * math/auto-libm-test-out: Regenerated.
26078         * sysdeps/i386/fpu/libm-test-ulps: Update.
26079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26080
26081 2015-04-09  Roland McGrath  <roland@hack.frob.com>
26082
26083         * Makeconfig (module-cppflags): Exclude all .v.i files.
26084         (skip-module-cppflags): Variable removed.
26085
26086         * configure.ac (libc_config_ok): Initialize before reading
26087         preconfigure scripts, not after.
26088         * configure: Regenerated.
26089
26090         * test-skeleton.c (TIMEOUT): Move #define to top level.
26091         (main): Grok environment variable TEST_DIRECT.  If set, print
26092         test expectation details into that file and then behave as if
26093         given --direct.
26094
26095 2015-04-09  Florian Weimer  <fweimer@redhat.com>
26096
26097         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
26098         warning on 32-bit.
26099
26100 2015-04-08  David S. Miller  <davem@davemloft.net>
26101
26102         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26103
26104 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
26105
26106         * math/auto-libm-test-in: Add more tests of atanh.
26107         * math/auto-libm-test-out: Regenerated.
26108         * sysdeps/i386/fpu/libm-test-ulps: Update.
26109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26110
26111         * math/auto-libm-test-in: Add more tests of atan.
26112         * math/auto-libm-test-out: Regenerated.
26113         * sysdeps/i386/fpu/libm-test-ulps: Update.
26114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26115
26116 2015-04-08  Florian Weimer  <fweimer@redhat.com>
26117
26118         * elf/pldd.c (main): Rewrite to use struct
26119         scratch_buffer instead of extend_alloca.
26120         * elf/pldd-xx.c (find_maps): Likewise.
26121         * grp/initgroups.c: Include <scratch_buffer.h> instead of
26122         <alloca.h>.
26123         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
26124         scratch_buffer instead of extend_alloca.
26125         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
26126         grp/compat-initgroups.c.
26127         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
26128         Rewrite to use struct scratch_buffer instead of extend_alloca.
26129         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
26130         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
26131
26132 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
26133
26134         * math/auto-libm-test-in: Add more tests of cbrt.
26135         * math/auto-libm-test-out: Regenerated.
26136         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26137
26138         * math/auto-libm-test-in: Add more tests of cabs.
26139         * math/auto-libm-test-out: Regenerated.
26140         * sysdeps/i386/fpu/libm-test-ulps: Update.
26141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26142
26143         [BZ #18210]
26144         [BZ #18211]
26145         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
26146         (__ieee754_atan2): Set FE_TONEAREST mode for internal
26147         computations.
26148         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
26149         clog10.
26150         * math/auto-libm-test-out: Regenerated.
26151         * sysdeps/i386/fpu/libm-test-ulps: Update.
26152         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26153
26154         [BZ #18197]
26155         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
26156         (atan): Set FE_TONEAREST mode for internal computations.
26157         * math/auto-libm-test-in: Add more tests of atan.
26158         * math/auto-libm-test-out: Regenerated.
26159
26160 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
26161
26162         [BZ #17930]
26163         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
26164
26165 2015-04-07  Florian Weimer  <fweimer@redhat.com>
26166
26167         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
26168
26169 2015-04-07  Florian Weimer  <fweimer@redhat.com>
26170
26171         * include/scratch_buffer.h: New file.
26172         * malloc/scratch_buffer_grow.c: Likewise.
26173         * malloc/scratch_buffer_grow_preserve.c: Likewise.
26174         * malloc/scratch_buffer_set_array_size.c: Likewise.
26175         * malloc/tst-scratch_buffer.c: Likewise.
26176         * malloc/Makefile (routines): Add scratch_buffer_grow.
26177         (tests): Add test case.
26178         * malloc/Versions (GLIBC_PRIVATE): Export
26179         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
26180         __libc_scratch_buffer_set_array_size.
26181
26182 2015-04-06  Richard Henderson  <rth@redhat.com>
26183
26184         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
26185         * sysdeps/alpha/fpu/libm-test-ulps: Update.
26186
26187         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
26188         unsigned int before printing.
26189
26190 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26191
26192         [BZ #17596]
26193         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
26194         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26195
26196 2015-04-02  Florian Weimer  <fweimer@redhat.com>
26197
26198         * include/libc-internal.h (libc_max_align_t): Define.
26199
26200 2015-04-02  Andreas Schwab  <schwab@suse.de>
26201
26202         [BZ #16850]
26203         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
26204
26205 2015-04-02  Mel Gorman  <mgorman@suse.de>
26206
26207         [BZ #17195]
26208         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
26209         as well as the main arena.
26210
26211 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
26212
26213         [BZ #18185]
26214         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
26215         sharing L2 cache to 2 for Silvermont/Knights Landing.
26216
26217 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
26218
26219         [BZ #17711]
26220         * config.make.in (have-protected-data): New.
26221         * configure.ac: Check linker support for protected data symbol.
26222         * configure: Regenerated.
26223         * elf/Makefile (modules-names): Add tst-protected1moda and
26224         tst-protected1modb if $(have-protected-data) is yes.
26225         (tests): Add tst-protected1a and tst-protected1b if
26226         $(have-protected-data) is yes.
26227         ($(objpfx)tst-protected1a): New.
26228         ($(objpfx)tst-protected1b): Likewise.
26229         (tst-protected1modb.so-no-z-defs): Likewise.
26230         * elf/tst-protected1a.c: New file.
26231         * elf/tst-protected1b.c: Likewise.
26232         * elf/tst-protected1mod.h: Likewise.
26233         * elf/tst-protected1moda.c: Likewise.
26234         * elf/tst-protected1modb.c: Likewise.
26235
26236 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
26237
26238         [BZ #17711]
26239         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
26240         indicates it is called from do_lookup_x on relocation against
26241         protected data, skip the data definion in the executable from
26242         copy reloc.
26243         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
26244         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
26245         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
26246         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
26247         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
26248         otherwise to 0.
26249         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
26250         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
26251         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
26252         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
26253         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
26254         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
26255
26256 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
26257
26258         * sysdeps/nptl/pthread.h: Remove duplicate definition of
26259         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
26260
26261 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
26262
26263         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
26264         THREAD_SETMEM_NC.
26265         * sysdeps/x86_64/nptl/tls.h: Ditto.
26266
26267 2015-03-27  Roland McGrath  <roland@hack.frob.com>
26268
26269         * dlfcn/tststatic.c (main): Converted to ...
26270         (do_test): ... this.
26271         (TEST_FUNCTION): New macro.
26272         Include test-skeleton.c.
26273
26274 2015-03-26  Alan Modra  <amodra@gmail.com>
26275
26276         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
26277         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
26278         zero for undefined weak.
26279         (elf_machine_plt_conflict): Similarly.
26280
26281 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
26282
26283         * math/auto-libm-test-in: Add more tests of acosh, asinh and
26284         atanh.
26285         * math/auto-libm-test-out: Regenerated.
26286         * sysdeps/i386/fpu/libm-test-ulps: Update.
26287         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26288
26289         * math/auto-libm-test-in: Add another test of asin.
26290         * math/auto-libm-test-out: Regenerated.
26291         * sysdeps/i386/fpu/libm-test-ulps: Update.
26292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26293
26294         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
26295         Remove macro.
26296         (LLL_EBX_REG): Likewise.
26297         (LLL_ENTER_KERNEL): Likewise.
26298
26299         * math/auto-libm-test-in: Add more tests of asin.
26300         * math/auto-libm-test-out: Regenerated.
26301         * sysdeps/i386/fpu/libm-test-ulps: Update.
26302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26303
26304         [BZ #18138]
26305         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
26306         libc_do_syscall_args): New structure.
26307         (INTERNAL_SYSCALL_MAIN_0): New macro.
26308         (INTERNAL_SYSCALL_MAIN_1): Likewise.
26309         (INTERNAL_SYSCALL_MAIN_2): Likewise.
26310         (INTERNAL_SYSCALL_MAIN_3): Likewise.
26311         (INTERNAL_SYSCALL_MAIN_4): Likewise.
26312         (INTERNAL_SYSCALL_MAIN_5): Likewise.
26313         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
26314         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
26315         Replace conditional definitions by conditional definitions of ....
26316         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
26317         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
26318         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
26319         (libpthread-sysdep_routines): Add libc-do-syscall.
26320         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
26321         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
26322         to __NR_futex not 240.
26323
26324 2015-03-25  Alan Modra  <amodra@gmail.com>
26325
26326         * NEWS: Advertise TLS optimization.
26327         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
26328         (DT_PPC_NUM): Increment.
26329         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
26330         (CHECK_STATIC_TLS): Use here.
26331         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
26332         TLS descriptors.
26333         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
26334         * sysdeps/powerpc/dl-tls.c: New file.
26335         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
26336         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
26337         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
26338         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
26339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
26340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
26341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
26342
26343 2015-03-25  Alan Modra  <amodra@gmail.com>
26344
26345         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
26346         for overlapping .opd entries" to "support...".
26347         * sysdeps/powerpc/powerpc64/configure: Regenerate
26348
26349 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
26350
26351         * math/auto-libm-test-in: Add more tests of acos.
26352         * math/auto-libm-test-out: Regenerated.
26353         * sysdeps/i386/fpu/libm-test-ulps: Update.
26354         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26355
26356         * math/auto-libm-test-in: Add more tests of expm1.
26357         * math/auto-libm-test-out: Regenerated.
26358         * sysdeps/i386/fpu/libm-test-ulps: Update.
26359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26360
26361 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
26362
26363         * math/auto-libm-test-in: Add more tests of cosh and sinh.
26364         * math/auto-libm-test-out: Regenerated.
26365         * sysdeps/i386/fpu/libm-test-ulps: Update.
26366         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26367
26368         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26370
26371         * math/auto-libm-test-in: Add more tests of log2.
26372         * math/auto-libm-test-out: Regenerated.
26373         * sysdeps/i386/fpu/libm-test-ulps: Update.
26374         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26375
26376 2015-03-23  Roland McGrath  <roland@hack.frob.com>
26377
26378         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
26379         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
26380         _IO_IS_APPENDING bit in READ_WRITE instead.
26381
26382 2015-03-23  Florian Weimer  <fweimer@redhat.com>
26383
26384         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
26385         (__determine_cpumask_size): Replace extend_alloca with a
26386         variable-length array.  Do not treat res == 0 as an error.
26387
26388 2015-03-23  Florian Weimer  <fweimer@redhat.com>
26389
26390         [BZ #18100]
26391         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
26392         and integer overflow.
26393         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
26394         (main): Add integer overflow tests.
26395         * manual/pattern.texi (Calling Wordexp): Document additional use
26396         for WRDE_SYNTAX.
26397
26398 2015-03-23  Alan Modra  <amodra@gmail.com>
26399
26400         * config.h.in: Remove HAVE_ASM_PPC_REL16.
26401         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
26402         and false branch of conditional.
26403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
26404         Likewise.
26405
26406 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
26407
26408         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
26409         libc-modules.h
26410         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
26411         unused declaration of _hurd_intr_rpc_msg_in_trap.
26412         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
26413         defined instead of whether it is non-zero.
26414         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
26415         input constraint instead of both input and output constraint.  Use ecx
26416         clobber instead of %ecx.
26417         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
26418         mutex_unlock): Use a statement expression instead of an expression list.
26419         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
26420         type to vm_size_t instead of vm_address_t.
26421         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
26422         defined instead of whether it is non-zero.
26423         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
26424         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
26425         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
26426         comparisons with mapaddr.
26427         * nscd/nscd-client.h: Include <time.h>.
26428         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
26429         9th parameter to __vm_region instead of int.
26430         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
26431         * scripts/check-local-headers.sh (exclude): Add device/,
26432         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
26433         cthreads.h.
26434
26435 2015-03-19  Roland McGrath  <roland@hack.frob.com>
26436
26437         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
26438         to account for alignment padding.
26439         * sysdeps/arm/memmove.S: Likewise.
26440
26441 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
26442
26443         * sysdeps/unix/sysv/linux/generic/README: New file.
26444
26445 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
26446
26447         [BZ #18138]
26448         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
26449         (futex_abstimed_wait)
26450         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
26451         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
26452         of lll_futex_timed_wait.
26453
26454 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
26455
26456         [BZ #17542]
26457         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
26458
26459 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
26460
26461         [BZ #17090]
26462         [BZ #17620]
26463         [BZ #17621]
26464         [BZ #17628]
26465         * NEWS: Update.
26466         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
26467         entries with Static TLS too.  Skip entries past the end of the
26468         allocated DTV, from Alan Modra.
26469         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
26470         Static TLS DTV entry set up from...
26471         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
26472         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
26473         * nptl/allocatestack.c (init_one_static_tls): ... and here...
26474         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
26475         for Static TLS.
26476         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
26477         that the slot we find is associated with the given map before
26478         using its generation count.
26479         * nptl_db/db_info.c: Include ldsodefs.h.
26480         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
26481         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
26482         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
26483         (link_map::l_tls_offset): New struct field.
26484         (dtv_t::counter): Likewise.
26485         (rtld_global): New struct.
26486         (_rtld_global): New rtld variable.
26487         (dl_tls_dtv_slotinfo_list): New rtld global field.
26488         (dtv_slotinfo_list): New struct.
26489         (dtv_slotinfo): Likewise.
26490         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
26491         (td_lookup): Rename to...
26492         (td_mod_lookup): ... this.  Use new mod parameter instead of
26493         LIBPTHREAD_SO.
26494         * nptl_db/td_thr_tlsbase.c: Include link.h.
26495         (dtv_slotinfo_list, dtv_slotinfo): New functions.
26496         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
26497         addresses even if the DTV is out of date or missing them.
26498         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
26499         index zero-length arrays.
26500         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
26501         (td_lookup): Make it a macro implemented in terms of...
26502         (td_mod_lookup): ... this declaration.
26503         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
26504         (DB_MAIN_VARIABLE): Likewise.
26505
26506 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26507
26508         [BZ #18134]
26509         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
26510
26511 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
26512
26513         * stdlib/setenv.c (__add_to_environ): Revert previous change.
26514
26515 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
26516
26517         [BZ #18128]
26518         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
26519         (atomic_add, atomic_increment_and_test)
26520         (atomic_decrement_and_test): Fix 64-bit arithmetic.
26521
26522 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
26523
26524         * stdlib/setenv.c (__add_to_environ):
26525         Dump core quickly if setenv (..., NULL, ...) is called.
26526
26527 2015-03-13  Roland McGrath  <roland@hack.frob.com>
26528
26529         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
26530         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
26531         all the necessary asm magic in one place.
26532         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
26533         using those.
26534
26535 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
26536
26537         [BZ #14906]
26538         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
26539         traced file mtime. Use consistent log message.
26540         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
26541         (register_traced_file): Call install_watches. Always set mtime.
26542         (invalidate_cache): Iterate over all trace files. Call install_watches.
26543         (inotify_check_files): Don't inline. Handle watching parent
26544         directories and configuration file movement in and out.
26545         (handle_inotify_events): New function.
26546         (main_loop_poll): Call handle_inotify_events.
26547         (main_loop_epoll): Likewise.
26548         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
26549         (struct traced_file): Use array of inotify fds. Add parent directory,
26550         and basename.
26551         (struct database_dyn): Remove unused file_mtime.
26552         (init_traced_file): New inline function.
26553         (define_traced_file): New macro.
26554         * nss/nss_db/db-init.c: Use define_traced_file.
26555         (_nss_db_init): Use init_traced_file.
26556         * nss/nss_files/files-init.c: Use define_traced_file.
26557         (_nss_files_init): Use init_traced_file.
26558
26559 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
26560
26561         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
26562         [_LIBC]: Do not include <stdlib.h>.
26563         [!_LIBC] (abort): Remove declaration.
26564         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
26565         _FP_STATIC_ASSERT instead of conditionally calling abort.
26566         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
26567         (_FP_EXTEND_CNAN): Likewise.
26568         (FP_TRUNC): Likewise.
26569         (__FP_CLZ): Likewise.
26570         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
26571
26572 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
26573
26574         * manual/string.texi (XPG basename): Fix prototype.
26575
26576 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
26577
26578         [BZ #18080]
26579         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
26580         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
26581         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
26582         (__setcontext): Likewise.
26583         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
26584         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
26585         Call rt_sigprocmask syscall one time to set new signal mask
26586         and retrieve the current signal mask instead of two calls.
26587         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
26588         (__swapcontext): Likewise.
26589         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
26590         * stdlib/tst-setcontext2.c: New file.
26591
26592 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
26593
26594         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
26595
26596 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
26597
26598         [BZ #18093]
26599         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
26600         the wrong size.
26601
26602 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
26603
26604         [BZ #18043]
26605         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
26606
26607 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26608
26609         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
26610         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
26611         Remove define.
26612         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
26613         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
26614         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
26615         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
26616         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
26617         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
26618         define.
26619         * nptl_db/td_symbol_list.c (td_lookup): Remove
26620         HAVE_ASM_GLOBAL_DOT_NAME code.
26621         * sysdeps/powerpc/powerpc64/configure.ac: Remove
26622         HAVE_ASM_GLOBAL_DOT_NAME check.
26623         * sysdeps/powerpc/powerpc64/configure: Regenerate.
26624         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
26625         (DOT_LABEL): Remove define.
26626         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
26627         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
26628         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
26629         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
26630         (__TLS_GET_ADDR): Likewise.
26631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
26632         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
26633
26634 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
26635
26636         [BZ #18111]
26637         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
26638         (_FPU_SETCW): Initialize cw from fpsr before storing.
26639         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
26640         (fesetexceptflag): Rewrite using fpu_control.h.
26641         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
26642
26643 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
26644
26645         [BZ #18110]
26646         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
26647         asms.
26648         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
26649
26650 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
26651
26652         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
26653         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
26654         abort.
26655         (_FP_FMA): Likewise.
26656         (_FP_DIV): Likewise.
26657
26658 2015-03-10  Roland McGrath  <roland@hack.frob.com>
26659
26660         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
26661         with 0 in that case.
26662         * Makefile (summarize-tests): New canned sequence, factored out of
26663         commands for targets tests and xtests.  Display summary lines that
26664         don't start with PASS: or XFAIL: rather than ones that do start with
26665         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
26666         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
26667         do start with ERROR: or FAIL:.
26668         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
26669         (except for [$(build-shared) = yes]).
26670         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
26671         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
26672         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
26673         * nptl/Makefile: Revert 2015-03-04 changes.
26674         [$(CXX) empty] (tests-unsupported): New variable.
26675         * debug/Makefile: Likewise.
26676
26677         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
26678         gnulib file.  Replace __attribute with __attribute__ throughout.
26679
26680 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
26681
26682         * sysdeps/hppa/fpu/libm-test-ulps: Update.
26683
26684 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
26685
26686         [BZ #18104]
26687         * math/auto-libm-test-in: Add another test of pow.
26688         * math/auto-libm-test-out: Regenerated.
26689
26690 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26691
26692         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
26693         $(config-cflags-nofma).
26694
26695 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
26696
26697         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
26698         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
26699         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
26700         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
26701         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
26702         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
26703         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
26704         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
26705         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
26706         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
26707         Add comment on closing #endif.
26708
26709 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
26710
26711         * posix/wordexp.c (CHAR_IN_SET): New macro.
26712         (parse_param): Use it.
26713
26714 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26715
26716         * sysdeps/powerpc/fpu/libm-test-ulps: update.
26717
26718 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
26719
26720         [BZ #18043]
26721         * posix/wordexp.c (parse_param): Fix buffer overflow.
26722         * posix/wordexp-test.c (test_case): Add test case.
26723
26724 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
26725
26726         [BZ #18042]
26727         * posix/wordexp.c (parse_backtick): Fix off-by-one.
26728         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
26729
26730 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
26731
26732         [BZ #18043]
26733         * posix/wordexp-test.c (test_case): Add test for BZ #18043
26734         (do_bz18043): Delete.
26735         (at_page_end): New.
26736         (testit): Refactor to have words at the edge of unreadable page.
26737
26738 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
26739
26740         [BZ #16734]
26741         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
26742         Cleanup read-only streams as well.
26743         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
26744
26745 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26746
26747         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
26748         <bits/libc-lockP.h>
26749
26750 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
26751
26752         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
26753         on [__KERNEL__].
26754         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
26755         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
26756         * soft-fp/op-common.h (_FP_DECL): Likewise.
26757
26758 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
26759
26760         * elf/ifuncdep2.c (global): Replace
26761         __attribute__((visibility("protected"))) with
26762         asm (".protected global").
26763         * elf/ifuncmod1.c (global): Likewise.
26764         * elf/ifuncmod5.c (global): Likewise.
26765
26766 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
26767
26768         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
26769         <asm/sfp-machine.h> instead of <sfp-machine.h>.
26770
26771 2015-03-06  Roland McGrath  <roland@hack.frob.com>
26772
26773         * manual/install.texi (Configuring and compiling):
26774         Document test-wrapper-env-only.
26775         * INSTALL: Regenerated.
26776
26777 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26778
26779         [BZ #18043]
26780         * posix/wordexp.c (parse_param): Fix buffer overflow.
26781         * posix/wordexp-test.c (do_bz18043): Add test case.
26782
26783 2015-03-06  Vincent Bernat  <vincent@bernat.im>
26784
26785         * time/tst-strptime2.c (do_test): Ensure failing tests are
26786         reported correctly.
26787         * time/tst-strptime3.c (do_test): Likewise.
26788
26789 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
26790
26791         Fix aio_error thread-safety.
26792         * sysdeps/pthread/aio_error.c: New file
26793         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
26794         synchronization.
26795
26796 2015-03-06  Florian Weimer  <fweimer@redhat.com>
26797
26798         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
26799         (group_number, vfprintf): Use it.
26800         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
26801         (JUMP, REF): Use it.
26802         (WORK_BUFFER_SIZE): New enum constant.
26803         (process_arg, vfprintf): Use it.
26804
26805 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
26806
26807         * manual/errno.texi (Error Messages): Complete example function
26808         by adding missing #define.
26809         (program_invocation_name): Add statement indicating GNU
26810         extension and reference which header file declares the variable.
26811         (program_invocation_short_name): Likewise.
26812
26813 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
26814
26815         * manual/errno.texi (Error Messages): Delete strerror ISO C89
26816         compatibility note.
26817
26818 2015-03-05  Roland McGrath  <roland@hack.frob.com>
26819
26820         * Makeconfig (test-wrapper-env-only): New variable.
26821         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
26822         then use that with $(test-wrapper-env-only) rather than using
26823         $(test-wrapper-env) $(run-program-env) $($*-ENV).
26824
26825 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
26826
26827         [BZ #18082]
26828         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
26829         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
26830         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
26831         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
26832         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
26833         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
26834         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
26835         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
26836         Likewise.
26837         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
26838         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
26839         Likewise.
26840         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
26841         Likewise.
26842         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
26843         Likewise.
26844         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
26845         Likewise.
26846         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
26847         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
26848         Likewise.
26849         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
26850         Likewise.
26851         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
26852         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
26853
26854 2015-03-04  Roland McGrath  <roland@hack.frob.com>
26855
26856         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
26857         (ETH_ALEN): New macro.
26858         (struct ether_addr): Use it for length of ether_addr_octet.
26859
26860         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
26861         (setdb): Don't call __nss_configure_lookup for "rpc".
26862         (do_test): Don't call test_rpc.
26863         (output_rpcent, test_rpc): Functions moved ...
26864         * sunrpc/test-rpcent.c: ... to this new file.
26865         * sunrpc/Makefile (tests): Add it.
26866
26867         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
26868         __xpg_sigpause.
26869         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
26870         * nptl/tst-signal6.c: Likewise.
26871         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
26872         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
26873
26874         * configure.ac (libc_cv_cxx_link_ok): New check.
26875         Reset CXX to empty if it fails to link.
26876         * configure: Regenerated.
26877         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
26878         bug-atexit3-lib only if $(CXX) is nonempty.
26879         * nptl/Makefile (tests): Likewise for tst-cancel24.
26880         (tests, tests-static): Likewise for tst-cancel24-static.
26881         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
26882         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
26883         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
26884         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
26885
26886 2015-03-04  Andreas Schwab  <schwab@suse.de>
26887
26888         [BZ #17631]
26889         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
26890         for non-GCC compilers.
26891         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
26892         Likewise.
26893
26894 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26895
26896         [BZ #17776]
26897         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
26898         integer before bitwise and assembly operations.
26899         (feclearexcept): Likewise.
26900         * math/test-fenvinline.c: New file.
26901         * math/Makefile: Add test-fenvinline test.
26902
26903 2015-03-03  Alan Modra  <amodra@gmail.com>
26904
26905         [BZ #16512]
26906         * scripts/localplt.awk: Strip off symbol version.
26907         * NEWS: Mention bug fix.
26908
26909 2015-03-02  Roland McGrath  <roland@hack.frob.com>
26910
26911         * sysdeps/pthread/timer_routines.c
26912         (timer_free_list, thread_free_list, thread_active_list): Make static.
26913
26914 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
26915
26916         [BZ #17779]
26917         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26918         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26919         Undefine.
26920         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26921         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26922         Likewise.
26923         * sysdeps/unix/sysv/linux/sh/kernel-features.h
26924         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26925         Likewise.
26926
26927 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
26928
26929         [BZ #18036]
26930         * posix/fnmatch_loop.c (END): Detect invalid pattern.
26931         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
26932
26933 2015-03-02  Andreas Schwab  <schwab@suse.de>
26934
26935         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
26936         variable name.
26937
26938 2015-03-02  Florian Weimer  <fweimer@redhat.com>
26939
26940         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
26941         Return error status.
26942
26943 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
26944
26945         [BZ #15969]
26946         * locale/findlocale.c (_nl_find_locale): Introduce const
26947         version of loc_name and drop unsafe type casts.
26948
26949 2015-02-27  Roland McGrath  <roland@hack.frob.com>
26950
26951         * dlfcn/tststatic2.c (main): Converted to ...
26952         (do_test): ... this.
26953         (TEST_FUNCTION): New macro.
26954         Include test-skeleton.c.
26955
26956 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26957
26958         [BZ #17711]
26959         * elf/Makefile (tests): Add vismain only if PIE is enabled.
26960         (tests-pie): Add vismain.
26961         (CFLAGS-vismain.c): New.
26962         * elf/vismain.c: Add comments for PIE requirement.
26963
26964 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26965
26966         [BZ #18046]
26967         [BZ #18047]
26968         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
26969         0x1p-56L as threshold for just returning the argument.
26970         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
26971         0x1p-32L as threshold for just returning the argument.
26972         * math/auto-libm-test-in: Add more tests of atanh.
26973         * math/auto-libm-test-out: Regenerated.
26974         * sysdeps/i386/fpu/libm-test-ulps: Update.
26975         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
26976
26977 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26978
26979         * string/bcopy.c (bcopy): Call memmove for performance.
26980
26981 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26982
26983         * string/bzero.c (__bzero): Call memset for performance.
26984
26985 2015-02-27  John David Anglin  <dave.anglin@bell.net>
26986
26987         [BZ #18068]
26988         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
26989         to 00100000.
26990
26991 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26992
26993         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
26994
26995 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26996
26997         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
26998         (__kernel_standard): Use CSTR macro when setting exc.name.
26999         * sysdeps/ieee754/Makefile [$(subdir) = math]
27000         (CFLAGS-k_standard.c): Remove variable.
27001
27002         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
27003         setting p and q from "else if" to "else".
27004         (qzero): Likewise.
27005         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
27006         (qone): Likewise.
27007         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
27008         (qzerof): Likewise.
27009         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
27010         (qonef): Likewise.
27011         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
27012         (qzero): Likewise.
27013         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
27014         (qone): Likewise.
27015
27016         [BZ #18038]
27017         [BZ #18039]
27018         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
27019         return pi/2 for arguments below 0x1p-113L.
27020         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
27021         return pi/2 for arguments below 0x1p-106L.
27022         * math/auto-libm-test-in: Add more tests of acos.
27023         * math/auto-libm-test-out: Regenerated.
27024
27025         [BZ #16351]
27026         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
27027         (MO): New macro.
27028         (__ieee754_asin): Force underflow exception for results with small
27029         absolute value.
27030         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
27031         (MO): New macro.
27032         (__ieee754_asinf): Force underflow exception for results with
27033         small absolute value.
27034         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
27035         (__ieee754_asin): Force underflow exception for results with small
27036         absolute value.
27037         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
27038         (__ieee754_asinf): Force underflow exception for results with
27039         small absolute value.
27040         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
27041         (__ieee754_asinl): Force underflow exception for results with
27042         small absolute value.
27043         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
27044         (__ieee754_asinl): Force underflow exception for results with
27045         small absolute value.
27046         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
27047         (__ieee754_asinl): Force underflow exception for results with
27048         small absolute value.
27049         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
27050         Include <math.h>.
27051         * math/auto-libm-test-in: Do not mark underflow exceptions as
27052         possibly missing for bug 16351.
27053         * math/auto-libm-test-out: Regenerated.
27054
27055         [BZ #18030]
27056         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
27057         of power of 2 down when low part has opposite sign.
27058         * math/libm-test.inc (logb_test_data): Add more tests.
27059
27060 2015-02-26  Andreas Schwab  <schwab@suse.de>
27061
27062         [BZ #18032]
27063         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
27064         over collating symbol inside a bracket expression.  Minor cleanup.
27065         * posix/tst-fnmatch3.c (do_test): Add test case.
27066
27067 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
27068
27069         [BZ #18029]
27070         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
27071         Adjust exponent of power of 2 down when low part has opposite
27072         sign.
27073         * math/libm-test.inc (ilogb_test_data): Add more tests.
27074
27075 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
27076
27077         [BZ #15969]
27078         * locale/findlocale.c (_nl_find_locale): Fix constness error in
27079         the previous change.
27080
27081         [BZ #15969]
27082         * locale/findlocale.c (_nl_find_locale): Retry archive search
27083         after alias expansion.
27084
27085 2015-02-25  Roland McGrath  <roland@hack.frob.com>
27086
27087         * iconv/tst-iconv3.c (main): Converted to ...
27088         (do_test): ... this.
27089         (TEST_FUNCTION): New macro.
27090         Include test-skeleton.c.
27091
27092         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
27093         (convert): Make function static.
27094         (test_unalign): Likewise.  Add const to argument pointee types.
27095         (main): Replace with static function do_test.
27096         Print "Succeeded." only if RET is zero.
27097         (TEST_FUNCTION): New macro.
27098         Include test-skeleton.c.
27099
27100         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
27101         returns a null pointer.
27102
27103 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27104
27105         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
27106         to __memcpy_ppc only for static builds.
27107
27108 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
27109
27110         [BZ #18020]
27111         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
27112         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
27113         * math/auto-libm-test-in: Add more tests of asinh.
27114         * math/auto-libm-test-out: Regenerated.
27115         * sysdeps/i386/fpu/libm-test-ulps: Update.
27116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27117
27118 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
27119
27120         [BZ #15850]
27121         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
27122         and ip6_mtuinfo definitions here.
27123         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
27124         in this define too.  Update comment.
27125
27126 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
27127
27128         * elf/sprof.c (load_shobj): Tweak error message to match others.
27129
27130 2015-02-24  Kevin Easton  <kevin@guarana.org>
27131
27132         [BZ #16145] (partial fix)
27133         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
27134         to reduce lock contention.
27135
27136 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
27137
27138         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
27139         (struct timex): Update time comment.
27140         (ADJ_SETOFFSET): Define.
27141
27142 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
27143
27144         [BZ #18019]
27145         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
27146         2**56 not 2**28 as threshold for log (2x) formula.
27147         * math/auto-libm-test-in: Add more tests of acosh.
27148         * math/auto-libm-test-out: Regenerated.
27149         * sysdeps/i386/fpu/libm-test-ulps: Update.
27150         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27151
27152 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
27153
27154         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
27155         parenthesis around the buf assignment.
27156         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
27157
27158 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
27159
27160         [BZ #16783]
27161         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
27162         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
27163         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
27164         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
27165         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
27166         * math/libm-test.inc (scalb_test_data): Add more tests.
27167
27168 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
27169
27170         [BZ #17916]
27171         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
27172         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
27173
27174 2015-02-24  Eric Rannaud  <e@nanocritical.com>
27175
27176         [BZ #17523]
27177         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
27178         * io/bits/fcntl2.h (open): Use it.
27179         (openat): Likewise.
27180         * io/open.c (__libc_open): Likewise.
27181         * io/open64.c (__libc_open64): Likewise.
27182         * io/open64_2.c (__open64_2): Likewise.
27183         * io/open_2.c (__open_2): Likewise.
27184         * io/openat.c (__openat): Likewise.
27185         * io/openat64.c (__openat64): Likewise.
27186         * io/openat64_2.c (__openat64_2): Likewise.
27187         * io/openat_2.c (__openat_2): Likewise.
27188         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
27189         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
27190         * sysdeps/posix/open64.c (__libc_open64): Likewise.
27191         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
27192         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
27193         (__open_nocancel): Likewise.
27194         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
27195         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
27196         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
27197
27198 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27199
27200         [BZ #14841]
27201         * resolv/gethnamaddr.c (getanswer): Skip logging if
27202         RES_USE_DNSSEC is set.
27203         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
27204
27205 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
27206
27207         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
27208
27209 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
27210
27211         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
27212         201304L, for Unicode 7.
27213
27214 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
27215
27216         [BZ #17836]
27217         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
27218         shared library.  Add gmon-start.os otherwise.
27219         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
27220         $(objpfx)gmon-start.os if builing shared library.
27221         ($(objpfx)g$(static-start-installed-name)): Likewise.
27222
27223 2015-02-23  Andreas Schwab  <schwab@suse.de>
27224
27225         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
27226
27227 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
27228
27229         [BZ #17269]
27230         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
27231         (enlarge_userbuf): Likewise.
27232
27233 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
27234
27235         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
27236         * math/atest-exp.c (TIMEOUT): Adjust to 200.
27237         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
27238         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
27239
27240 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
27241
27242         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
27243         expression inside statement expression.
27244
27245 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
27246
27247         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
27248         <sysdeps/nptl/lowlevellock.h> and remove macros and
27249         functions that are now defined there.
27250         (SYS_futex): Remove.
27251         (lll_compare_and_swap): Remove.
27252         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
27253
27254 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
27255
27256         [BZ #17999]
27257         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
27258         instead of scandirat.
27259         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
27260         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
27261         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
27262         __scandirat.
27263         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
27264         (__scandirat): Declare.  Use libc_hidden_proto.
27265         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
27266         Remove variable.
27267         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
27268
27269 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
27270
27271         [BZ #15319]
27272         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
27273         (MO): New macro.
27274         (__ieee754_atan2): For results with small absolute value, force
27275         underflow exception and remove excess range and precision from
27276         return value.
27277         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
27278         (MO): New macro.
27279         (__ieee754_atan2f): For results with small absolute value, force
27280         underflow exception and remove excess range and precision from
27281         return value.
27282         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
27283         (MO): New macro.
27284         (__atan): For results with small absolute value, force underflow
27285         exception and remove excess range and precision from return value.
27286         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
27287         (MO): New macro.
27288         (__atanf): For results with small absolute value, force underflow
27289         exception and remove excess range and precision from return value.
27290         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
27291         <math.h>.
27292         (__ieee754_atan2): Force underflow exception for results with
27293         small absolute value.
27294         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
27295         <math_private.h>.
27296         (atan): Force underflow exception for results with small absolute
27297         value.
27298         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
27299         (__atanf): Force underflow exception for results with small
27300         absolute value.
27301         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
27302         <math.h>.
27303         (__atanl): Force underflow exception for results with small
27304         absolute value.
27305         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
27306         (__atanl): Force underflow exception for results with small
27307         absolute value.
27308         * sysdeps/x86/fpu/bits/mathinline.h
27309         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
27310         (__ieee754_atan2): Only define inline for long double.
27311         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
27312         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
27313         * math/auto-libm-test-in: Do not mark underflow exceptions as
27314         possibly missing for bug 15319.  Add more tests of atan2.
27315         * math/auto-libm-test-out: Regenerated.
27316         * math/libm-test.inc (casin_test_data): Do not mark underflow
27317         exceptions as possibly missing for bug 15319.
27318         (casinh_test_data): Likewise.
27319         * sysdeps/i386/fpu/libm-test-ulps: Update.
27320
27321 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
27322
27323         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
27324         * sysdeps/mips/bits/endian.h: Fix comments.
27325
27326 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
27327
27328         [BZ #17996]
27329         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
27330         (hdestroy_r): Likewise.
27331         (hsearch_r): Likewise.
27332         (__hcreate_r): Declare and use libc_hidden_proto.
27333         (__hdestroy_r): Likewise.
27334         (__hsearch_r): Likewise.
27335         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
27336         (hcreate): Call __hcreate_r instead of hcreate_r.
27337         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
27338         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
27339         as weak alias of __hcreate_r.
27340         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
27341         __hdestroy_r.
27342         (hsearch_r): Rename to __hsearch_r and define as weak alias of
27343         __hsearch_r.
27344         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
27345         Remove variable.
27346         (test-xfail-XPG4/search.h/linknamespace): Likewise.
27347         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
27348         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
27349         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
27350
27351 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
27352
27353         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
27354         arena_lock into a single arena_get.
27355
27356 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
27357
27358         * dl-reloc.c: Inlucde libc-internal.h.
27359         (_dl_try_allocate_static_tls): Call ALIGN_UP.
27360         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
27361         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
27362         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
27363         (grow_heap): Likewise.
27364         * malloc/malloc.c: Include libc-internal.h.
27365         (do_check_malloc): Call powerof2.
27366         (sysmalloc): Use pagesize. Call ALIGN_UP.
27367         (systrim): Use pagesize.
27368         (mremap_chunk): Use pagesize. Call ALIGN_UP.
27369         (__libc_valloc): Use pagesize.
27370         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
27371
27372 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
27373
27374         [BZ #17991]
27375         * include/sys/resource.h (__getrlimit64): Declare.  Use
27376         libc_hidden_proto.
27377         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
27378         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
27379         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
27380         getrlimit64.
27381         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
27382         __getrlimit64.
27383         [!getrlimit64] (getrlimit64): Define as weak alias of
27384         __getrlimit64.  Use libc_hidden_weak.
27385         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
27386         using __getrlimit64 not __new_getrlimit64.
27387         (__GI_getrlimit64): Likewise.
27388         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
27389         Likewise.
27390         (__GI_getrlimit64): Likewise.
27391         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
27392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
27393         (getrlimit): Add __getrlimit64 alias.
27394         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
27395         Likewise.
27396         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
27397         Remove variable.
27398         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
27399         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
27400
27401 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
27402
27403         * libio/fileops.c: Add missing sys/mman.h
27404         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
27405
27406 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
27407
27408         * manual/math.texi (Errors in Math Functions): Clarify goals
27409         regarding inexact and underflow exceptions.
27410
27411 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
27412
27413         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
27414         * sysdeps/mips/memset.S: Ditto.
27415
27416 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
27417
27418         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
27419
27420 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
27421
27422         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
27423         (__v1longjmp): Remove versioned symbol.
27424         (__v1siglongjmp): Remove alias and versioned symbol.
27425         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
27426         (__v2siglongjmp): Likewise.
27427
27428 2015-02-16  Torvald Riegel  <triegel@redhat.com>
27429
27430         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
27431
27432 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
27433
27434         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
27435
27436 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
27437
27438         [BZ #17987]
27439         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
27440         zero result does not depend on the sign resulting from
27441         subtraction.
27442         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
27443         Likewise.
27444         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
27445         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
27446         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
27447         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
27448         * math/libm-test.inc (remquo_test_data): Add more tests.
27449
27450 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
27451
27452         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
27453         Problem reported by J William Piggott.
27454
27455 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
27456
27457         [BZ #17978]
27458         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
27459         products 4 * y and 2 * y where those would overflow.
27460         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
27461         Likewise.
27462         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
27463         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
27464         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
27465         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
27466         * math/libm-test.inc (remquo_test_data): Add more tests.
27467
27468         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
27469
27470         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
27471         [defined _COMPILING_NEWLIB].
27472         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
27473         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
27474
27475         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
27476         [!defined __mips_isa_rev || __mips_isa_rev < 6].
27477
27478 2015-02-16  Torvald Riegel  <triegel@redhat.com>
27479
27480         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
27481         acquired.
27482
27483 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
27484
27485         [BZ #17792]
27486         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
27487         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
27488         HOST_STACK_END_ADDR): Likewise.
27489
27490 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
27491
27492         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
27493         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
27494         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
27495
27496 2015-02-13  Roland McGrath  <roland@hack.frob.com>
27497
27498         * sysdeps/generic/c++-types.data: New file.
27499         * sysdeps/generic/ld.abilist: New file.
27500         * sysdeps/generic/libBrokenLocale.abilist: New file.
27501         * sysdeps/generic/libanl.abilist: New file.
27502         * sysdeps/generic/libc.abilist: New file.
27503         * sysdeps/generic/libcrypt.abilist: New file.
27504         * sysdeps/generic/libdl.abilist: New file.
27505         * sysdeps/generic/libm.abilist: New file.
27506         * sysdeps/generic/libpthread.abilist: New file.
27507         * sysdeps/generic/libresolv.abilist: New file.
27508         * sysdeps/generic/librt.abilist: New file.
27509
27510 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
27511
27512         [BZ #17569]
27513         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
27514         Compute absolute value of x as modified by fmod, not original
27515         value of x.
27516         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
27517         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
27518         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
27519         RUN_TEST_ffI_f1_mod8.
27520         (remquo_test_data): Add more tests.
27521
27522 2015-02-13  Roland McGrath  <roland@hack.frob.com>
27523
27524         * sysdeps/init_array/pt-crti.S: New file.
27525
27526 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
27527
27528         [BZ #17967]
27529         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
27530         __builtin_fmaf instead of relying on contraction of a * b + c.
27531
27532 2015-02-12  J William Piggott  <elseifthen@gmx.com>
27533
27534         [BZ #17969]
27535         * manual/time.texi: correct the zoneinfo path in the TZ Variable
27536         node.
27537
27538 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
27539
27540         [BZ #17964]
27541         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
27542         __builtin_fma instead of relying on contraction of a * b + c.
27543
27544 2015-02-12  Roland McGrath  <roland@hack.frob.com>
27545
27546         * Makeconfig (ASFLAGS): Add -Werror=undef.
27547         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
27548         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
27549         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
27550
27551         * Makeconfig (after-link): New variable.
27552         (+link-pie, +link-pie-tests): Use it.
27553         (+link-static, +link-static-tests): Likewise.
27554         (+link, +link-tests): Likewise.
27555         * Makerules (build-module, build-module-asneeded): Likewise.
27556         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
27557         Likewise.
27558         * elf/Makefile ($(objpfx)ld.so): Likewise.
27559
27560 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
27561
27562         [BZ #17965]
27563         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
27564         both struct timeval and struct timespec.
27565
27566 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
27567
27568         [BZ #16560]
27569         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
27570         and redefine.
27571         (__ieee754_exp2l): Do not multiply small fractional parts by
27572         M_LN2l.
27573         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
27574         small argument.
27575         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
27576         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
27577         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
27578         * math/auto-libm-test-in: Add more tests of exp2.
27579         * math/auto-libm-test-out: Regenerated.
27580
27581 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27582
27583         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
27584         unaligned path.
27585
27586 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27587
27588         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
27589         little endian.
27590
27591 2015-02-12  Andreas Schwab  <schwab@suse.de>
27592
27593         [BZ #15790]
27594         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
27595         Filter out elision flags from value returned in kind.
27596         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
27597         * nptl/tst-pthread-mutexattr.c: New file.
27598
27599 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27600
27601         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
27602         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
27603         into gnu-gnu, and update comment to refer to abi-tags.
27604
27605 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
27606
27607         [BZ #15467]
27608         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
27609         (__sincos): Set errno to EDOM for infinite argument.
27610         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
27611         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
27612         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
27613         (__sincosl): Set errno to EDOM for infinite argument.
27614         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
27615         (__sincosl): Set errno to EDOM for infinite argument.
27616         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
27617         (__sincosl): Set errno to EDOM for infinite argument.
27618         * math/libm-test.inc (sincos_test_data): Test errno setting.
27619
27620 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
27621
27622         * string/strxfrm_l.c: Remove #define STRCMP.
27623         * string/strcoll_l.c: Remove #define STRLEN.
27624         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
27625         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
27626
27627 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
27628
27629         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
27630         * sysdeps/mips/mips32/sfp-machine.h: ... here.
27631         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
27632         * sysdeps/mips/mips64/Makefile: ... here.
27633         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
27634         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
27635         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
27636         * sysdeps/mips/mips64/sfp-machine.h: ... here.
27637         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
27638         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
27639         * sysdeps/mips/mips64/n64/Implies: Likewise.
27640
27641 2015-02-10  Roland McGrath  <roland@hack.frob.com>
27642
27643         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
27644         <sys/time.h>, <string.h>, and <errno.h>.
27645         (dest_offset, dest_address, value, zero): Remove unused variables.
27646         (ldouble): Remove typedef.
27647         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
27648         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
27649         1).  Fix code style.
27650         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
27651         (check): Function removed.
27652         (CHECK): New macro.
27653         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
27654         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
27655         Don't call set_sigaction_FP and remove_sigaction_FP here.
27656         (ldouble_test): Just use 'long double' as macro argument, no need for
27657         the 'ldouble' typedef.
27658         (do_test): Set up SIGFPE handler at start, using plain signal rather
27659         than sigaction.  Fix code style.
27660
27661 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
27662
27663         [BZ #17949]
27664         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
27665         jump label.
27666
27667 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27668
27669         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
27670         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27671
27672         * sysdeps/powerpc/configure.ac: Remove file.
27673         * sysdeps/powerpc/configure: Likewise.
27674
27675         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
27676         [sysdep_routines]: Remove wordcopy-power6 object.
27677         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27678         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
27679         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
27680         (__memmove_ppc32): Likewise.
27681         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
27682         file.
27683         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
27684         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
27685         Remove preprocessor.
27686
27687         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
27688         [sysdep_routines]: Remove wide chars objects.
27689         [wcsmbs]: New rule for wide char objects.
27690
27691         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27692         Remove wordcopy-power6 obejct.
27693         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
27694         Use local call for wordcopy and memcpy symbols.
27695         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
27696         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
27697         implementation for loader.
27698         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
27699
27700         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27701         Remove wordcopy-power7 object.
27702         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
27703         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
27704         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
27705         (_wordcopy_fwd_dest_aligned): Likewise.
27706         (_wordcopy_bwd_aligned): Likewise.
27707         (_wordcopy_bwd_dest_aligned): Likewise.
27708
27709         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
27710         Rewrite to call __memmove_ppc instead of include default
27711         implementation.
27712
27713         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27714         Remove wide chars objects.
27715         [wcsmbs]: New rule for wide char objects.
27716
27717 2015-02-09  Andreas Schwab  <schwab@suse.de>
27718
27719         [BZ #17912]
27720         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
27721         in terms of __O_DIRECTORY.
27722
27723 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27724
27725         * time/getdate.c: Include <stdbool.h>.
27726         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
27727         call PTR_MANGLE.
27728         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
27729         PTR_DEMANGLE.
27730
27731 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27732
27733         Add ersatz _Static_assert on older C hosts
27734         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
27735         pre-C11 C platform that is not known to support _Static_assert.
27736
27737 2015-02-07  Richard Braun  <rbraun@sceen.net>
27738
27739         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
27740         sigstate.
27741         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
27742
27743 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27744
27745         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
27746         priority against unexistent AIO_PRIO_DELTA_MAX.
27747         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
27748         instead of int.
27749         * misc/fchflags.c (fchflags): Likewise.
27750         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
27751         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
27752         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
27753         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
27754         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
27755         Declare macros.
27756         [__USE_MISC] (chflags, fchflags): Declare functions.
27757         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
27758         EINVAL when nfds is greater than FD_SETSIZE.
27759         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
27760         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
27761         45.
27762         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
27763         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
27764         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
27765         MACH_RCV_TIMED_OUT.
27766         * hurd/hurd/signal.h (_hurd_self_sigstate,
27767         _hurd_critical_section_lock, _hurd_critical_section_unlock):
27768         Explicit casts from void *.
27769         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
27770         * abi-tags: Rename gnu-gnu os into gnu.
27771
27772         [BZ #4719]
27773         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
27774         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
27775         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
27776         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
27777         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
27778         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
27779
27780         [BZ #17944]
27781         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
27782         duplicates ADDR->sun_path with sockaddr LEN limitation.
27783         * sysdeps/mach/hurd/connect.c: Include <string.h>
27784         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
27785         * sysdeps/mach/hurd/sendmsg.c: Likewise.
27786         * sysdeps/mach/hurd/sendto.c: Likewise.
27787         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
27788         implementing it by hand.
27789
27790 2015-02-06  Roland McGrath  <roland@hack.frob.com>
27791
27792         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
27793         Use sfi_breg on ldr.
27794         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
27795         Likewise.
27796
27797         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
27798         it's defined.
27799         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
27800         Test SIGSETXID only if it's defined.
27801
27802         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
27803
27804         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
27805         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
27806
27807         * nptl/tst-align2.c: Moved ...
27808         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
27809         * nptl/Makefile (tests): Remove tst-align2.
27810         * sysdeps/unix/sysv/linux/Makefile
27811         [$(subdir) = nptl] (tests): Add tst-align-clone.
27812         * nptl/tst-getpid1.c: Moved ...
27813         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
27814         * nptl/tst-getpid2.c: Moved ...
27815         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
27816         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
27817         * sysdeps/unix/sysv/linux/Makefile
27818         [$(subdir) = nptl] (tests): ... here.
27819         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
27820         * sysdeps/unix/sysv/linux/Makefile
27821         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
27822
27823         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
27824         Drop trailing \n from perror argument.  Use return rather than exit.
27825
27826         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
27827         on [SA_SIGINFO].
27828         * nptl/tst-cancel21.c (do_test): Likewise.
27829         * debug/tst-backtrace6.c: Include <signal.h> first thing.
27830         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
27831         [!SA_SIGINFO]: Make it a stub test.
27832
27833         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
27834         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
27835
27836         * posix/tst-getlogin.c: Move to ...
27837         * login/tst-getlogin.c: ... here.
27838         * posix/Makefile (tests): Move tst-getlogin to ...
27839         * login/Makefile (tests): ... here.
27840
27841         * libio/tst-atime.c (do_test): Move local variables SV and E
27842         inside [ST_NOATIME] conditional.
27843
27844         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
27845
27846         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
27847
27848         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
27849         (wait_code): New function replaces macro.
27850         Call nanosleep rather than syscall.
27851
27852         * nptl/pt-system.c: Rewritten.  Put everything under
27853         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27854         Use IFUNC to redirect when possible.
27855
27856         * nptl/pt-longjmp.c: Rewritten.  Put everything under
27857         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27858         Use IFUNC to redirect when possible.
27859
27860         * nptl/pt-fork.c: Rewritten.  Put everything under
27861         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27862         Use IFUNC to redirect when possible.
27863         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
27864
27865         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
27866         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
27867         unconditionally nowadays.  This included the only reference to
27868         __vdso_clock_gettime that appears outside libc proper.
27869         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
27870         Remove version set (containing only __vdso_clock_gettime).
27871         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
27872         Add attribute_hidden.
27873         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
27874         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
27875         libc_hidden_data_def.
27876         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27877         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27878
27879         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
27880         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
27881         setrpcent, and getrpcport to ...
27882         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
27883         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
27884         getrpcbynumber_r, and getrpcent_r to ...
27885         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
27886         * inet/getrpcbyname.c: Moved ...
27887         * sunrpc/getrpcbyname.c: ... here.
27888         * inet/getrpcbyname_r.c: Moved ...
27889         * sunrpc/getrpcbyname_r.c: ... here.
27890         * inet/getrpcbynumber.c: Moved ...
27891         * sunrpc/getrpcbynumber.c: ... here.
27892         * inet/getrpcbynumber_r.c: Moved ...
27893         * sunrpc/getrpcbynumber_r.c: ... here.
27894         * inet/getrpcent.c: Moved ...
27895         * sunrpc/getrpcent.c: ... here.
27896         * inet/getrpcent_r.c: Moved ...
27897         * sunrpc/getrpcent_r.c: ... here.
27898         * inet/Makefile (routines): Move those to ...
27899         * sunrpc/Makefile (routines): ... here.
27900         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
27901         the $(subdirs) list.
27902         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
27903         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
27904         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
27905         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
27906
27907         * elf/Makefile (routines): Include $(all-dl-routines), not just
27908         $(dl-routines).
27909         (rtld-routines): Likewise.  Use = rather than :=.
27910         * sysdeps/aarch64/Makefile [$(subdir) = elf]
27911         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
27912         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
27913         * sysdeps/arm/Makefile: Likewise.
27914         * sysdeps/i386/Makefile: Likewise.
27915         * sysdeps/x86_64/Makefile: Likewise.
27916         * sysdeps/hppa/Makefile [$(subdir) = elf]
27917         (sysdep_routines, sysdep-rtld-routines): Don't add
27918         $(sysdep-dl-routines) to these.
27919         * sysdeps/ia64/Makefile: Likewise.
27920         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
27921         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
27922         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
27923         Don't add dl-static to these; sysdep-dl-routines alone is enough.
27924         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
27925         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
27926         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
27927         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
27928         * sysdeps/powerpc/Makefile [$(subdir) = elf]
27929         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
27930         these; sysdep-dl-routines alone is enough.
27931
27932 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
27933
27934         [BZ #17932]
27935         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
27936         where multiplication results in zero and third argument is finite
27937         and nonzero.
27938         * math/auto-libm-test-in: Add more tests of fma.
27939         * math/auto-libm-test-out: Regenerated.
27940
27941         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
27942         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
27943         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
27944         (_FP_CMP_EQ): Likewise.
27945         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
27946
27947         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
27948         extra argument CHECK_NAN.  Redefine as wrapper around
27949         _FP_EXTEND_CNAN.
27950
27951 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
27952
27953         * version.h (RELEASE): Set to "stable".
27954         (VERSION): Set to "2.21"
27955         * include/features.h (__GLIBC_MINOR__): Set to 21.
27956
27957         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
27958
27959 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27960             Paul Eggert  <eggert@cs.ucla.edu>
27961
27962         [BZ #16618]
27963         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
27964         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
27965         size in bytes. Store needed elements in wpmax. Use needed size
27966         in bytes for extend_alloca.
27967
27968 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
27969
27970         * manual/install.texi: Latest tested versions are GCC 4.9.2,
27971         binutls 2.25, and texinfo 5.2.
27972         * INSTALL: Regenerate.
27973         * sysdeps/nios2/configure: Regenerate.
27974         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
27975         * manual/contrib.texi: Update.
27976         * po/be.po: Update.
27977         * po/bg.po: Update.
27978         * po/ca.po: Update.
27979         * po/cs.po: Update.
27980         * po/da.po: Update.
27981         * po/de.po: Update.
27982         * po/el.po: Update.
27983         * po/eo.po: Update.
27984         * po/es.po: Update.
27985         * po/fi.po: Update.
27986         * po/fr.po: Update.
27987         * po/gl.po: Update.
27988         * po/hr.po: Update.
27989         * po/hu.po: Update.
27990         * po/ia.po: Update.
27991         * po/id.po: Update.
27992         * po/it.po: Update.
27993         * po/ja.po: Update.
27994         * po/ko.po: Update.
27995         * po/lt.po: Update.
27996         * po/nb.po: Update.
27997         * po/nl.po: Update.
27998         * po/pl.po: Update.
27999         * po/pt_BR.po: Update.
28000         * po/ru.po: Update.
28001         * po/rw.po: Update.
28002         * po/sk.po: Update.
28003         * po/sl.po: Update.
28004         * po/sv.po: Update.
28005         * po/tr.po: Update.
28006         * po/uk.po: Update.
28007         * po/vi.po: Update.
28008         * po/zh_CN.po: Update.
28009         * po/zh_TW.po: Update.
28010
28011         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
28012         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
28013         * sysdeps/hppa/dl-irel.h: Remove #warning.
28014         * sysdeps/hppa/entry.h: Provide prototype for
28015         __canonicalize_funcptr_for_compare and cast argument.
28016         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
28017         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
28018         * sysdeps/hppa/sotruss-lib.c: New file.
28019         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
28020         (atomic_compare_and_exchange_val_acq): Use __typeof__.
28021         (atomic_compare_and_exchange_bool_acq): Likewise.
28022         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
28023         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
28024
28025         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
28026         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
28027         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
28028
28029 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
28030
28031         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
28032         called function in non-PIC case.
28033
28034 2015-01-31  David S. Miller  <davem@davemloft.net>
28035
28036         * sysdeps/sparc/sparc32/bits/atomic.h
28037         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
28038         unlock not after it.
28039         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
28040         volatile register usage warnings from the compiler.
28041
28042         * sysdeps/sparc/nptl/sem_init.c: Delete.
28043         * sysdeps/sparc/nptl/sem_post.c: Delete.
28044         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
28045         * sysdeps/sparc/nptl/sem_wait.c: Delete.
28046         * sysdeps/sparc/sparc32/sem_init.c: New file.
28047         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
28048         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
28049         padding explicitly initialized.
28050         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
28051         padding for in-semaphore spinlock.
28052         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
28053         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
28054         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
28055         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
28056         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
28057         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
28058         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
28059         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
28060         version.
28061         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
28062         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
28063
28064 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
28065
28066         [BZ #17801]
28067         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28068         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
28069         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
28070         New.
28071         (index_AVX_Fast_Unaligned_Load): Likewise.
28072         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
28073         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
28074         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
28075         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
28076         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
28077         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
28078         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
28079         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
28080         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
28081
28082 2015-01-29  Andreas Schwab  <schwab@suse.de>
28083
28084         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
28085
28086 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
28087
28088         [BZ #17892]
28089         * nscd/nscd_stat.c (send_stats): Initialize DATA.
28090
28091 2015-01-28  Martin Sebor  <msebor@redhat.com>
28092
28093         * math/README.libm-test: Clarify. Add "How to read the test output."
28094
28095 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
28096
28097         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
28098         Define to 0.
28099
28100 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
28101
28102         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
28103         (__HAVE_64B_ATOMICS): Define to 0.
28104
28105 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
28106
28107         [BZ #17885]
28108         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
28109         value to set as new flag.
28110
28111         [BZ #16576]
28112         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
28113         and use _ARCH_PPCSQ instead.
28114         (__ieee754_sqrt): Likewise.
28115         (__ieee754_sqrtf): Likewise.
28116         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
28117         _ARCH_PPCSQ is defined.
28118         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
28119         fsqrt instruction.
28120         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
28121         _ARCH_PPCSQ is defined.
28122         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
28123         fsqrts instruction.
28124         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
28125
28126 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28127
28128         * iconv/loop.c: Suppress array out of bound warning caused by GCC
28129         bug (GCC BZ #64739).
28130
28131 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
28132
28133         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
28134         Mark _retval as used.
28135         (lll_futex_wake_unlock): Likewise.
28136         (lll_futex_timed_wait_requeue_pi): Likewise.
28137
28138         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
28139         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
28140         register variables.
28141
28142         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
28143         libm_hidden_def.
28144
28145         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
28146         (__bswap_64): Mark as __always_inline.
28147
28148 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
28149
28150         [BZ #15378]
28151         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
28152         when none of the search directories exist.
28153
28154 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
28155
28156         [BZ #17869]
28157         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
28158         power8 in .machine directive.
28159
28160         [BZ #17868]
28161         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
28162         set dependency from opd value.
28163
28164 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
28165
28166         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28167         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
28168         architecture.
28169
28170 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
28171
28172         [BZ #17870]
28173         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
28174         with uint64_t.
28175         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
28176         (uint64_t) 1.
28177         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
28178         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
28179         Replace 1UL with (uint64_t) 1.
28180         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
28181         int with uint64_t.
28182
28183 2015-01-23  Roland McGrath  <roland@hack.frob.com>
28184
28185         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
28186         (if_freenameindex): Likewise.
28187
28188         * resource/getrlimit64.c: Add missing libc_hidden_def.
28189
28190 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
28191
28192         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
28193         __label__.
28194         (_FP_FMA): Likewise.
28195         (_FP_TO_INT_ROUND): Likewise.
28196         (_FP_FROM_INT): Likewise.
28197
28198 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28199
28200         [BZ #16418]
28201         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
28202         Make code racy and cancel safe.
28203
28204 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
28205
28206         * sysdeps/arm/unwind-resume.h: Fix copyright year.
28207         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
28208         attribution.
28209
28210         * pwd/tst-getpw.c: Rewrite.
28211
28212         [BZ #17702]
28213         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
28214         (modules-names): Add moddummy1 and moddummy2.
28215         ($(objpfx)tst-rec-dlopen): Define.
28216         * dlfcn/moddummy1.c: New file.
28217         * dlfcn/moddummy2.c: New file.
28218         * dlfcn/tst-rec-dlopen.c: New file.
28219         * elf/dl-cache.c (_dl_load_cache_lookup):
28220         Return char*. Copy result with alloca/strcpy/strdup.
28221         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
28222         returns char*. Free cached. If not saving realname
28223         free cached.
28224         * elf/dl-open.c (dl_open_worker): Do not assert that
28225         _r_debug->r_state is RT_CONSISTENT.
28226         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
28227         returns char*.
28228
28229 2015-01-21  Torvald Riegel  <triegel@redhat.com>
28230             Carlos O'Donell  <carlos@redhat.com>
28231
28232         [BZ #12674]
28233         * nptl/sem_waitcommon.c: New file.
28234         * nptl/sem_wait.c: Include sem_waitcommon.c.
28235         (__sem_wait_cleanup, do_futex_wait): Remove.
28236         (__new_sem_wait): Adapt.
28237         (__new_sem_trywait): New function.
28238         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
28239         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
28240         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
28241         (sem_timedwait): Adapt.
28242         * nptl/sem_post.c (__new_sem_post): Adapt.
28243         (futex_wake): New function.
28244         (__old_sem_post): Add release MO fence.
28245         * nptl/sem_open.c (sem_open): Adapt.
28246         * nptl/sem_init.c (__new_sem_init): Adapt.
28247         (futex_private_if_supported): New function.
28248         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
28249         (__old_sem_getvalue): Add using previous code.
28250         * sysdeps/nptl/internaltypes.h: Adapt.
28251         * nptl/tst-sem13.c (do_test): Adapt.
28252         * nptl/tst-sem11.c (main): Adapt.
28253         * nptl/sem_trywait.c: Remove.
28254         * nptl/DESIGN-sem.txt: Remove.
28255         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
28256         (gen-as-const-headers): Remove structsem.sym.
28257         * nptl/structsem.sym: Remove.
28258         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
28259         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
28260         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
28261         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
28262         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
28263         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
28264         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
28265         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
28266         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
28267         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
28268         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
28269         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
28270         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
28271         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
28272         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
28273         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
28274         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
28275         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
28276         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
28277         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
28278         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
28279         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
28280
28281 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
28282
28283         * INSTALL: Regenerated.
28284
28285         * po/libc.pot: Regenerated.
28286
28287 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
28288             Sandra Loosemore  <sandra@codesourcery.com>
28289             Andrew Jenner  <andrew@codesourcery.com>
28290             Joseph Myers  <joseph@codesourcery.com>
28291             Nathan Sidwell  <nathan@codesourcery.com>
28292
28293         * NEWS: Mention new Nios II port.
28294         * sysdeps/nios2/Implies: New file.
28295         * sysdeps/nios2/Makefile: New file.
28296         * sysdeps/nios2/Subdirs: New file.
28297         * sysdeps/nios2/Versions: New file.
28298         * sysdeps/nios2/__longjmp.S: New file.
28299         * sysdeps/nios2/abort-instr.h: New file.
28300         * sysdeps/nios2/backtrace.c: New file.
28301         * sysdeps/nios2/bits/endian.h: New file.
28302         * sysdeps/nios2/bits/fenv.h: New file.
28303         * sysdeps/nios2/bits/link.h: New file.
28304         * sysdeps/nios2/bits/setjmp.h: New file.
28305         * sysdeps/nios2/bsd-_setjmp.S: New file.
28306         * sysdeps/nios2/bsd-setjmp.S: New file.
28307         * sysdeps/nios2/configure: New generated file.
28308         * sysdeps/nios2/configure.ac: New file.
28309         * sysdeps/nios2/crti.S: New file.
28310         * sysdeps/nios2/crtn.S: New file.
28311         * sysdeps/nios2/dl-init.c: New file.
28312         * sysdeps/nios2/dl-machine.h: New file.
28313         * sysdeps/nios2/dl-sysdep.h: New file.
28314         * sysdeps/nios2/dl-tls.h: New file.
28315         * sysdeps/nios2/dl-trampoline.S: New file.
28316         * sysdeps/nios2/gccframe.h: New file.
28317         * sysdeps/nios2/gmp-mparam.h: New file.
28318         * sysdeps/nios2/jmpbuf-offsets.h: New file.
28319         * sysdeps/nios2/jmpbuf-unwind.h: New file.
28320         * sysdeps/nios2/ldsodefs.h: New file.
28321         * sysdeps/nios2/libc-tls.c: New file.
28322         * sysdeps/nios2/libm-test-ulps: New file.
28323         * sysdeps/nios2/machine-gmon.h: New file.
28324         * sysdeps/nios2/math-tests.h: New file.
28325         * sysdeps/nios2/math_private.h: New file.
28326         * sysdeps/nios2/memusage.h: New file.
28327         * sysdeps/nios2/nptl/Makefile: New file.
28328         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
28329         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
28330         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
28331         * sysdeps/nios2/nptl/pthreaddef.h: New file.
28332         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
28333         * sysdeps/nios2/nptl/tls.h: New file.
28334         * sysdeps/nios2/preconfigure: New file.
28335         * sysdeps/nios2/s_fma.c: New file.
28336         * sysdeps/nios2/s_fmaf.c: New file.
28337         * sysdeps/nios2/setjmp.S: New file.
28338         * sysdeps/nios2/sfp-machine.h: New file.
28339         * sysdeps/nios2/sotruss-lib.c: New file.
28340         * sysdeps/nios2/stackguard-macros.h: New file.
28341         * sysdeps/nios2/stackinfo.h: New file.
28342         * sysdeps/nios2/start.S: New file.
28343         * sysdeps/nios2/sysdep.h: New file.
28344         * sysdeps/nios2/tls-macros.h: New file.
28345         * sysdeps/nios2/tst-audit.h: New file.
28346         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
28347         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
28348         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
28349         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
28350         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
28351         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
28352         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
28353         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
28354         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
28355         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
28356         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
28357         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
28358         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
28359         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
28360         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
28361         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
28362         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
28363         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
28364         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
28365         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
28366         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
28367         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
28368         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
28369         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
28370         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
28371         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
28372         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
28373         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
28374         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
28375         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
28376         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
28377         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
28378         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
28379         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
28380         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
28381         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
28382         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
28383         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
28384         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
28385         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
28386         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
28387         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
28388         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
28389         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
28390
28391 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
28392
28393         [BZ #17844]
28394         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
28395         (getutent): Use weak_alias in non SHARED case
28396         and default_symbol_version in SHARED case.
28397         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
28398         (getutent_r, pututline): Likewise.
28399         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
28400         (getutid): Likewise.
28401         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
28402         (getutid_r): Likewise.
28403         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
28404         (getutline): Likewise.
28405         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
28406         (getutline_r): Likewise.
28407         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
28408         (updwtmp): Likewise.
28409
28410 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
28411
28412         [BZ #17848]
28413         * sysdeps/s390/s390-32/memcmp.S
28414         (memcmp_g5): Rename to __memcmp_g5.
28415         * sysdeps/s390/s390-32/memcpy.S
28416         (memcpy_g5): Rename to __memcpy_g5.
28417         Jump to __memcpy_mvcle instead of memcpy_mvcle.
28418         (memcpy_mvcle) Rename to __memcpy_mvcle.
28419         * sysdeps/s390/s390-32/memset.S
28420         (memset_g5): Rename to __memset_g5.
28421         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
28422         (IFUNC_RESOLVE): Prefix ifunc-resolve function
28423         and use prefixed functions.
28424         * sysdeps/s390/s390-32/multiarch/memcmp.S
28425         (memcmp_z196): Rename to __memcmp_z196.
28426         (memcmp_z10): Rename to __memcmp_z10.
28427         (memcmp): Set alias to __memcmp_g5.
28428         (bcmp): Set alias to __memcmp_g5.
28429         * sysdeps/s390/s390-32/multiarch/memcpy.S
28430         (memcpy_z196): Rename to __memcpy_z196.
28431         Jump to __memcpy_mvcle instead of memcpy_mvcle.
28432         (memcpy_z10): Rename to __memcpy_z10.
28433         Jump to __memcpy_mvcle instead of memcpy_mvcle.
28434         (memcpy): Set alias to __memcpy_g5.
28435         * sysdeps/s390/s390-32/multiarch/memset.S
28436         (memset_z196): Rename to __memset_z196.
28437         Jump to __memset_mvcle instead of memset_mvcle.
28438         (memset_z10): Rename to __memset_z10.
28439         Jump to __memset_mvcle instead of memset_mvcle.
28440         (memset_mvcle) Rename to __memset_mvcle.
28441         (memset): Set alias to __memset_g5.
28442         * sysdeps/s390/s390-64/memcmp.S
28443         (memcmp_z900): Rename to __memcmp_z900.
28444         * sysdeps/s390/s390-64/memcpy.S
28445         (memcpy_z900): Rename to __memcpy_z900.
28446         Jump to __memcpy_mvcle instead of memcpy_mvcle.
28447         (memcpy_mvcle) Rename to __memcpy_mvcle.
28448         * sysdeps/s390/s390-64/memset.S
28449         (memset_z900): Rename to __memset_z900.
28450         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
28451         (IFUNC_RESOLVE): Prefix ifunc-resolve function
28452         and use prefixed functions.
28453         * sysdeps/s390/s390-64/multiarch/memcmp.S
28454         (memcmp_z196): Rename to __memcmp_z196.
28455         (memcmp_z10): Rename to __memcmp_z10.
28456         (memcmp): Set alias to __memcmp_z900.
28457         (bcmp): Set alias to __memcmp_z900.
28458         * sysdeps/s390/s390-64/multiarch/memcpy.S
28459         (memcpy_z196): Rename to __memcpy_z196.
28460         Jump to __memcpy_mvcle instead of memcpy_mvcle.
28461         (memcpy_z10): Rename to __memcpy_z10.
28462         Jump to __memcpy_mvcle instead of memcpy_mvcle.
28463         (memcpy): Set alias to __memcpy_z900.
28464         * sysdeps/s390/s390-64/multiarch/memset.S
28465         (memset_z196): Rename to __memset_z196.
28466         Jump to __memset_mvcle instead of memset_mvcle.
28467         (memset_z10): Rename to __memset_z10.
28468         Jump to __memset_mvcle instead of memset_mvcle.
28469         (memset_mvcle) Rename to __memset_mvcle.
28470         (memset): Set alias to __memset_z900.
28471
28472 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
28473
28474         [BZ #17748]
28475         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
28476         __fesetenv instead of fesetenv.
28477
28478 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28479
28480         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
28481         macro.
28482
28483 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28484
28485         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
28486         regression on LE.
28487
28488         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
28489         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
28490         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
28491         strncmp-power8 object.
28492         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28493         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
28494         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
28495         * NEWS: Update.
28496
28497 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28498             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28499
28500         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
28501         trailing byte check.
28502
28503 2015-01-13  David S. Miller  <davem@davemloft.net>
28504
28505         * include/signal.h (__sigreturn): Guard with __USE_MISC.
28506
28507 2015-01-13  Roland McGrath  <roland@hack.frob.com>
28508
28509         * login/logout.c (logout): Use memset rather than bzero.
28510         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
28511         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
28512         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
28513         (_gethtbyaddr): Likewise.
28514         * locale/programs/simple-hash.c (bcopy): Macro removed.
28515
28516 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28517
28518         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
28519         Add strcmp-power8 object.
28520         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28521         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
28522         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
28523         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
28524         __strcmp_power8 implementation.
28525         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
28526         * NEWS: Update.
28527
28528         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
28529         Add strncpy-power8 and stpncpy-power8 objects.
28530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28531         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
28532         implementations.
28533         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
28534         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
28535         __stpncpy_power8 implementation.
28536         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
28537         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
28538         __strncpy_power8 implementation.
28539         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
28540         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
28541         * NEWS: Update.
28542
28543         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
28544         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
28545         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
28546
28547         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
28548         strncat-power8 object.
28549         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
28550         __strcat_power8 implementation.
28551         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28552         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
28553         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
28554         optimized strcat for power8.
28555
28556         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
28557         strcpy-power8 and stpcpy-power8 objects.
28558         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28559         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
28560         implementations.
28561         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
28562         multiarch stpcpy implementation for POWER8.
28563         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
28564         multiarch strcpy implementation for POWER8.
28565         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
28566         __strcpy_power8 function.
28567         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
28568         stpcpy for POWER8.
28569         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
28570         strcpy for POWER8.
28571         * NEWS: Update.
28572
28573 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
28574
28575         [BZ #16009]
28576         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
28577         weights and rules. Use do_xfrm_cached if data fits in cache,
28578         do_xfrm otherwise.  Moved former main loop to...
28579         * (do_xfrm_cached): New function.
28580         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
28581         find_idx, find_position and stack_push.
28582         * (find_idx): New function.
28583         * (find_position): Likewise.
28584         * localedata/sort-test.sh: Added test run for do_xfrm.
28585         * localedata/xfrm-test.c (main): Added command line option
28586         -nocache to run the test with strings that are too large for
28587         the STRXFRM cache.
28588
28589 2015-01-13  Torvald Riegel  <triegel@redhat.com>
28590
28591         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
28592         variable to lll_futex_wake call, not the value itself.
28593
28594 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
28595
28596         [BZ #17803]
28597         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
28598         twom64.  Adjust value to 0x1p-64L.
28599         (__scalblnl): Only return standard underflowing result for K <=
28600         -64 not K <= -63; adjust exponent for underflowing result by 64
28601         not 63.
28602         * math/libm-test.inc (scalbn_test_data): Add more tests.
28603         (scalbln_test_data): Likewise.
28604
28605         [BZ #17834]
28606         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
28607         0x1p63L.
28608         (__scalblnl): Get new exponent of adjusted subnormal value from ES
28609         not HX.
28610         * math/libm-test.inc (scalbn_test_data): Add more tests.
28611         (scalbln_test_data): Likewise.
28612
28613 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28614             Stefani Seibold  <stefani@seibold.net>
28615
28616         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
28617         (sysdep_routines): Add dl-vdso here, ...
28618         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
28619         (sysdep_routines): ... not here.
28620         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
28621         fallback when vDSO is not presented.
28622         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
28623         Define with libc_hidden_proto/libc_hidden_data_def definitions.
28624         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
28625         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
28626         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
28627         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
28628         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
28629         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
28630         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
28631         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
28632         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
28633         fallback configurable symbol when vDSO is not available.
28634         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
28635         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
28636         be able to redefine fallback symbol when vDSO is not available.
28637         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
28638         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
28639
28640 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28641
28642         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
28643         (TLS_INIT_TP): Add tm_capable initialization.
28644         (TLS_DEFINE_INIT_TP): Likewise.
28645         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
28646         TCB.
28647         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
28648         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
28649         calculation.
28650         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
28651         transactoion is lock elision is built and TCB tm_capable is set.
28652         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
28653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
28654         (INTERNAL_SYSCALL_NCS): Likewise.
28655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
28656         (INTERNAL_SYSCALL_NCS): Likewise.
28657         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
28658
28659         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
28660         for powerpc.
28661         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
28662         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
28663         and remove it for 32 bits case.
28664         [pthread_rwlock_t] (__rwelision): New field for lock elision.
28665         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
28666         initialization.
28667         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
28668         Disable lock elision with rdlocks if elision is not available.
28669
28670         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
28671         (sysdep_routines): Add lock elision objects.
28672         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
28673         [pthread_mutex_t] (__spins): Rework to add lock elision field.
28674         [pthread_mutex_t] (__elision): Add field.
28675         [__PTHREAD_SPINS]: Adjust to init lock elision field.
28676         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
28677         elision definitions for powerpc.
28678         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
28679         implementation of lock elision for powerpc.
28680         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
28681         implementation of timed lock elision for powerpc.
28682         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
28683         implementation of trylock with lock elision for powerpc.
28684         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
28685         implementaion of unlock for lock elision for powerpc.
28686         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
28687         automatic enable lock elision for mutexes.
28688         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
28689         transaction execution definitions for powerpc.
28690         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
28691         definitions.
28692         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
28693         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
28694         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
28695         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
28696         * NEWS: Update.
28697
28698 2015-01-09  Roland McGrath  <roland@hack.frob.com>
28699
28700         * sysdeps/posix/shm-directory.c: Use <> rather than ""
28701         for #include of <shm-directory.h>.
28702
28703 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
28704
28705         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
28706         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
28707
28708 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
28709
28710         [BZ #17791]
28711         * NEWS: Mention bug fix.
28712         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
28713         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
28714         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
28715
28716 2015-01-09  Torvald Riegel <triegel@redhat.com>
28717
28718         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
28719
28720 2015-01-09  Torvald Riegel <triegel@redhat.com>
28721
28722         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
28723
28724 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
28725
28726         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
28727         pointer and cast to uintptr_t.
28728
28729 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
28730
28731         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
28732         removed.
28733         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
28734
28735 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
28736
28737         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
28738         of 0.
28739
28740 2015-01-08  Roland McGrath  <roland@hack.frob.com>
28741
28742         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
28743         <nptl/pthreadP.h> instead.
28744         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
28745
28746         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
28747         already defined.
28748         [__SIGRTMIN] (init): Function removed.
28749         [__SIGRTMIN] (initialized): Variable removed.
28750         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
28751         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
28752         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
28753         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
28754         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
28755         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
28756         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
28757         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
28758         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
28759         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
28760         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
28761         * sysdeps/nptl/allocrtsig.c: New file.
28762         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
28763         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
28764         * sysdeps/generic/testrtsig.h: File removed.
28765
28766         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
28767         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
28768
28769         * nptl/nptl-init.c (pthread_functions): Conditionalize
28770         .ptr__nptl_setxid initialization on [SIGSETXID].
28771
28772         * sysdeps/nptl/sys/procfs.h: New file.
28773         * nptl_db/Makefile (headers): Add it.
28774         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
28775
28776         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
28777         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
28778         * nptl/pthread_attr_setaffinity.c: Include it.
28779         * nptl/pthread_setattr_default_np.c: Likewise.
28780         * nptl/check-cpuset.h: New file.
28781
28782 2015-01-08  Richard Henderson  <rth@redhat.com>
28783
28784         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
28785         (CFLAGS-tst-execstack-prog.c): Likewise.
28786         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
28787
28788 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
28789             Sandra Loosemore  <sandra@codesourcery.com>
28790             Andrew Jenner  <andrew@codesourcery.com>
28791             Joseph Myers  <joseph@codesourcery.com>
28792             Nathan Sidwell  <nathan@codesourcery.com>
28793
28794         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
28795         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
28796         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
28797         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
28798         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
28799         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
28800         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
28801         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
28802         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
28803         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
28804         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
28805         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
28806         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
28807         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
28808         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
28809         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
28810         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
28811
28812 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28813
28814         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
28815         timespec struct member in syscall macro.
28816         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
28817         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
28818         first timeval struct member in syscall macro.
28819         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
28820
28821 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
28822
28823         [BZ #17748]
28824         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
28825         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
28826         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
28827         __feupdateenv and define as weak alias of __feupdateenv.  Use
28828         libm_hidden_weak.
28829         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
28830         libm_hidden_def.
28831         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
28832         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
28833         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
28834         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
28835         libm_hidden_def.
28836         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
28837         __feupdateenv and define as weak alias of __feupdateenv.  Use
28838         libm_hidden_weak.
28839         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
28840         libm_hidden_def.
28841         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
28842         __feupdateenv and define as weak alias of __feupdateenv.  Use
28843         libm_hidden_weak.
28844         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
28845         libm_hidden_def.
28846         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28847         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28848         (__feupdateenv): Likewise.
28849         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
28850         __feupdateenv and define as weak alias of __feupdateenv.  Use
28851         libm_hidden_weak.
28852         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28853         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
28854         libm_hidden_def.
28855         * sysdeps/tile/math_private.h (__feupdateenv): New inline
28856         function.
28857         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
28858         libm_hidden_def.
28859         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
28860         __feupdateenv instead of feupdateenv.
28861         (default_libc_feupdateenv_test): Likewise.
28862         (libc_feresetround_ctx): Likewise.
28863
28864 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28865
28866         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
28867         prototype.
28868
28869 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28870
28871         * posix/regcomp.c (parse_bracket_exp): Initialize type to
28872         COLL_SYM in a couple of places to avoid uninitialized variable
28873         wanings on tilegx gcc 4.8.2.
28874
28875 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28876
28877         * sysdeps/aarch64/strcpy.S: New file.
28878         * sysdeps/aarch64/stpcpy.S: New file.
28879         * NEWS: Updated.
28880
28881 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28882
28883         * sysdeps/aarch64/strrchr.S: New file.
28884         * NEWS: Updated.
28885
28886 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
28887
28888         [BZ #17658]
28889         * stdlib/setenv.c: Fix memory leak when setting large,
28890         duplicate string.
28891
28892 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
28893
28894         [BZ #17273]
28895         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
28896         and tabs from buffer before parsing fstab entry.
28897         * misc/tst-mntent.c (main): Add test for mount entry with
28898         trailing spaces and tabs.
28899
28900 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
28901
28902         [BZ #17748]
28903         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
28904         * math/fesetround.c (fesetround): Rename to __fesetround and
28905         define as weak alias of __fesetround.  Use libm_hidden_weak.
28906         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
28907         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
28908         * sysdeps/arm/fesetround.c (fesetround): Likewise.
28909         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
28910         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
28911         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
28912         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
28913         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
28914         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
28915         __fesetround_inline.
28916         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
28917         __fesetround_inline instead of __fesetround.
28918         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
28919         __fesetround and define as weak alias of __fesetround.  Use
28920         libm_hidden_weak.  Call __fesetround_inline instead of
28921         __fesetround.
28922         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
28923         __fesetround and define as weak alias of __fesetround.  Use
28924         libm_hidden_weak.
28925         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
28926         Likewise.
28927         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
28928         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
28929         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
28930         * sysdeps/tile/math_private.h (__fesetround): New inline function.
28931         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
28932         __fesetround and define as weak alias of __fesetround.  Use
28933         libm_hidden_weak.
28934         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
28935         __fesetround instead of fesetround.
28936         (default_libc_feholdexcept_setround): Likewise.
28937         (libc_feholdsetround_ctx): Likewise.
28938         (libc_feholdsetround_noex_ctx): Likewise.
28939
28940         [BZ #17748]
28941         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
28942         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
28943         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28944         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28945         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28946         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
28947         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28948         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
28949         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28950         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28951         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28952         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28953         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28954         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28955         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
28956         libm_hidden_def.
28957         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
28958         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
28959         Likewise.
28960         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28961         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28962         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
28963         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28964         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
28965         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28966         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28967         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
28968         __fesetenv instead of fesetenv.
28969         (libc_feresetround_noex_ctx): Likewise.
28970         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28971         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
28972         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
28973         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28974         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28975         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28976         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28977         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28978         (__feupdateenv): Likewise.
28979         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28980         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28981         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28982         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
28983
28984 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28985
28986         [BZ #17806]
28987         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
28988         addresses have been freed.
28989
28990 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28991
28992         * resolv/res_init.c (__res_vinit): Improve comments about nserv
28993         and nservall.
28994
28995 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
28996
28997         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
28998         Clean up check_pf allocation pattern. addresses
28999
29000 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29001
29002         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
29003         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
29004         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
29005         * nptl/pthread_exit.c (__pthread_exit): Likewise.
29006         * nptl/pthread_join.c (pthread_join): Likewise.
29007         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
29008         * sysdeps/posix/waitid.c (__waitid): Likewise.
29009         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
29010         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
29011         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
29012         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
29013         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
29014         Likewise.
29015         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
29016         (__libc_pread64): Likewise.
29017         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
29018         (__libc_pwrite): Likewise.
29019         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
29020         (__libc_pwrite64): Likewsie.
29021         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
29022         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
29023         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
29024         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
29025         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
29026         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
29027         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
29028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
29029         Likewise.
29030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
29031         (__libc_pread64): Likewise.
29032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
29033         Likewise.
29034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
29035         (__libc_pwrite64): Likewise.
29036         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
29037         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
29038         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
29039         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
29040         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
29041         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
29042         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
29043         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
29044         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
29045         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
29046         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
29047         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
29048         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
29049         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
29050         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
29051         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
29052         Likewise.
29053
29054 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
29055
29056         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
29057         (CFLAGS-test-double.c): Likewise.
29058         (CFLAGS-test-ldouble.c): Likewise.
29059         (CPPFLAGS-test-ifloat.c): Likewise.
29060         (CPPFLAGS-test-idouble.c): Likewise.
29061         (CPPFLAGS-test-ildoubl.c): Likewise.
29062         (CFLAGS-test-test-fenv.c): Remove variable.
29063         (CFLAGS-test-misc.c): Likewise.
29064
29065 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
29066
29067         [BZ #17797]
29068         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
29069         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
29070         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
29071         CLOCKS_PER_SEC == 1000000.
29072         * time/clocktest.c (main): Replace %ld with %jd and cast to
29073         intmax_t.
29074
29075 2015-01-05  Roland McGrath  <roland@hack.frob.com>
29076
29077         * sysdeps/generic/unwind-resume.h: New file.
29078         * sysdeps/gnu/unwind-resume.c: Include it.
29079         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
29080         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
29081         argument list.
29082         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
29083         global rather than static.
29084         (_Unwind_Resume): Update user.
29085         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
29086         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
29087         rather than static.  Add __attribute__ ((cold)).
29088         (_Unwind_Resume, __gcc_personality_v0): Update callers.
29089         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
29090         * sysdeps/arm/arm-unwind-resume.S: New file.
29091         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
29092         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
29093         * sysdeps/arm/Makefile [$(subdir) = csu]
29094         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
29095         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
29096         Add rt-arm-unwind-resume.
29097         [$(subdir) = nptl]
29098         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29099         Add pt-arm-unwind-resume.
29100         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
29101         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
29102
29103 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
29104
29105         [BZ #17748]
29106         * include/fenv.h (__feholdexcept): Declare.  Use
29107         libm_hidden_proto.
29108         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
29109         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
29110         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
29111         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
29112         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
29113         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
29114         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
29115         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
29116         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
29117         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
29118         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
29119         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
29120         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
29121         (feholdexcept): Likewise.
29122         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
29123         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
29124         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
29125         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
29126         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
29127         __feholdexcept instead of feholdexcept.
29128         (default_libc_feholdexcept_setround): Likewise.
29129
29130 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
29131
29132         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
29133         to avoid using stl/str to align destination.
29134
29135 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
29136
29137         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
29138
29139 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
29140
29141         [BZ #17796]
29142         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
29143         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
29144         Define as weak alias not strong alias.
29145
29146 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
29147
29148         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
29149         bltzal with addiupc.
29150         (RTLD_START): Ditto.
29151
29152 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
29153
29154         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
29155         for __vdso_* functions in declarations.
29156         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
29157         definitions.
29158         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
29159         INTERNAL_VSYSCALL): Use struct return types to check for error.
29160
29161         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
29162         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
29163         function with cast from llround().
29164         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
29165         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
29166         Define.
29167
29168 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
29169
29170         [BZ #17793]
29171         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
29172         Define as weak alias not strong alias.
29173
29174         [BZ #17635]
29175         * ctype/ctype-c99.c: New file.  isblank implementation moved from
29176         ...
29177         * ctype/ctype-extn.c: ... here.
29178         (__isblank_l): Move to ...
29179         * ctype/ctype-c99_l.c: ... here.  New file.
29180         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
29181         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
29182         Remove variable.
29183         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
29184         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
29185         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
29186         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
29187         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
29188
29189         [BZ #17777]
29190         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
29191         (posix_fadvise64): Define as weak alias not strong alias.
29192         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
29193         (posix_fallocate64): Likewise.
29194         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
29195         Remove variable.
29196         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
29197         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
29198         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
29199         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
29200         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
29201
29202 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
29203
29204         [BZ #16191]
29205         * NEWS: Mention bug fix.
29206         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
29207         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
29208         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
29209         (HOST_STACK_END_ADDR): Likewise.
29210
29211 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
29212
29213         [BZ #17748]
29214         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
29215         * math/fegetround.c (fegetround): Rename to __fegetround and
29216         define as weak alias of __fegetround.  Use libm_hidden_weak.
29217         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
29218         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
29219         * sysdeps/arm/fegetround.c (fegetround): Likewise.
29220         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
29221         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
29222         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
29223         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
29224         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
29225         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
29226         Undefine after rather than before function definition; use
29227         parentheses around function name in definition.
29228         (__fegetround): Also undefine macro after function definition.
29229         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
29230         __fegetround and define as weak alias of __fegetround.  Use
29231         libm_hidden_weak.  Do not undefine as macro.
29232         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
29233         Likewise.
29234         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
29235         __fegetround and define as weak alias of __fegetround.  Use
29236         libm_hidden_weak.
29237         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
29238         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
29239         * sysdeps/tile/math_private.h (__fegetround): New inline function.
29240         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
29241         __fegetround and define as weak alias of __fegetround.  Use
29242         libm_hidden_weak.
29243         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
29244         __fegetround instead of fegetround.
29245
29246         [BZ #17782]
29247         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
29248         Condition macro definition on [__USE_MISC].
29249
29250         [BZ #17781]
29251         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
29252         (struct sigaction): Change type of sa_flags field to int.
29253
29254         [BZ #17780]
29255         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
29256         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
29257         __glibc_reserved0.
29258
29259         * nptl/version.c (banner): Use single year in copyright notice.
29260
29261         * NEWS: Update copyright dates.
29262         * catgets/gencat.c (print_version): Likewise.
29263         * csu/version.c (banner): Likewise.
29264         * debug/catchsegv.sh: Likewise.
29265         * debug/pcprofiledump.c (print_version): Likewise.
29266         * debug/xtrace.sh (do_version): Likewise.
29267         * elf/ldconfig.c (print_version): Likewise.
29268         * elf/ldd.bash.in: Likewise.
29269         * elf/pldd.c (print_version): Likewise.
29270         * elf/sotruss.sh: Likewise.
29271         * elf/sprof.c (print_version): Likewise.
29272         * iconv/iconv_prog.c (print_version): Likewise.
29273         * iconv/iconvconfig.c (print_version): Likewise.
29274         * locale/programs/locale.c (print_version): Likewise.
29275         * locale/programs/localedef.c (print_version): Likewise.
29276         * login/programs/pt_chown.c (print_version): Likewise.
29277         * malloc/memusage.sh (do_version): Likewise.
29278         * malloc/memusagestat.c (print_version): Likewise.
29279         * malloc/mtrace.pl: Likewise.
29280         * manual/libc.texinfo: Likewise.
29281         * nptl/version.c (banner): Likewise.
29282         * nscd/nscd.c (print_version): Likewise.
29283         * nss/getent.c (print_version): Likewise.
29284         * nss/makedb.c (print_version): Likewise.
29285         * posix/getconf.c (main): Likewise.
29286         * scripts/test-installation.pl: Likewise.
29287         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
29288
29289 2015-01-02  Will Newton  <will.newton@linaro.org>
29290
29291         * sysdeps/arm/armv7/configure: Removed.
29292         * sysdeps/arm/armv7/configure.ac: Likewise.
29293
29294 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
29295
29296         * All files with FSF copyright notices: Update copyright dates
29297         using scripts/update-copyrights.
29298         * intl/plural.c: Regenerated.
29299         * locale/programs/charmap-kw.h: Likewise.
29300         * locale/programs/locfile-kw.h: Likewise.
29301
29302 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
29303
29304         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
29305
29306 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
29307
29308         [BZ #17748]
29309         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
29310         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
29311         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
29312         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
29313         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
29314         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
29315         define as weak alias of __fegetenv.  Use libm_hidden_weak.
29316         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
29317         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
29318         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
29319         define as weak alias of __fegetenv.  Use libm_hidden_weak.
29320         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
29321         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
29322         define as weak alias of __fegetenv.  Use libm_hidden_weak.
29323         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
29324         libm_hidden_def.
29325         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
29326         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
29327         Likewise.
29328         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
29329         define as weak alias of __fegetenv.  Use libm_hidden_weak.
29330         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
29331         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
29332         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
29333         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
29334         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
29335         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
29336         __fegetenv instead of fegetenv.
29337         (libc_feholdsetround_noex_ctx): Likewise.
29338
29339 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
29340
29341         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
29342         (Elf_MIPS_ABIFlags_v0): New structure.
29343         (EF_MIPS_FP64): Define.
29344         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
29345         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
29346         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
29347         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
29348         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
29349         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
29350         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
29351         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
29352         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
29353         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
29354         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
29355         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
29356         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
29357         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
29358         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
29359         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
29360         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
29361         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
29362         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
29363         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
29364         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
29365         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
29366         field.
29367         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
29368         EF_MIPS_FP64.
29369         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
29370         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
29371         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
29372         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
29373         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
29374         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
29375         * sysdeps/mips/tst-abi-interlink.c: Likewise.
29376         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
29377         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
29378         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
29379         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
29380         record the current FP ABI extension.
29381         (mips-mode-switch): Define to show if kernel headers support mode
29382         switching.
29383         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
29384         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
29385         supported SYSV ABI version to 3.
29386         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
29387         feature.
29388
29389 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
29390             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29391
29392         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
29393         path.
29394         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
29395
29396 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
29397
29398         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
29399         __fegetround and redefine to call __fegetround.  Remove condition
29400         on [!__NO_MATH_INLINES].
29401         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
29402         function.
29403         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
29404         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
29405         Remove macro.
29406         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
29407         instead of <fenv_libc.h>.
29408         (__llrintl): Call fegetround instead of __fegetround.
29409         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
29410         instead of <fenv_libc.h>.
29411         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
29412         (__lrintl): Call fegetround instead of __fegetround.
29413         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
29414         instead of <fenv_libc.h>.
29415         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
29416         (__rintl): Call fegetround instead of __fegetround.
29417
29418 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
29419
29420         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
29421         arrays.
29422
29423 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
29424
29425         [BZ #17775]
29426         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
29427         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
29428         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
29429
29430 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
29431
29432         * sysdeps/i386/tls-macros.h: Include <features.h>.
29433         (TLS_LE): Use non-PIC version for GCC >= 5.0.
29434         (TLS_IE): Likewise.
29435         (TLS_LD): Likewise.
29436         (TLS_GD): Likewise.
29437         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
29438         define for GCC >= 5.0.
29439
29440 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
29441
29442         * math/test-fenv.c (test_single_exception, set_single_exc,
29443         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
29444         feexcp_mask_test, feenable_test, fe_single_test): Add
29445         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
29446         case where they are not used.
29447         * math/libm-test.inc: Likewise.
29448         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
29449         unused in the absence of FP rounding/exception support.
29450         * stdio-common/tst-printf-round.c: Likewise.
29451         * stdlib/tst-strtod-round.c: Likewise.
29452         * stdlib/tst-strtod-underflow.c: Likewise.
29453
29454 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
29455
29456         [BZ #17723]
29457         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
29458         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
29459         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
29460         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
29461         libm_hidden_weak.
29462         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
29463         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
29464         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
29465         libm_hidden_def.
29466         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
29467         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
29468         libm_hidden_weak.
29469         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
29470         Likewise.
29471         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
29472         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
29473         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
29474         libm_hidden_weak.
29475         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
29476         libm_hidden_def.
29477         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
29478         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
29479         (__feraiseexcept): Likewise.
29480         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
29481         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
29482         libm_hidden_weak.
29483         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
29484         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
29485         libm_hidden_def.
29486         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
29487         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
29488         Use libm_hidden_def.
29489         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
29490         libm_hidden_def.
29491         (feraiseexcept): Define as weak not strong alias.  Use
29492         libm_hidden_weak.
29493         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
29494         New inline function.  Factored out of ...
29495         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
29496         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
29497         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
29498         feraiseexcept.
29499         * math/w_acos.c (__acos): Likewise.
29500         * math/w_asin.c (__asin): Likewise.
29501         * math/w_ilogb.c (__ilogb): Likewise.
29502         * math/w_j0.c (y0): Likewise.
29503         * math/w_j1.c (y1): Likewise.
29504         * math/w_jn.c (yn): Likewise.
29505         * math/w_log.c (__log): Likewise.
29506         * math/w_log10.c (__log10): Likewise.
29507         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
29508         * sysdeps/aarch64/fpu/math_private.h
29509         (libc_feupdateenv_test_aarch64): Likewise.
29510         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
29511         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
29512         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
29513         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
29514         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
29515         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
29516         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
29517         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
29518         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
29519         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
29520
29521 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
29522
29523         [BZ #17732]
29524         * io/test-utime.c (main): Replace %ld with %jd and cast to
29525         intmax_t.
29526         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
29527         * nptl/tst-mutex5.c: Include <stdint.h>.
29528         (do_test): Replace %ld with %jd and cast to intmax_t.
29529         * posix/tst-regex.c (run_test): Likewise.
29530         (run_test_backwards): Likewise.
29531         * rt/tst-clock.c: Include <stdint.h>.
29532         (clock_test): Replace %ld with %jd and cast to intmax_t.
29533         * rt/tst-cpuclock1.c: Include <stdint.h>.
29534         (do_test): Replace %lu with %ju and cast to uintmax_t.
29535         * rt/tst-cpuclock2.c: Include <stdint.h>.
29536         (do_test): Replace %lu with %ju and cast to uintmax_t.
29537         * rt/tst-mqueue1.c: Include <stdint.h>.
29538         (check_attrs): Replace %ld with %jd and cast to intmax_t.
29539         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
29540         intmax_t.
29541         * rt/tst-mqueue4.c (do_test): Likewise.
29542         * rt/tst-timer4.c: Include <stdint.h>.
29543         (check_ts): Replace %ld with %jd and cast to intmax_t.
29544         (do_test): Likewise.
29545         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
29546         and cast to intmax_t.
29547         * sysdeps/pthread/tst-timer.c (main): Likewise.
29548         * time/clocktest.c (main): Likewise.
29549         * time/tst-posixtz.c (do_test): Likewise.
29550         * timezone/tst-timezone.c (main): Likewise.
29551
29552 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
29553             H.J. Lu  <hongjiu.lu@intel.com>
29554
29555         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
29556         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
29557         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
29558         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
29559         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
29560         version if bit_Fast_Unaligned_Load is set.
29561         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
29562         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
29563         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
29564         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
29565         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
29566         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
29567         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29568         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
29569         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
29570         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
29571         to 4.
29572         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
29573         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
29574         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
29575         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
29576
29577 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
29578
29579         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
29580         instead of #if to avoid a Wundef warning.
29581         * stdlib/tst-limits.c (do_test): Likewise.
29582
29583         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
29584         parallel other exception macros.
29585         (fegetenv): Convert from macro to extern inline so that it applies
29586         retroactively to inline functions already seen by the compiler.
29587         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
29588
29589         * posix/Makefile (before-compile): Use $(objpfx) for
29590         posix-conf-vars-def.h.
29591
29592 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
29593
29594         * posix/getconf.c (main): Use size_t for type of I.
29595         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
29596         NSPEC.
29597
29598         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
29599         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
29600         * posix/posix-envs.def: Likewise.
29601         * sysdeps/posix/sysconf.c: Likewise.
29602         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
29603         (specs): Remove array.
29604         * scripts/gen-posix-conf-vars.awk: Support generation of specs
29605         array.
29606
29607         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
29608         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
29609         (__sysconf): Use CONF_IS_* macros.
29610
29611         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
29612         ($(objpfx)posix-conf-vars-def.h): New target.
29613         * posix/posix-conf-vars.list: New file.
29614         * posix/posix-conf-vars.h: New file.
29615         * posix/confstr.c: Include posix-conf-vars.h.
29616         (confstr): Use CONF_IS_* macros.
29617         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
29618         CONF_IS_* macros.
29619         * scripts/gen-posix-conf-vars.awk: New file.
29620
29621 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
29622
29623         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
29624         fegetround): Add no-op macros to avoid linknamespace issues.
29625
29626         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
29627         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
29628
29629         * sysdeps/unix/sysv/linux/tile/sysdep.h
29630         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
29631         assembly-specific section to avoid a redefinition warning.
29632
29633         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
29634         long before casting to pointer to avoid a cast warning.
29635
29636 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
29637
29638         * sysdeps/tile/tilegx/Implies: New file.
29639
29640 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
29641
29642         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
29643
29644 2014-12-23  Florian Weimer  <fweimer@redhat.com>
29645
29646         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
29647
29648 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
29649
29650         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
29651         not define.
29652         * sysdeps/unix/sysv/linux/utimes.c: Do not include
29653         <kernel-features.h>.
29654         (__utimes) [__NR_utimes]: Make code unconditional.
29655         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
29656         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
29657         (__ASSUME_UTIMES): Do not undefine.
29658         * sysdeps/unix/sysv/linux/tile/kernel-features.h
29659         (__ASSUME_UTIMES): Likewise.
29660         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29661         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
29662         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
29663         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
29664
29665 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
29666
29667         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
29668
29669 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
29670
29671         [BZ #17747]
29672         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
29673         alias to weak alias for j0l, y0l.
29674         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
29675         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
29676
29677         [BZ #17746]
29678         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
29679         conversion.
29680
29681 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
29682
29683         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
29684         to zero if not already defined.
29685
29686 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
29687
29688         [BZ #17724]
29689         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
29690         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
29691         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
29692         (char *) casts added.
29693         * sysdeps/ieee754/k_standardf.c: New file.
29694         * sysdeps/ieee754/k_standardl.c: Likewise.
29695         * math/Makefile (libm-support): Remove k_standard.
29696         (libm-calls): Add k_standard.
29697
29698 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
29699
29700         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
29701         Optimize to avoid an unnecessary FPCR read.
29702
29703 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
29704
29705         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
29706         Optimize to reduce FPCR/FPSR accesses.
29707
29708 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
29709
29710         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
29711         Call libc_fetestexcept_aarch64.
29712
29713 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
29714
29715         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
29716         Call libc_fesetround_aarch64.
29717
29718 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
29719
29720         [BZ #17733]
29721         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
29722         (__bind): Do not define as weak alias.
29723         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
29724         define.
29725         (__getsockname): Do not define as weak alias.
29726
29727 2014-12-22  Will Newton  <will.newton@linaro.org>
29728
29729         * manual/install.texi: Document that we require bison 2.7
29730         or above.
29731         * INSTALL: Regenerate.
29732         * configure.ac: Use AC_CHECK_PROG_VER instead of
29733         AC_PATH_PROG when checking for bison and check for
29734         version 2.7 or above.
29735         * configure: Regenerate.
29736
29737 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
29738
29739         [BZ #17745]
29740         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
29741         * sysdeps/tile/ffsll.c (ffsll): To here.
29742
29743         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
29744
29745 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
29746
29747         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
29748         if not defined.
29749         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
29750         definition.
29751         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
29752         hidden ___tls_get_addr.
29753         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
29754         hidden __tls_get_addr.
29755         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
29756         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
29757         Likewise.
29758
29759 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
29760
29761         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
29762         _dl_init call.
29763
29764 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
29765
29766         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
29767         from "call _dl_init@PLT".
29768         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
29769
29770 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
29771
29772         * manual/search.texi: (Array Sort Function): Clarify stable sorting
29773         guarantees.
29774
29775 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
29776
29777         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
29778
29779 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
29780
29781         [BZ #17744]
29782         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
29783         strnlen.
29784
29785 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
29786
29787         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
29788         of multu on MIPSr6.
29789         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
29790         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
29791         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
29792         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
29793         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
29794
29795 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
29796
29797         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
29798         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
29799         (PTR_SUBU): Use subu for mips32r6/mips64r6.
29800         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
29801         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
29802         mips32r6/mips64r6.
29803         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
29804
29805 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
29806
29807         * string/strncat.c (STRNCAT): Simplify implementation.
29808
29809 2014-12-19  David S. Miller  <davem@davemloft.net>
29810
29811         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
29812         access the quad as both a long double and as a series of 4 words.
29813
29814         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
29815         link_map->l_info array access.
29816
29817 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
29818
29819         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
29820
29821         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
29822         * math/atest-exp2.c (TIMEOUT): Likewise.
29823         * math/atest-sincos.c (TIMEOUT): Likewise.
29824
29825 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29826
29827         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
29828         -Wno-error with -fno-builtin-lround.
29829
29830 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29831
29832         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
29833         Contains futex constants and functions moved over from ...
29834         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
29835         <lowlevellock-futex.h>.
29836         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29837         (lll_timedwait_tid): Add comments and parentheses around macro
29838         arguments.
29839
29840 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29841
29842         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
29843         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
29844         (__lll_private_flag): Remove.
29845         (lll_futex_wait): Likewise.
29846         (lll_futex_timed_wait): Likewise.
29847         (lll_futex_wake): Likewise.
29848         (lll_futex_requeue): Likewise.
29849         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29850         (__lll_timedwait_tid): Spell out argument names.
29851         (lll_timedwait_tid): Add comments and parentheses around macro
29852         arguments.
29853         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
29854         LLL_SHARED and LLL_PRIVATE usable from assembly code.
29855
29856 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29857
29858         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
29859         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
29860         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
29861         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
29862         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
29863         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
29864         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
29865         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
29866         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
29867         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
29868         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
29869         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
29870         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
29871         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
29872         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
29873         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
29874         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
29875         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
29876         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
29877
29878 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29879
29880         * sysdeps/x86_64/x32/Makefile: New file.
29881
29882 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29883
29884         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
29885         1L with (mp_limb_t) 1.
29886
29887 2014-12-17  Roland McGrath  <roland@hack.frob.com>
29888
29889         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
29890         * nptl/libc_pthread_init.c: ... here.
29891         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
29892         * nptl/register-atfork.c: ... here.
29893
29894         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
29895         Use pthread_sigmask rather than INTERNAL_SYSCALL.
29896         Use assert_perror to check its return value.
29897         (__gai_create_helper_thread): Likewise.
29898
29899         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
29900
29901         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
29902
29903 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
29904
29905         [BZ #17725]
29906         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
29907         __profil_counter.
29908         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
29909         Likewise.
29910         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
29911         Likewise.
29912         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
29913         Likewise.
29914         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
29915         (profil_counter): Likewise.
29916         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
29917         (profil_counter): Likewise.
29918         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
29919         Likewise.
29920         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
29921         Likewise.
29922         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
29923         (profil_counter): Likewise.
29924         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
29925         Likewise.
29926         [!__profil_counter] (profil_counter): Define as weak alias of
29927         __profil_counter.
29928         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
29929         (profil_counter): Rename to __profil_counter.
29930         [!__profil_counter] (profil_counter): Define as weak alias of
29931         __profil_counter.
29932         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
29933         (profil_counter): Rename to __profil_counter.
29934         [!__profil_counter] (profil_counter): Define as weak alias of
29935         __profil_counter.
29936         * sysdeps/posix/profil.c: Update comment referring to
29937         profil_counter.
29938         (__profil): Use __profil_counter instead of profil_counter.
29939         * sysdeps/posix/sprofil.c (profil_counter): Rename to
29940         __profil_counter.  Use __profil_counter_ushort and
29941         __profil_counter_uint in definitions.
29942         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
29943         instead of profil_counter_uint and profil_counter_ushort.
29944
29945         [BZ #17722]
29946         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
29947         define as weak alias of __inet_makeaddr.
29948         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
29949         as weak alias of __inet_addr.
29950         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
29951         as weak alias of __inet_pton.  Use libc_hidden_weak.
29952         * include/arpa/inet.h (__inet_pton): Declare.  Use
29953         libc_hidden_proto.
29954         (inet_makeaddr): Don't use libc_hidden_proto.
29955         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
29956         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
29957         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
29958         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
29959         Remove variable.
29960         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
29961         (test-xfail-POSIX/time.h/linknamespace): Likewise.
29962
29963 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
29964
29965         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
29966
29967 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29968
29969         * stdio-common/bug-vfprintf-nargs.c (do_test):
29970         Cast value to intptr_t to avoid format warning
29971         for usage with PRIdPTR printing macro.
29972
29973 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29974
29975         * libio/tst-widetext.c (do_test):
29976         Use format type %td instead of %Zd for ptrdiff_t
29977         in order to avoid format warning.
29978
29979 2014-12-17  Andreas Schwab  <schwab@suse.de>
29980
29981         * nscd/mem.c (gc): Add size_t cast to match printf format.
29982
29983 2014-12-16  Roland McGrath  <roland@hack.frob.com>
29984
29985         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
29986         (init): Apply PTR_MANGLE to pointers before storing them.
29987         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
29988         before using them.
29989
29990 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
29991
29992         [BZ #17719]
29993         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
29994         define as weak alias of __memrchr.
29995         (__memrchr): Do not define as strong alias of memrchr.
29996         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
29997         Remove variable.
29998         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
29999         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
30000         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
30001
30002         [BZ #17717]
30003         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
30004         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
30005         (if_indextoname): Rename to __if_indextoname and define as weak
30006         alias of __if_indextoname.  Use libc_hidden_weak.
30007         (if_freenameindex): Rename to __if_freenameindex and define as
30008         weak alias of __if_freenameindex.
30009         (if_nameindex): Rename to __if_nameindex and define as weak alias
30010         of __if_nameindex.
30011         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
30012         __if_nametoindex and define as weak alias of __if_nametoindex.
30013         Use libc_hidden_weak.
30014         (if_freenameindex): Rename to __if_freenameindex and define as
30015         weak alias of __if_freenameindex.
30016         (if_nameindex): Rename to __if_nameindex and define as weak alias
30017         of __if_nameindex.
30018         (if_indextoname): Rename to __if_indextoname and define as weak
30019         alias of __if_indextoname.  Use libc_hidden_weak.
30020         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
30021         __if_nametoindex and define as weak alias of __if_nametoindex.
30022         Use libc_hidden_weak.
30023         (if_freenameindex): Rename to __if_freenameindex and define as
30024         weak alias of __if_freenameindex.  Use libc_hidden_weak.
30025         (if_nameindex_netlink): Use __if_freenameindex instead of
30026         if_freenameindex.
30027         (if_nameindex): Rename to __if_nameindex and define as weak alias
30028         of __if_nameindex.  Use libc_hidden_weak.
30029         (if_indextoname): Rename to __if_indextoname and define as weak
30030         alias of __if_indextoname.  Use libc_hidden_weak.
30031         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
30032         libc_hidden_proto.
30033         [!_ISOMAC] (__if_freenameindex): Likewise.
30034         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
30035         if_nametoindex.
30036         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
30037         variable.
30038         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
30039         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
30040         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
30041         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
30042         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
30043         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
30044         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
30045
30046         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
30047         Remove variable.
30048         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
30049         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
30050
30051 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
30052
30053         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
30054         subscript above bounds'
30055
30056         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
30057         bounds.
30058
30059 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
30060
30061         * libio/tst-fopenloc.c: Use test-skeleton.c.
30062
30063         * stdlib/tst-bsearch.c: Use test-skeleton.c.
30064         (entry): Rename to ITEM.
30065         (do_test, comp): Adjust.
30066
30067         * stdio-common/tst-fseek.c: Use test-skeleton.c.
30068
30069 2014-12-16  Torvald Riegel  <triegel@redhat.com>
30070
30071         * string/tester.c: Include <libc-internal.h>.
30072         (test_memset): Ignore -Wmemset-transposed-args.
30073
30074 2014-12-16  Torvald Riegel  <triegel@redhat.com>
30075
30076         * misc/tst-mntent2.c (do_test): Fix warning.
30077
30078 2014-12-16  Torvald Riegel  <triegel@redhat.com>
30079
30080         * elf/tst-unique4lib.cc(a): Mark as used.
30081
30082 2014-12-16  Florian Weimer  <fweimer@redhat.com>
30083
30084         [BZ #17630]
30085         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
30086         names.
30087
30088 2014-12-16  Allan McRae  <allan@archlinux.org>
30089
30090         * stdio-common/Makefile (tests): Re-add bug26.
30091
30092 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
30093
30094         [BZ #17657]
30095         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
30096         static array.
30097
30098 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
30099
30100         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
30101         (__lll_lock_wait): Likewise.
30102         (__lll_timedlock_wait): Likewise.
30103         (__lll_timedwait_tid): Likewise.
30104         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
30105         (__lll_robust_timedlock_wait): Likewise.
30106         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
30107         (lll_cond_trylock): Likewise.
30108         (__lll_lock): Likewise.
30109         (__lll_robust_lock): Likewise.
30110         (__lll_cond_lock): Likewise.
30111         (lll_robust_cond_lock): Likewise.
30112         (__lll_timedlock): Likewise.
30113         (__lll_robust_timedlock): Likewise.
30114         (__lll_unlock): Likewise.
30115         (__lll_robust_unlock): Likewise.
30116         (lll_wait_tid): Likewise.
30117         (lll_timedwait_tid): Likewise.
30118
30119 2014-12-15  Torvald Riegel  <triegel@redhat.com>
30120
30121         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
30122
30123 2014-12-15  Torvald Riegel  <triegel@redhat.com>
30124
30125         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
30126
30127 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
30128
30129         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
30130         * stdio-common/tst-sprintf.c: Likewise.
30131
30132 2014-12-15  Torvald Riegel  <triegel@redhat.com>
30133
30134         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
30135
30136 2014-12-15  Jeff Law  <law@redhat.com>
30137
30138         [BZ #16617]
30139         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
30140         on the heap.  (CVE-2012-3406)
30141         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
30142         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
30143         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
30144
30145 2014-12-15  Will Newton  <will.newton@linaro.org>
30146
30147         * manual/install.texi: Bump required version of texinfo
30148         to 4.7 from 4.5.
30149         * INSTALL: Regenerated.
30150         * configure.ac: Check for makeinfo version 4.7 and above.
30151         * configure: Regenerated.
30152
30153 2014-12-12  Roland McGrath  <roland@hack.frob.com>
30154
30155         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
30156         PREFIX, string constant to insert between directory and name.
30157         * sysdeps/posix/shm_open.c: Update caller.
30158         * sysdeps/posix/shm_unlink.c: Likewise.
30159         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
30160         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
30161         (SEM_SHM_PREFIX): New macro.
30162         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
30163         [$(have-thread-library) = no].
30164         * nptl/Makefile (libpthread-routines): Add shm-directory.
30165         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
30166         * sysdeps/nptl/shm-directory.h: New file.
30167         * sysdeps/posix/shm-directory.c
30168         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
30169         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
30170         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
30171         INTERNAL_SYSCALL.
30172         (__where_is_shmfs): Function removed.
30173         (mountpoint, defaultmount, defaultdir, __namedsem_once):
30174         Variables removed.
30175         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
30176         Use SHM_GET_NAME.
30177         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
30178
30179         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
30180         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
30181         unconditional for use inside libpthread.
30182         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
30183
30184 2014-12-12  Roland McGrath  <roland@hack.frob.com>
30185
30186         * nptl/pthread_getaffinity.c: New file.
30187         * nptl/pthread_setaffinity.c: New file.
30188         * nptl/pthread_getname.c: New file.
30189         * nptl/pthread_setname.c: New file.
30190
30191         * nptl/pthread_create.c (START_THREAD_DEFN)
30192         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
30193
30194 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
30195             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30196
30197         * resolv/res_send.c (send_vc): Disable warning resplen may
30198         be used uninitialized.
30199
30200 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
30201
30202         * nptl/tst-mutex6.c
30203         (ATTR_NULL): New define checks ATTR against NULL.
30204         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
30205         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
30206
30207 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
30208
30209         [BZ #17581]
30210         * malloc/hooks.c
30211         (mem2mem_check): Revert my previous change.
30212         (malloc_check_get_size): Revert my previous change.
30213         (mem2chunk_check): Revert my previous change.
30214
30215 2014-12-11  Roland McGrath  <roland@hack.frob.com>
30216
30217         * sysdeps/posix/shm-directory.c: New file.
30218         * sysdeps/posix/shm-directory.h: New file.
30219         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
30220         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
30221         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
30222         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
30223         Transmute EPERM to EACCES.
30224         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
30225         from ...
30226         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
30227         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
30228
30229 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30230
30231         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
30232         pointer and cast to uintptr_t.
30233         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
30234         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
30235         Add cast to avoid warning.
30236         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
30237
30238 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
30239
30240         * nptl/semaphore.h: Move to ...
30241         * sysdeps/pthread/semaphore.h: ... here.
30242         * Makefile (installed-headers): Change nptl/semaphore.h to
30243         sysdeps/pthread/semaphore.h.
30244
30245 2014-12-11  Roland McGrath  <roland@hack.frob.com>
30246
30247         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
30248         generated error format strings.
30249
30250         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
30251         -Wformat-extra-args warnings for scanf formats.
30252         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
30253         test of zero-length format (duh).
30254         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
30255         corner-case scanf format test.
30256         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
30257         generated fprintf format string.
30258         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
30259         corner-case sprintf format tests.
30260         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
30261         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
30262         -Wformat-extra-args warnings throughout.
30263         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
30264         (CFLAGS-scanf4.c): Likewise.
30265         (CFLAGS-scanf7.c): Likewise.
30266         (CFLAGS-tst-sprintf.c): Likewise.
30267         (CFLAGS-tst-printf.c): Likewise.
30268         (CFLAGS-tst-printfsz.c): Likewise.
30269
30270 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
30271
30272         * include/cpio.h: New file.
30273         * include/fmtmsg.h: Likewise.
30274
30275         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
30276         corresponding format argument to size_t.
30277         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
30278         arguments.
30279         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
30280         corresponding format argument to size_t.
30281         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
30282         arguments.
30283         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
30284         corresponding format argument to size_t.
30285         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
30286         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
30287         (CFLAGS-tst-mbswcs2.c): Likewise.
30288         (CFLAGS-tst-mbswcs3.c): Likewise.
30289         (CFLAGS-tst-mbswcs4.c): Likewise.
30290         (CFLAGS-tst-mbswcs5.c): Likewise.
30291         (CFLAGS-tst-trans.c): Likewise.
30292
30293 2014-12-11  Roland McGrath  <roland@hack.frob.com>
30294
30295         * posix/regexbug1.c (main): Use "%s" format with regerror results,
30296         rather than assuming they won't contain any '%'s.
30297
30298 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
30299
30300         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
30301         inhibit_loop_to_libcall to avoid recursive calls.
30302         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
30303         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
30304
30305 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
30306
30307         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
30308         prototype.
30309
30310 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
30311
30312         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
30313         integer value instead of boolean.
30314
30315 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
30316
30317         * malloc/malloc.c: Fix powerof2 check.
30318
30319 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
30320
30321         * locale/programs/locfile.h (maybe_swap_uint32):
30322         Remove inline and add unused attribute.
30323
30324 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
30325
30326         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
30327         Truncating assembler expression to a .long expression.
30328
30329 2014-12-11  Andreas Schwab  <schwab@suse.de>
30330
30331         * elf/rtld.c (struct map_args): Constify str member.
30332         (do_preload): Constify fname argument.
30333
30334 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30335
30336         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
30337         constants definition.
30338
30339 2014-12-11  Andreas Schwab  <schwab@suse.de>
30340
30341         [BZ #16657]
30342         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
30343         FORCE_ELISION instead of DO_ELISION.
30344         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
30345         Remove.
30346         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
30347         Likewise.
30348
30349         * iconvdata/gconv-modules: Remove duplicate entry.
30350
30351 2014-12-11  Will Newton  <will.newton@linaro.org>
30352
30353         Merge gettext 0.19.3 into intl/.
30354
30355         This involves a number of cosmetic changes to comments
30356         and ANSI function definitions and prototypes throughout
30357         all the files. The gettext copyright header is used but
30358         with the date ranges taken from the glibc copy.
30359
30360         * NEWS: Add gettext merge to 2.21.
30361         * intl/bindtextdom.c: Switch to gettext copyright.
30362         Use ANSI definitions and prototypes.
30363         Use gl_* locking primitives rather than __libc_* ones.
30364         Use __builtin_expect rather than __glibc_likely/unlikely.
30365         * intl/dcgettext.c: Switch to gettext copyright.
30366         Use ANSI definitions and prototypes.
30367         * intl/dcigettext.c: Switch to gettext copyright.
30368         Use ANSI definitions and prototypes.
30369         (INTDIV0_RAISES_SIGFPE): New define.
30370         Use gl_* locking primitives rather than __libc_* ones.
30371         Include eval-plural.h instead of plural-eval.c.
30372         Use __builtin_expect rather than __glibc_likely/unlikely.
30373         * intl/dcngettext.c: Switch to gettext copyright.
30374         Use ANSI definitions and prototypes.
30375         * intl/dgettext.c: Likewise.
30376         * intl/dngettext.c: Likewise.
30377         * intl/plural-eval.c: Renamed to...
30378         * intl/eval-plural.h: ...this.
30379         * intl/explodename.c: Switch to gettext copyright.
30380         Use ANSI definitions and prototypes.
30381         (_nl_explode_name): Use strchr instead of __rawmemchr.
30382         * intl/finddomain.c: Switch to gettext copyright.
30383         Use ANSI definitions and prototypes.
30384         Use gl_* locking primitives rather than __libc_* ones.
30385         (_nl_find_domain): Use malloc rather than alloca for
30386         allocation of temporary locale name.
30387         * intl/gettext.c: Switch to gettext copyright.
30388         Use ANSI definitions and prototypes.
30389         * intl/gettextP.h: Switch to gettext copyright.
30390         Use ANSI definitions and prototypes.
30391         Use gl_* locking primitives rather than __libc_* ones.
30392         * intl/gmo.h: Switch to gettext copyright.
30393         (struct sysdep_string): Move struct segment_pair outside of
30394         struct definition.
30395         * intl/hash-string.c: Use ANSI definitions and prototypes.
30396         * intl/hash-string.h: Switch to gettext copyright.
30397         Use ANSI definitions and prototypes.
30398         * intl/l10nflist.c: Switch to gettext copyright.
30399         Use ANSI definitions and prototypes.
30400         (_nl_normalize_codeset): Avoid integer overflow.
30401         * intl/loadinfo.h: Switch to gettext copyright.
30402         Use ANSI definitions and prototypes.
30403         (LIBINTL_DLL_EXPORTED): New define.
30404         (PATH_SEPARATOR): New define.
30405         * intl/loadmsgcat.c: Switch to gettext copyright.
30406         * intl/localealias.c: Switch to gettext copyright.
30407         Use ANSI definitions and prototypes.
30408         (_nl_expand_alias): Use PATH_SEPARATOR.
30409         * intl/ngettext.c: Switch to gettext copyright.
30410         Use ANSI definitions and prototypes.
30411         * intl/plural-exp.c: Likewise.
30412         * intl/plural-exp.h: Switch to gettext copyright.
30413         Use ANSI definitions and prototypes.
30414         (struct expression): Move definition of enum operator outside
30415         of struct definition.
30416         * intl/plural.c: Regenerate.
30417         * intl/plural.y: Switch to gettext copyright.
30418         Use ANSI definitions and prototypes.
30419         Port to bison 3.0.
30420         * intl/textdomain.c: Switch to gettext copyright.
30421         Use ANSI definitions and prototypes.
30422         Use gl_* locking primitives rather than __libc_* ones.
30423
30424 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
30425
30426         * debug/warning-nop.c: Add used atrribute.
30427
30428 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
30429
30430         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
30431
30432         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
30433         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
30434         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
30435
30436 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
30437             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30438
30439         [BZ #17634]
30440         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
30441         Undefine after defining function.  Define as weak alias of
30442         __wcschr.  Use libc_hidden_weak.
30443         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
30444         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
30445         (libc_hidden_def): Also define __GI___wcschr alias.
30446         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
30447         __wcschr and define as weak alias of __wcschr.
30448         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
30449         __wcschr.
30450         [!WCSCHR] (DEFAULT_WCSCHR): Define.
30451         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
30452         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
30453         libc_hidden_weak.  Do not use libc_hidden_def.
30454         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
30455         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
30456         __GI___wcschr alias.
30457         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
30458         [IS_IN (libc)] (wcschr): Define as macro expanding to
30459         __redirect_wcschr.
30460         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
30461         [IS_IN (libc)] (__wcschr_power6): Likewise.
30462         [IS_IN (libc)] (__wcschr_power7): Likewise.
30463         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
30464         instead of wcschr.
30465         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
30466         __libc_wcschr.
30467         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
30468         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
30469         __wcschr and define as weak alias of __wcschr.  Use
30470         libc_hidden_builtin_def.
30471         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
30472         as weak alias of __wcschr.  Use libc_hidden_weak.
30473         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
30474         wcschr.
30475         * time/era.c (_nl_init_era_entries): Likewise.
30476         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
30477         variable.
30478         (test-xfail-XPG3/time.h/linknamespace): Likewise.
30479         (test-xfail-XPG4/time.h/linknamespace): Likewise.
30480
30481 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
30482
30483         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
30484         format for long int variable.
30485
30486 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
30487
30488         [BZ #10672]
30489         * manual/search.texi: (Array Sort Function): Remove claim how to make
30490         qsort stable.
30491
30492 2014-12-10  Andreas Schwab  <schwab@suse.de>
30493
30494         [BZ #12847]
30495         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
30496         user-controlled locks.
30497
30498 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
30499
30500         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
30501         register.
30502
30503 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
30504
30505         * configure.ac (--disable-werror): New configure option.
30506         (enable_werror): New AC_SUBST.
30507         * configure: Regenerated.
30508         * config.make.in (enable-werror): New variable.
30509         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
30510         -Wno-error=undef.
30511         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
30512         * manual/install.texi (Configuring and compiling): Document
30513         --disable-werror.
30514         * INSTALL: Regenerated.
30515         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
30516         (CFLAGS-tst-chk2.c): Likewise.
30517         (CFLAGS-tst-chk3.c): Likewise.
30518         (CFLAGS-tst-chk4.cc): Likewise.
30519         (CFLAGS-tst-chk5.cc): Likewise.
30520         (CFLAGS-tst-chk6.cc): Likewise.
30521         (CFLAGS-tst-lfschk1.c): Likewise.
30522         (CFLAGS-tst-lfschk2.c): Likewise.
30523         (CFLAGS-tst-lfschk3.c): Likewise.
30524         (CFLAGS-tst-lfschk4.cc): Likewise.
30525         (CFLAGS-tst-lfschk5.cc): Likewise.
30526         (CFLAGS-tst-lfschk6.cc): Likewise.
30527
30528         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
30529         (main): Disable -Wdeprecated-declarations around calls to
30530         register_printf_function.
30531
30532         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
30533         (do_test): Disable -Wdiv-by-zero around some calls to
30534         fwrite_unlocked and fread_unlocked.
30535
30536         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
30537         (DIAG_POP_NEEDS_COMMENT): Likewise.
30538         (_DIAG_STR1): Likewise.
30539         (_DIAG_STR): Likewise.
30540         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
30541         * stdio-common/bug21.c: Include <libc-internal.h>.
30542         (do_test): Disable -Wformat around call to sscanf.
30543         * stdio-common/scanf14.c: Include <libc-internal.h>.
30544         (main): Disable -Wformat around some calls to scanf functions.
30545
30546 2014-12-09  Torvald Riegel  <triegel@redhat.com>
30547
30548         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
30549
30550 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30551
30552         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
30553         stack variable alignment.
30554
30555 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
30556
30557         [BZ #17682]
30558         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
30559         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
30560         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
30561         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
30562         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
30563         __getrlimit instead of getrlimit.
30564         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
30565         __gettimeofday instead of gettimeofday.
30566         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
30567         Likewise.
30568         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
30569         Likewise.
30570         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
30571         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
30572         Remove variable.
30573         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
30574         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
30575
30576 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30577
30578         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
30579         for wide-character tests.
30580
30581 2014-12-04  Roland McGrath  <roland@hack.frob.com>
30582
30583         * io/openat64.c: #include <libc-internal.h>
30584         (__openat64): Prototypify.  Use ignore_value on MODE.
30585         * io/openat.c: Likewise.
30586         * misc/reboot.c: #include <libc-internal.h>
30587         (reboot): Prototypify.  Use ignore_value on HOWTO.
30588         * misc/ptrace.c: #include <libc-internal.h>
30589         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
30590
30591 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
30592
30593         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
30594         XPG4, UNIX98 and XOPEN2K.
30595         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
30596         Remove variable.
30597         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
30598
30599 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30600
30601         * libio/fileops.c: Use ISO C style for function definitions.
30602         * libio/iofopen.c: Likewise.
30603         * libio/wfileops.c: Likewise.
30604
30605         [BZ #17653]
30606         * libio/fileops.c (_IO_new_file_underflow): Unset cached
30607         offset on EOF.
30608         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
30609         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
30610         (fgets_func): Function pointer to fgets and fgetws.
30611         (do_ftell_test): Add test to verify ftell value after read
30612         EOF.
30613         (do_test): Set fgets_func.
30614
30615         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
30616         O_TRUNC flag for w and w+ modes.
30617         (do_rewind_test): Likewise.
30618         (do_ftell_test): Likewise.
30619         (do_write_test): Likewise.
30620
30621         [BZ #17647]
30622         * libio/fileops.c (do_ftell): Seek only when there are
30623         unflushed writes.
30624         * libio/wfileops.c (do_ftell_wide): Likewise.
30625         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
30626         test case.
30627         (do_one_test): Call it.
30628
30629 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
30630
30631         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
30632         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
30633         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
30634         Remove variable.
30635         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
30636         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
30637         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
30638
30639 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
30640
30641         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
30642         Remove variable.
30643         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
30644
30645         [BZ #17668]
30646         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
30647         as weak alias of __getifaddrs.  Use libc_hidden_weak.
30648         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
30649         __freeifaddrs.  Use libc_hidden_weak.
30650         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
30651         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
30652         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
30653         __freeifaddrs.  Use libc_hidden_weak.
30654         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
30655         __getifaddrs and define as weak alias of __getifaddrs.  Use
30656         libc_hidden_weak.
30657         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
30658         __freeifaddrs.  Use libc_hidden_weak.
30659         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
30660         Remove variable.
30661         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
30662         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
30663
30664 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
30665
30666         [BZ #17601]
30667         * sysdeps/mips/start.S (__start): Use indirect jump to call
30668         __libc_start_main.
30669
30670 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
30671
30672         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
30673
30674         * nptl/tst-mutex1.c: Include <stdbool.h>.
30675         [!ATTR] (ATTR_NULL): New macro.
30676         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
30677         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
30678         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
30679
30680         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
30681         to char *.
30682
30683         [BZ #17665]
30684         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
30685         Change conditional to [__USE_MISC].
30686
30687         [BZ #17664]
30688         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
30689         fgets_unlocked.
30690         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
30691         __fgets_unlocked.
30692         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
30693         fgets_unlocked.
30694         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
30695         Remove variable.
30696         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
30697         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
30698         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
30699         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
30700         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
30701         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
30702         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
30703         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
30704         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
30705
30706         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
30707
30708 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30709
30710         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30711         Remove strpbrk objects.
30712         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30713         (__libc_ifunc_impl_list): Remove strpbrk implementation.
30714         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
30715         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
30716         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
30717         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
30718
30719         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30720         Remove strcspn objects.
30721         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30722         (__libc_ifunc_impl_list): Remove strcspn implementation.
30723         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
30724         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
30725         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
30726         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
30727
30728         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
30729         Remove strspn objetcs.
30730         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30731         (__libc_ifunc_impl_list): Remove strspn implementation.
30732         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
30733         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
30734         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
30735         * sysdeps/powerpc/powerpc64/strspn.S: New file.
30736
30737 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
30738
30739         [BZ #17581]
30740         * malloc/hooks.c
30741         (mem2mem_check): Add a terminator to the chain of checking blocks.
30742         (malloc_check_get_size): Use it here.
30743         (mem2chunk_check): Ditto.
30744
30745 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30746
30747         * sysdeps/powerpc/powerpc64/strtok.S: New file.
30748         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
30749
30750 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
30751
30752         * bits/ioctl-types.h: Indent preprocessor directives correctly.
30753
30754         * nptl/nptl-init.c: Include libc-internal.h.
30755         (__pthread_initialize_minimal_internal): Use ROUND_UP.
30756
30757         * elf/ldconfig.c (search_dir): Expand comment.
30758
30759 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
30760
30761         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
30762         variable.
30763         (linknamespace-symlist-stdlibs-tests): Likewise.
30764         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
30765         instead of $(objpfx)symlist-stdlibs.
30766         (linknamespace-libs-isoc): New variable.
30767         (linknamespace-libs): Use $(linknamespace-libs-isoc).
30768         (linknamespace-libs-ISO): New variable.
30769         (linknamespace-libs-ISO99): Likewise.
30770         (linknamespace-libs-ISO11): Likewise.
30771         (linknamespace-libs-XPG3): Likewise.
30772         (linknamespace-libs-XPG4): Likewise.
30773         (linknamespace-libs-POSIX): Likewise.
30774         (linknamespace-libs-UNIX98): Likewise.
30775         (linknamespace-libs-XOPEN2K): Likewise.
30776         (linknamespace-libs-POSIX2008): Likewise.
30777         (linknamespace-libs-XOPEN2K8): Likewise.
30778         ($(objpfx)symlist-stdlibs): Replace by
30779         $(linknamespace-symlist-stdlibs-tests).  Use
30780         $(linknamespace-libs-$*) as set of libraries.
30781         ($(linknamespace-header-tests)): Update dependencies.  Use
30782         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
30783         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
30784         * conform/linknamespace.pl: Remove comment about considering
30785         definitions of symbols from irrelevant libraries.
30786
30787 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
30788
30789         [BZ #13862]
30790         * elf/dl-tls.c: Include <atomic.h>.
30791         (oom): Remove #ifdef SHARED/#endif.
30792         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
30793         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
30794         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
30795         big enough.
30796         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
30797         * nptl/Makefile (tests): Add tst-stack4.
30798         (modules-names): Add tst-stack4mod.
30799         ($(objpfx)tst-stack4): New.
30800         (tst-stack4mod.sos): Likewise.
30801         ($(objpfx)tst-stack4.out): Likewise.
30802         ($(tst-stack4mod.sos)): Likewise.
30803         (clean): Likewise.
30804         * nptl/tst-stack4.c: New file.
30805         * nptl/tst-stack4mod.c: Likewise.
30806
30807 2014-11-27  J. Brown  <jb999@gmx.de>
30808
30809         * sysdeps/x86/bits/string.h: Add recent CPUs.
30810
30811 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
30812
30813         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
30814         sigblock.
30815
30816         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
30817         feof.
30818
30819         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
30820         variable.
30821
30822 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
30823
30824         * nscd/connections.c: Include libc-internal.h because of macro
30825         usage ignore_value.
30826
30827 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
30828
30829         * string/bits/string3.h (__warn_memset_zero_len): Don't
30830         declare for gcc newer than 5.0.
30831         (memset): Don't test for zero-length __LEN for gcc newer than
30832         5.0.
30833
30834 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
30835
30836         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
30837         size_t for %zu format.
30838
30839         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
30840         difference, not %ju.
30841
30842 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30843
30844         * include/libc-internal.h (ignore_value): New macro.
30845         * nscd/connections.c (restart): Wrap calls to setuid and setgid
30846         with ignore_value.
30847
30848         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
30849         definition.
30850
30851         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
30852         pthread_cleanup_push to void *.
30853
30854         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
30855         Undefine.
30856
30857         [BZ #16619]
30858         [BZ #16740]
30859         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
30860         instead of 1L << 52.
30861
30862         * libio/bug-rewind.c (do_test): Check fwscanf return values.
30863         * libio/bug-rewind2.c (do_test): Likewise.
30864
30865         * debug/test-stpcpy_chk-ifunc.c: Remove file.
30866         * debug/test-strcpy_chk-ifunc.c: Likewise.
30867         * wcsmbs/test-wcschr-ifunc.c: Likewise.
30868         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
30869         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
30870         * wcsmbs/test-wcslen-ifunc.c: Likewise.
30871         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
30872         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
30873         * Rules [$(multi-arch) = no] (tests): Do not filter out
30874         $(tests-ifunc).
30875         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
30876         * debug/Makefile (tests-ifunc): Remove variable.
30877         (tests): Do not add $(tests-ifunc).
30878         * wcsmbs/Makefile (tests-ifunc): Remove variable.
30879         (tests): Do not add $(tests-ifunc).
30880         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
30881         [TEST_IFUNC]: Remove conditionals.
30882         * string/test-string.h (TEST_IFUNC): Remove macro.
30883         [TEST_IFUNC]: Remove conditionals.
30884
30885         * string/test-strchr.c [!WIDE] (L): New macro.
30886         [WIDE] (L): Likewise.
30887         (check1): Use CHAR instead of char.  Use L on string and character
30888         constants.
30889
30890 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
30891
30892         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
30893         tests.
30894         * sysdeps/powerpc/bits/atomic.h
30895         (__arch_atomic_exchange_and_add_32_acq): Add definition.
30896         (__arch_atomic_exchange_and_add_32_rel): Likewise.
30897         (atomic_exchange_and_add_acq): Likewise.
30898         (atomic_exchange_and_add_rel): Likewise.
30899         * sysdeps/powerpc/powerpc32/bits/atomic.h
30900         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30901         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30902         * sysdeps/powerpc/powerpc64/bits/atomic.h
30903         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30904         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30905
30906 2014-11-26  Torvald Riegel  <triegel@redhat.com>
30907
30908         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
30909         Change synchronization of __sched_fifo_min_prio and
30910         __sched_fifo_max_prio.
30911         * nptl/pthread_mutexattr_getprioceiling.c
30912         (pthread_mutexattr_getprioceiling): Likewise.
30913         * nptl/pthread_mutexattr_setprioceiling.c
30914         (pthread_mutexattr_setprioceiling): Likewise.
30915         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
30916         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
30917         Likewise.
30918
30919 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30920
30921         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
30922         void.
30923
30924 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30925
30926         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
30927         third argument const.
30928
30929 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30930
30931         fnmatch: work around GCC compiler warning bug with uninit var
30932         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
30933         This works around a bug with x86-64 GCC 4.9.2 and earlier
30934         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
30935         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
30936         used uninitialized in this function [-Wmaybe-uninitialized]".
30937
30938 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30939
30940         * posix/bug-regex31.c (main): Return RES not 0.
30941
30942 2014-11-25  Anton Blanchard <anton@samba.org>
30943
30944         * sysdeps/powerpc/bits/atomic.h
30945         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
30946
30947 2014-11-24  Sterling Augustine  <saugustine@google.com>
30948
30949         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
30950
30951 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
30952
30953         [BZ #17608]
30954         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
30955
30956 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
30957
30958         [BZ #17633]
30959         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
30960         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
30961         variable.
30962         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
30963         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
30964
30965 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30966
30967         * string/strncpy.c (strncpy): Improve performance by using memset.
30968
30969 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30970
30971         * string/strcpy.c (strcpy):
30972         Improve performance by using strlen and memcpy.
30973
30974 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
30975
30976         * string/strcoll_l.c (get_next_seq): __always_inline.
30977         * string/strcoll_l.c (do_compare): __always_inline.
30978
30979 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30980
30981         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
30982         defined.
30983         * include/mqueue.h: Likewise.
30984         * include/stdlib.h: Likewise.
30985
30986         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
30987         (get_null_defines): Adjust.
30988         * sunrpc/Makefile: Adjust comment.
30989         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
30990         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
30991         (CFLAGS-interp.c): Likewise.
30992         (CFLAGS-ldconfig.c): Likewise.
30993         (CPPFLAGS-.os): Likewise.
30994         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30995         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30996         * extra-modules.mk (extra-modules.mk): Likewise.
30997         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
30998         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
30999         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
31000         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
31001         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
31002         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
31003         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
31004         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
31005         * iconvdata/Makefile (CPPFLAGS): Likewise.
31006         (cpp-srcs-left): Add libof for all iconvdata routines.
31007         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
31008         * include/assert.h: Likewise.
31009         * include/ctype.h: Likewise.
31010         * include/errno.h: Likewise.
31011         * include/libc-symbols.h: Likewise.
31012         * include/math.h: Likewise.
31013         * include/netdb.h: Likewise.
31014         * include/resolv.h: Likewise.
31015         * include/stdio.h: Likewise.
31016         * include/stdlib.h: Likewise.
31017         * include/string.h: Likewise.
31018         * include/sys/stat.h: Likewise.
31019         * include/wctype.h: Likewise.
31020         * intl/l10nflist.c: Likewise.
31021         * libidn/idn-stub.c: Likewise.
31022         * libio/libioP.h: Likewise.
31023         * nptl/libc_multiple_threads.c: Likewise.
31024         * nptl/pthreadP.h: Likewise.
31025         * posix/regex_internal.h: Likewise.
31026         * resolv/res_hconf.c: Likewise.
31027         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
31028         * sysdeps/arm/memmove.S: Likewise.
31029         * sysdeps/arm/sysdep.h: Likewise.
31030         * sysdeps/generic/_itoa.h: Likewise.
31031         * sysdeps/generic/symbol-hacks.h: Likewise.
31032         * sysdeps/gnu/errlist.awk: Likewise.
31033         * sysdeps/gnu/errlist.c: Likewise.
31034         * sysdeps/i386/i586/memcpy.S: Likewise.
31035         * sysdeps/i386/i586/memset.S: Likewise.
31036         * sysdeps/i386/i686/memcpy.S: Likewise.
31037         * sysdeps/i386/i686/memmove.S: Likewise.
31038         * sysdeps/i386/i686/mempcpy.S: Likewise.
31039         * sysdeps/i386/i686/memset.S: Likewise.
31040         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
31041         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31042         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
31043         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
31044         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31045         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
31046         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
31047         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31048         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
31049         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
31050         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31051         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31052         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31053         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31054         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31055         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31056         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
31057         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
31058         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
31059         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31060         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
31061         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
31062         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31063         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31064         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31065         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
31066         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
31067         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31068         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
31069         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
31070         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
31071         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
31072         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
31073         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31074         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
31075         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
31076         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31077         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31078         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
31079         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
31080         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31081         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31082         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
31083         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
31084         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31085         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31086         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
31087         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
31088         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31089         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
31090         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31091         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
31092         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
31093         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31094         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
31095         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
31096         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31097         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
31098         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
31099         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31100         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
31101         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31102         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
31103         * sysdeps/nptl/bits/libc-lock.h: Likewise.
31104         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
31105         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
31106         * sysdeps/posix/closedir.c: Likewise.
31107         * sysdeps/posix/opendir.c: Likewise.
31108         * sysdeps/posix/readdir.c: Likewise.
31109         * sysdeps/posix/rewinddir.c: Likewise.
31110         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
31111         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
31112         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
31113         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
31114         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
31115         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
31116         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
31117         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
31118         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
31119         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
31120         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
31121         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
31122         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
31123         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
31124         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
31125         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
31126         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
31127         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
31128         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
31129         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
31130         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
31131         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
31132         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
31133         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
31134         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
31135         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
31136         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
31137         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
31138         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
31139         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
31140         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
31141         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
31142         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
31143         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
31144         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
31145         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
31146         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
31147         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
31148         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
31149         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
31150         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
31151         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
31152         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
31153         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
31154         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
31155         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
31156         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
31157         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
31158         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
31159         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
31160         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
31161         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
31162         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
31163         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
31164         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
31165         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
31166         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
31167         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
31168         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
31169         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
31170         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
31171         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
31172         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
31173         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
31174         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
31175         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
31176         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
31177         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
31178         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
31179         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
31180         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
31181         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
31182         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
31183         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
31184         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
31185         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
31186         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
31187         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
31188         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
31189         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
31190         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
31191         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
31192         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
31193         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
31194         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
31195         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
31196         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
31197         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
31198         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
31199         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
31200         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
31201         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
31202         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
31203         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
31204         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
31205         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
31206         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
31207         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
31208         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
31209         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
31210         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
31211         * sysdeps/unix/alpha/sysdep.S: Likewise.
31212         * sysdeps/unix/alpha/sysdep.h: Likewise.
31213         * sysdeps/unix/make-syscalls.sh: Likewise.
31214         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
31215         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
31216         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
31217         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
31218         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
31219         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
31220         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
31221         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
31222         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
31223         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
31224         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
31225         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
31226         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
31227         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
31228         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
31229         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
31230         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
31231         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
31232         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
31233         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
31234         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
31235         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
31236         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
31237         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
31238         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
31239         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
31240         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
31241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
31242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
31243         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
31244         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
31245         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
31246         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
31247         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
31248         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
31249         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
31250         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
31251         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
31252         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
31253         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
31254         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
31255         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
31256         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
31257         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
31258         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
31259         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
31260         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
31261         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
31262         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
31263         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
31264         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
31265         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
31266         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
31267         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
31268         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
31269         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
31270         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
31271         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
31272         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
31273         * sysdeps/x86_64/memcpy.S: Likewise.
31274         * sysdeps/x86_64/memmove.c: Likewise.
31275         * sysdeps/x86_64/memset.S: Likewise.
31276         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
31277         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
31278         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
31279         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
31280         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
31281         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
31282         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31283         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
31284         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
31285         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
31286         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
31287         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
31288         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
31289         * sysdeps/x86_64/multiarch/memset.S: Likewise.
31290         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
31291         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
31292         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
31293         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
31294         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
31295         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
31296         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
31297         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
31298         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
31299         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
31300         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
31301         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
31302         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
31303         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
31304         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
31305         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
31306         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
31307         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
31308         * sysdeps/x86_64/strcmp.S: Likewise.
31309
31310         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
31311
31312         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
31313         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
31314         * elf/rtld-Rules: Likewise.
31315         * elf/setup-vdso.h: Likewise.
31316         * include/assert.h: Likewise.
31317         * include/bits/stdlib-float.h: Likewise.
31318         * include/errno.h: Likewise.
31319         * include/sys/stat.h: Likewise.
31320         * include/unistd.h: Likewise.
31321         * sysdeps/aarch64/setjmp.S: Likewise.
31322         * sysdeps/alpha/setjmp.S: Likewise.
31323         * sysdeps/arm/__longjmp.S: Likewise.
31324         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
31325         * sysdeps/arm/setjmp.S: Likewise.
31326         * sysdeps/arm/sysdep.h: Likewise.
31327         * sysdeps/generic/_itoa.h: Likewise.
31328         * sysdeps/generic/dl-sysdep.h: Likewise.
31329         * sysdeps/generic/ldsodefs.h: Likewise.
31330         * sysdeps/i386/dl-tls.h: Likewise.
31331         * sysdeps/i386/setjmp.S: Likewise.
31332         * sysdeps/m68k/setjmp.c: Likewise.
31333         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
31334         * sysdeps/mach/hurd/opendir.c: Likewise.
31335         * sysdeps/posix/getcwd.c: Likewise.
31336         * sysdeps/posix/opendir.c: Likewise.
31337         * sysdeps/posix/profil.c: Likewise.
31338         * sysdeps/powerpc/dl-procinfo.h: Likewise.
31339         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
31340         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
31341         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
31342         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
31343         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
31344         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
31345         * sysdeps/s390/dl-tls.h: Likewise.
31346         * sysdeps/s390/s390-32/setjmp.S: Likewise.
31347         * sysdeps/s390/s390-64/setjmp.S: Likewise.
31348         * sysdeps/sh/sh3/setjmp.S: Likewise.
31349         * sysdeps/sh/sh4/setjmp.S: Likewise.
31350         * sysdeps/unix/alpha/sysdep.h: Likewise.
31351         * sysdeps/unix/arm/sysdep.S: Likewise.
31352         * sysdeps/unix/i386/sysdep.S: Likewise.
31353         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
31354         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
31355         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
31356         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
31357         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
31358         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
31359         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
31360         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
31361         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
31362         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
31363         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
31364         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
31365         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
31366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
31367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
31368         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
31369         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
31370         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
31371         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
31372         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
31373         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
31374         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
31375         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
31376         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
31377         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
31378         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
31379         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
31380         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31381         * sysdeps/x86_64/setjmp.S: Likewise.
31382
31383         * include/math.h: Use IS_IN instead of IS_IN_libm.
31384         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
31385         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
31386         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
31387         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
31388         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
31389         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
31390         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
31391         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
31392         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
31393         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
31394         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
31395         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
31396         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
31397         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
31398         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
31399         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
31400         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31401         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
31402         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31403         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
31404         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
31405         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
31406         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
31407         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
31408         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
31409         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
31410         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
31411         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
31412         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
31413         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
31414         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
31415         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
31416         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
31417         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
31418         Likewise.
31419         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
31420         Likewise.
31421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
31422         Likewise.
31423         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
31424         Likewise.
31425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
31426         Likewise.
31427         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
31428         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
31429         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
31430         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
31431         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
31432         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
31433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
31434         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
31435         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
31436         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
31437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
31438         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
31439         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
31440         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
31441         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
31442         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
31443         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
31444         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
31445         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
31446         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
31447         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
31448         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
31449         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
31450         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
31451         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
31452         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
31453         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
31454
31455         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
31456         * nptl/pthreadP.h: Likewise.
31457         * nptl_db/structs.def: Likewise.
31458         * sysdeps/arm/sysdep.h: Likewise.
31459         * sysdeps/nptl/bits/libc-lock.h: Likewise.
31460         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
31461         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
31462         * sysdeps/unix/alpha/sysdep.h: Likewise.
31463         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
31464         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
31465         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
31466         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
31467         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
31468         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
31469         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
31470         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
31471         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
31472         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
31473         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
31474         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
31475         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
31476         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
31477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
31478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
31479         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
31480         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
31481         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
31482         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
31483         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
31484         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
31485         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
31486         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
31487         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
31488         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
31489
31490         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
31491         * nptl/pthreadP.h: Likewise.
31492         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
31493         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
31494         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
31495         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
31496         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
31497         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
31498         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
31499         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
31500         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
31501         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
31502         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
31503         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
31504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31505         Likewise.
31506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31507         Likewise.
31508         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
31509         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
31510         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
31511         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
31512         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
31513         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
31514         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
31515         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
31516
31517         * dlfcn/dladdr.c: Use IS_IN.
31518         * dlfcn/dladdr1.c: Likewise.
31519         * dlfcn/dlclose.c: Likewise.
31520         * dlfcn/dlerror.c: Likewise.
31521         * dlfcn/dlinfo.c: Likewise.
31522         * dlfcn/dlmopen.c: Likewise.
31523         * dlfcn/dlopen.c: Likewise.
31524         * dlfcn/dlsym.c: Likewise.
31525         * dlfcn/dlvsym.c: Likewise.
31526
31527         * include/ifaddrs.h: Use IS_IN.
31528         * inet/check_pf.c: Likewise.
31529         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
31530         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
31531
31532         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
31533         IS_IN_ldconfig.
31534         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
31535         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
31536
31537         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
31538         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
31539         IS_IN (libc).
31540
31541         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
31542
31543         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
31544         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
31545         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
31546         * include/libc-symbols.h (IS_IN_LIB): New macro.
31547         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
31548         * include/netdb.h: Likewise.
31549         * include/stap-probe.h: Remove all uses of IN_LIB.
31550
31551         * Makeconfig (module-cppflags-real): Define MODULE_NAME
31552         instead of IN_MODULE.
31553         * include/libc-symbols.h (IN_MODULE): Define using
31554         MODULE_NAME.
31555         (PASTE_NAME, PASTE_NAME1): New macros.
31556         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
31557         of IN_LIB.
31558         (STAP_PROBE_ASM): Likewise.
31559
31560 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31561
31562         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
31563         __mach_init in dlopened libc.
31564
31565 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
31566
31567         * sysdeps/arm/preconfigure.ac: Delete EABI check.
31568         * sysdeps/arm/preconfigure: Regenerate.
31569
31570 2014-11-21  Roland McGrath  <roland@hack.frob.com>
31571
31572         * nptl/pthread_create.c (__pthread_create_2_1): Set
31573         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
31574         when copying values from IATTR into PD.
31575
31576 2014-11-21  Will Newton  <will.newton@linaro.org>
31577             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
31578
31579         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
31580         Refactor inline-asm.  Also add comment.
31581
31582         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
31583         ElfW macro instead of hardcoded Elf64 types.
31584         (la_aarch64_gnu_pltenter): Likewise.
31585         * sysdeps/aarch64/dl-machine.h
31586         (elf_machine_runtime_setup): Use ElfW(Addr).
31587
31588         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
31589         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
31590         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
31591         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
31592         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
31593         (R_AARCH64_TLS_DTPMOD64): Rename to ..
31594         (R_AARCH64_TLS_DTPMOD): This.
31595         (R_AARCH64_TLS_DTPREL64): Rename to ...
31596         (R_AARCH64_TLS_DTPREL): This.
31597         (R_AARCH64_TLS_TPREL64): Rename to ...
31598         (R_AARCH64_TLS_TPREL): This.
31599         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
31600         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
31601         R_AARCH64_TLS_TPREL64.
31602         (elf_machine_rela): Likewise.
31603
31604 2014-11-21  Torvald Riegel  <triegel@redhat.com>
31605
31606         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
31607         by setting it to 0.  64b atomics are not supported currently.
31608
31609 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31610
31611         [BZ #16469]
31612         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
31613         search domain names.
31614
31615 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31616
31617         [BZ #16469]
31618         * NEWS: Update.
31619         * resolv/res_query.c (__libc_res_nquerydomain): Retain
31620         trailing dot.
31621         * posix/tst-getaddrinfo5.c: New.
31622         * posix/Makefile (tests): Add it.
31623
31624 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31625
31626         [BZ #14498]
31627         * NEWS: Fixed.
31628         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
31629         after parsing line but before break_if_match.
31630         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
31631         if there is a protocol mismatch.
31632
31633 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
31634
31635         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
31636         because the potential race is on the user-supplied stream.
31637
31638 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31639
31640         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
31641         string literal if not passed a buffer.
31642         * manual/job.texi (ctermid): Update reasoning, note deviation
31643         from posix, suggest mtasurace when not passed a buffer, for
31644         future non-preliminary safety notes.
31645
31646 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31647
31648         * manual/users.texi (cuserid): Fix MT-Safety note for the case
31649         of not passing it a buffer.
31650         Reported by Peng Haitao.
31651
31652 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
31653
31654         * manual/Makefile ($(objpfx)stamp-summary): Require
31655         check-safety.sh to pass.
31656         * manual/check-safety.sh: Wish for verification that every
31657         @deftypefn and @deftypefun is followed by a @safety remark.
31658
31659 2014-11-20  Roland McGrath  <roland@hack.frob.com>
31660
31661         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
31662
31663         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
31664         PTHREAD_CANCEL_ASYNCHRONOUS.
31665         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
31666         send SIGCANCEL.
31667
31668         * nptl/default-sched.h: New file.
31669         * sysdeps/unix/sysv/linux/default-sched.h: New file.
31670         * nptl/pthread_create.c: Include it.
31671         (__pthread_create_2_1): Use collect_default_sched instead of making
31672         Linux syscalls here directly.
31673
31674 2014-11-20  Torvald Riegel  <triegel@redhat.com>
31675
31676         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
31677         __pthread_once): Use C11 atomics.
31678
31679 2014-11-20  Torvald Riegel  <triegel@redhat.com>
31680
31681         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
31682
31683 2014-11-20  Torvald Riegel  <triegel@redhat.com>
31684
31685         * include/atomic.h (__atomic_link_error, __atomic_check_size,
31686         atomic_thread_fence_acquire, atomic_thread_fence_release,
31687         atomic_thread_fence_seq_cst, atomic_load_relaxed,
31688         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
31689         atomic_compare_exchange_weak_relaxed,
31690         atomic_compare_exchange_weak_acquire,
31691         atomic_compare_exchange_weak_release,
31692         atomic_exchange_acquire, atomic_exchange_release,
31693         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
31694         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
31695         atomic_fetch_and_acquire,
31696         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
31697
31698 2014-11-20  Torvald Riegel  <triegel@redhat.com>
31699
31700         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
31701         USE_ATOMIC_COMPILER_BUILTINS): Define.
31702         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
31703         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31704         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
31705         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31706         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
31707         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31708         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
31709         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31710         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
31711         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31712         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
31713         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31714         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
31715         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31716         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
31717         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31718         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
31719         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31720         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
31721         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31722         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
31723         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31724         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
31725         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31726         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
31727         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31728         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
31729         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31730         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
31731         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31732         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
31733         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31734         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
31735         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31736         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
31737         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31738         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
31739         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31740         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
31741         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
31742
31743 2014-11-19  Roland McGrath  <roland@hack.frob.com>
31744
31745         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
31746         the sched_priority value here.  It was already checked when the user
31747         called pthread_attr_setschedparam.
31748
31749         * nptl/tst-bad-schedattr.c: New file.
31750         * nptl/Makefile (tests): Add it.
31751
31752 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
31753             Florian Weimer  <fweimer@redhat.com>
31754             Joseph Myers  <joseph@codesourcery.com>
31755             Adam Conrad  <adconrad@0c3.net>
31756             Andreas Schwab  <schwab@suse.de>
31757             Brooks  <bmoses@google.com>
31758
31759         [BZ #17625]
31760         * wordexp-test.c (__dso_handle): Add prototype.
31761         (__register_atfork): Likewise.
31762         (__app_register_atfork): New function.
31763         (registered_forks): New global.
31764         (register_fork): New function.
31765         (test_case): Add 3 new tests for WRDE_CMDSUB.
31766         (main): Call __app_register_atfork.
31767         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
31768         fork count is non-zero fail the test.
31769         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
31770         is set.
31771         (parse_dollars): Remove check for WRDE_NOCMD.
31772         (parse_dquote): Likewise.
31773
31774 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31775
31776         * Makeconfig (built-modules): List non-library modules to be
31777         built.
31778         (module-cppflags): Include libc-modules.h for
31779         everything except shlib-versions.v.i.
31780         (CPPFLAGS): Use it.
31781         (before-compile): Add libc-modules.h.
31782         ($(common-objpfx)libc-modules.h,
31783         $(common-objpfx)libc-modules.stmp): New targets.
31784         (common-generated): Add libc-modules.h and libc-modules.stmp.
31785         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
31786         * include/libc-symbols.h: Don't include libc-modules.h.
31787         * include/libc-modules.h: Remove file.
31788         * scripts/gen-libc-modules.awk: New script to generate
31789         libc-modules.h.
31790         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
31791         Depend on libc-modules.stmp.
31792
31793         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
31794
31795         * Makeconfig (in-module): Get value of libof set for the
31796         translation unit.
31797         (CPPFLAGS): Use $(in-module).
31798         * Makerules: Don't suffix routine names for nonlib.
31799         * include/libc-modules.h: New file.
31800         * include/libc-symbols.h: Include libc-modules.h
31801         (IS_IN): New macro to replace IS_IN_* macros.
31802         * elf/Makefile: Set libof-* for each routine.
31803         * elf/rtld-Rules: Likewise.
31804         * extra-modules.mk: Likewise.
31805         * iconv/Makefile: Likewise.
31806         * iconvdata/Makefile: Likewise.
31807         * locale/Makefile: Likewise.
31808         * malloc/Makefile: Likewise.
31809         * nss/Makefile: Likewise.
31810         * sysdeps/gnu/Makefile: Likewise.
31811         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
31812         * sysdeps/unix/sysv/linux/Makefile: Likewise.
31813         * sysdeps/s390/s390-64/Makefile: Likewise.
31814         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
31815         CPPFLAGS for nscd instead of nonlib.
31816
31817 2014-11-18  Roland McGrath  <roland@hack.frob.com>
31818
31819         * nptl/createthread.c: New file.
31820
31821         * nptl/createthread.c: Moved ...
31822         * sysdeps/unix/sysv/linux/createthread.c: ... here.
31823
31824         * nptl/createthread.c: Add proper top-line comment.
31825         (do_clone): Folded into ...
31826         (create_thread): ... here.  Take new arguments STOPPED_START and
31827         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
31828         increment __nptl_threads, do event-reporting logic, do
31829         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
31830         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
31831         resource cleanup if sched_setaffinity or sched_setscheduler fails,
31832         just send SIGCANCEL.
31833         * nptl/pthread_create.c: Forward-declare create_thread before
31834         including createthread.c.
31835         (start_thread): Use new macro START_THREAD_DEFN to replace defining
31836         declaration, and new macro START_THREAD_SELF to replace argument.
31837         Remove return statement.
31838         (report_thread_creation): New function.
31839         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
31840         synchronization logic, and __nptl_nthreads increment here, around
31841         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
31842         PD->parent_cancelhandling here, before create_thread.  When
31843         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
31844         __deallocate_stack, and ENOMEM translation here.
31845
31846 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
31847
31848         [BZ #17616]
31849         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
31850         (mptwo): Rename to __mptwo.
31851         (__inv): Use __mptwo instead of mptwo.
31852         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
31853         (mptwo): Rename to __mptwo.
31854         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
31855         of mpone and __mptwo instead of mptwo.
31856         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
31857         instead of mpone.
31858         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
31859         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
31860         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
31861         of mpone and __mptwo instead of mptwo.
31862         (__mpranred): Use __mpone instead of mpone.
31863         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
31864         variable.
31865         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31866         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31867         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31868         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31869         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31870         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31871         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31872         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31873         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31874         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31875         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31876         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31877         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31878         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31879         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31880         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31881         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31882         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31883         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31884
31885 2014-11-18  Tom de Vries  <tom@codesoucery.com>
31886
31887         * manual/signal.texi (Primitives Interrupted by Signals): In section,
31888         replace BSD Handler xref with BSD Signal Handling.
31889
31890 2014-11-17  Richard Henderson  <rth@redhat.com>
31891
31892         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
31893         (_FP_PACK_RAW_2): Remove.
31894         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
31895         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
31896         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
31897         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
31898         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
31899         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
31900         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
31901         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
31902         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
31903         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
31904         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
31905         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
31906         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
31907         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
31908         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
31909         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
31910
31911 2014-11-14  Roland McGrath  <roland@hack.frob.com>
31912
31913         * signal/signal.h [__USE_MISC]
31914         (struct sigvec): Remove type.
31915         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
31916         (sigvec): Remove declaration.
31917         * sysdeps/posix/sigvec.c: Moved ...
31918         * signal/sigvec.c: ... here, replacing old file.
31919         (struct sigvec): New type, copied from old signal.h definition.
31920         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
31921         (__sigvec): Convert definition to prototype.
31922         (sigvec): Replace weak_alias with compat_symbol.
31923         * signal/Versions (libc: GLIBC_2.21): New version set.
31924         * include/signal.h: Remove __sigvec declaration.
31925         * sysdeps/unix/bsd/sigvec.c: Remove file.
31926         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
31927         * manual/signal.texi (BSD Handler): Remove subsection.
31928         Move siginterrupt up to ...
31929         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
31930         (Blocking in BSD): Fold subsection into its parent.
31931         * NEWS: Mention sigvec removal.
31932
31933 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31934
31935         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
31936         (DLA_FMS): Make definition conditional only on [__FMA4__].
31937         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
31938         definition.
31939
31940         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
31941         Make definition conditional only on [PROF].
31942         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
31943         definition.
31944         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
31945         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
31946
31947         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
31948         !__GNUC__].
31949         * include/signal.h (__sigpause): Move declaration above call to
31950         libc_hidden_proto.
31951         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
31952         variable.
31953         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31954         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31955
31956 2014-11-14  David S. Miller  <davem@davemloft.net>
31957
31958         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
31959         Define before including <string/memcpy.c> and <string/mempcpy.c>.
31960
31961 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31962
31963         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
31964         * configure: Regenerated.
31965         * manual/install.texi (Tools for Compilation): Document a
31966         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
31967         compiler verified to work.
31968         * INSTALL: Regenerated.
31969
31970         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
31971         redeclare with asm name.
31972         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
31973         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
31974         including <string.h>.
31975         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31976         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
31977         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31978         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
31979         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31980         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
31981         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31982
31983 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
31984
31985         * stdlib/strtol.c (__strtol): Use prototype definition.
31986
31987         [BZ #17594]
31988         * stdlib/strtol.c (SYM__): New macro.
31989         (SYM__1): Likewise.
31990         (__strtol): Likewise.
31991         (strtol): Rename to __strtol and define as weak alias of
31992         __strtol.  Use libc_hidden_weak.
31993
31994 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31995
31996         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
31997         Use numbered labels in inline assembly.
31998
31999 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32000
32001         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
32002         Add setjmp LIBC_PROBE.
32003         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
32004         Likewise.
32005         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
32006         Add longjmp, longjmp_target LIBC_PROBE.
32007         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
32008         Likewise.
32009
32010 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32011
32012         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
32013         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
32014         to get rid of unused variable warning.
32015
32016 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32017
32018         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
32019         Check for unwind_backtrace ==  NULL only in SHARED case.
32020         (__backchain_backtrace): Compile only in SHARED case.
32021         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
32022         Likewise.
32023         (__backchain_backtrace): Declare as static.
32024
32025 2014-11-12  Roland McGrath  <roland@hack.frob.com>
32026
32027         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
32028         (__libc_multiple_threads_ptr): Variable moved ...
32029         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
32030
32031 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
32032
32033         * conform/GlibcConform.pm: New file.
32034         * conform/conformtest.pl: Use GlibcConform module.
32035         * conform/linknamespace.pl: New file.
32036         * conform/list-header-symbols.pl: Likewise.
32037         * conform/Makefile (linknamespace-symlists-base): New variable.
32038         (linknamespace-symlists-tests): Likewise.
32039         (linknamespace-header-base): Likewise.
32040         (linknamespace-header-tests): Likewise.
32041         (tests-special): Add new tests.
32042         ($(linknamespace-symlists-tests)): New rule.
32043         (linknamespace-libs): New variable.
32044         ($(objpfx)symlist-stdlibs): New rule.
32045         ($(linknamespace-header-tests)): Likewise.
32046         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
32047         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
32048         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
32049         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
32050         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
32051         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
32052         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
32053         (test-xfail-ISO/math.h/linknamespace): Likewise.
32054         (test-xfail-ISO/signal.h/linknamespace): Likewise.
32055         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
32056         (test-xfail-ISO/time.h/linknamespace): Likewise.
32057         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
32058         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
32059         (test-xfail-ISO99/math.h/linknamespace): Likewise.
32060         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
32061         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
32062         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
32063         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
32064         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
32065         (test-xfail-ISO11/math.h/linknamespace): Likewise.
32066         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
32067         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
32068         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
32069         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
32070         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
32071         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
32072         (test-xfail-XPG3/math.h/linknamespace): Likewise.
32073         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
32074         (test-xfail-XPG3/search.h/linknamespace): Likewise.
32075         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
32076         (test-xfail-XPG3/time.h/linknamespace): Likewise.
32077         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
32078         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
32079         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
32080         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
32081         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
32082         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
32083         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
32084         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
32085         (test-xfail-XPG4/math.h/linknamespace): Likewise.
32086         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
32087         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
32088         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
32089         (test-xfail-XPG4/search.h/linknamespace): Likewise.
32090         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
32091         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
32092         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
32093         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
32094         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
32095         (test-xfail-XPG4/time.h/linknamespace): Likewise.
32096         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
32097         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
32098         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
32099         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
32100         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
32101         (test-xfail-POSIX/math.h/linknamespace): Likewise.
32102         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
32103         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
32104         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
32105         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
32106         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
32107         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
32108         (test-xfail-POSIX/time.h/linknamespace): Likewise.
32109         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
32110         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
32111         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
32112         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
32113         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
32114         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
32115         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
32116         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
32117         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
32118         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
32119         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
32120         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
32121         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
32122         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
32123         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
32124         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
32125         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
32126         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
32127         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
32128         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
32129         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
32130         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
32131         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
32132         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
32133         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
32134         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
32135         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
32136         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
32137         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
32138         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
32139         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
32140         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
32141         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
32142         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
32143         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
32144         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
32145         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
32146         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
32147         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
32148         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
32149         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
32150         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
32151         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
32152         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
32153         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
32154         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
32155         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
32156         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
32157         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
32158         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
32159         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
32160         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
32161         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
32162         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
32163         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
32164         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
32165         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
32166         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
32167         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
32168         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
32169         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
32170         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
32171         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
32172         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
32173         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
32174         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
32175         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
32176         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
32177         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
32178         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
32179         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
32180         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
32181         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
32182         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
32183         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
32184         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
32185         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
32186         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
32187         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
32188         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
32189         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
32190         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
32191         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
32192         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
32193         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
32194         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
32195         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
32196         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
32197         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
32198         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
32199         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
32200         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
32201         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
32202         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
32203         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
32204         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
32205         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
32206         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
32207
32208         [BZ #17589]
32209         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
32210         of fgets_unlocked.
32211
32212         [BZ #17585]
32213         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
32214         (memmem): Rename to __memmem and define as weak alias of
32215         __memmem.  Use libc_hidden_weak.
32216         (__memmem): Use libc_hidden_def.
32217         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
32218         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
32219         memmem.
32220
32221         [BZ #17582]
32222         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
32223         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
32224         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
32225         and define as weak alias of __fgets_unlocked.  Use
32226         libc_hidden_weak.
32227         (__fgets_unlocked): Use libc_hidden_def.
32228         * include/stdio.h (__fgets_unlocked): Declare.  Use
32229         libc_hidden_proto.
32230         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
32231         __fgets_unlocked instead of fgets_unlocked.
32232         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
32233         (GET_NPROCS_CONF_PARSER): Likewise.
32234         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
32235         (GET_NPROCS_CONF_PARSER): Likewise.
32236
32237         [BZ #17574]
32238         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
32239         weak alias of __wmemset.  Use libc_hidden_weak.
32240         (__wmemset): Use libc_hidden_def.
32241         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
32242         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
32243         of wmemset.
32244
32245         [BZ #17573]
32246         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
32247         with asm name __mempcpy.
32248         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
32249
32250         [BZ #17572]
32251         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
32252         and define as weak alias of __rawmemchr.
32253         (__rawmemchr): Do not define as strong alias of rawmemchr.
32254
32255         [BZ #17571]
32256         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
32257         alias of __qsort_r.
32258         (qsort): Call __qsort_r instead of qsort_r.
32259         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
32260         (__qsort_r): Declare.  Call libc_hidden_proto.
32261         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
32262         instead of qsort_r.
32263         * nscd/gai.c (__qsort_r): Define to qsort_r.
32264         * posix/tst-rfc3484.c (__qsort_r): Likewise.
32265         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
32266         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
32267
32268         [BZ #17570]
32269         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
32270         define as weak alias of __malloc_info.
32271
32272         [BZ #17584]
32273         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
32274         as weak alias of __rewinddir.  Don't use libc_hidden_def.
32275         (__rewinddir): Use libc_hidden_def.
32276         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
32277         as weak alias of __rewinddir.  Don't use libc_hidden_def.
32278         (__rewinddir): Use libc_hidden_def.
32279         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
32280         weak alias of __rewinddir.  Don't use libc_hidden_def.
32281         (__rewinddir): Use libc_hidden_def.
32282         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
32283         (__rewinddir): Use libc_hidden_proto.
32284         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
32285         rewinddir.
32286         (__getcwd): Use __rewinddir instead of rewinddir.
32287
32288         [BZ #17583]
32289         * libio/fileno.c (fileno): Rename to __fileno and define as weak
32290         alias of __fileno.  Use libc_hidden_weak.
32291         (__fileno): Use libc_hidden_def.
32292         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
32293         * libio/ftello.c (ftello): Rename to __ftello and define as weak
32294         alias of __ftello.
32295         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
32296         __ftello.
32297         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
32298         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
32299         libc_hidden_def.
32300         (fread_unlocked): Don't use libc_hidden_ver.
32301         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
32302         and define as weak alias of __fread_unlocked.  Don't use
32303         libc_hidden_def.
32304         (__fread_unlocked): Use libc_hidden_def.
32305         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
32306         (ftello): Don't use libc_hidden_proto.
32307         (__ftello): Declare.  Use libc_hidden_proto.
32308         (fread_unlocked): Don't use libc_hidden_proto.
32309         (__fread_unlocked): Declare.  Use libc_hidden_proto.
32310         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
32311         and __ftello instead of fileno, fread_unlocked and ftello.
32312
32313 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
32314
32315         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
32316         GOT12.
32317         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
32318         Likewise.
32319         (_dl_start_user): Likewise.
32320         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
32321
32322 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
32323             Siddhesh Poyarekar  <siddhesh@redhat.com>
32324
32325         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
32326         Move argv and envp down instead of moving argc up.
32327         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
32328
32329 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
32330
32331         [BZ #17506]
32332         * test-skeleton.c (main): Return successful if one of
32333         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
32334         * string/tst-strcoll-overflow.c: Define expected status.
32335
32336 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
32337
32338         [BZ #17475]
32339         * locale/iso-639.def: Define Bhili and Tulu language codes.
32340
32341 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
32342
32343         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
32344
32345 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
32346
32347         [BZ #17555]
32348         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
32349
32350 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
32351
32352         * configure.ac: Updated check of minimal required version to
32353         2.22.
32354         * manual/install.texi (Tools for Compilation): Updated version
32355         number.
32356         * configure: Regenerated.
32357         * INSTALL: Likewise.
32358
32359 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
32360
32361         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
32362         __tls_get_addr.
32363
32364 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
32365
32366         * include/sys/wait.h (__libc_waitpid): Remove declaration.
32367         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
32368         (__waitpid): Don't define as alias.  Use libc_hidden_def not
32369         libc_hidden_weak.
32370         (waitpid): Define as alias of __waitpid.
32371         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
32372         __waitpid.
32373         (__waitpid): Don't define as alias.  Use libc_hidden_def not
32374         libc_hidden_weak.
32375         (waitpid): Define as alias of __waitpid.
32376         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
32377         __libc_waitpid alias.
32378         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
32379         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
32380         Likewise.
32381         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
32382         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
32383         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
32384         alias.
32385         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
32386         __waitpid.
32387         (__waitpid): Don't define as alias.  Use libc_hidden_def not
32388         libc_hidden_weak.
32389         (waitpid): Define as alias of __waitpid.
32390
32391 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
32392
32393         * manual/llio.texi: Add comment that write safety has been
32394         fixed in Linux.
32395
32396         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
32397         (localplt-build-dso): Add elf/ld.so.
32398         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
32399         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
32400         and free for ld.so.
32401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
32402         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
32403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
32404         Likewise.
32405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
32406         Likewise.
32407         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
32408         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
32409         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
32410         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
32411         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
32412         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
32413         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
32414         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
32415         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
32416         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
32417         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
32418
32419 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
32420
32421         [BZ #14132]
32422         * include/libc-symbols.h (INTUSE): Remove macro.
32423         (INTDEF): Likewise.
32424         (INTVARDEF): Likewise.
32425         (_INTVARDEF): Likewise.
32426         (INTDEF2): Likewise.
32427         (INTVARDEF2): Likewise.
32428         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
32429         rtld_hidden_def instead of INTVARDEF.
32430         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
32431         (_dl_starting_up_internal): Remove declaration.
32432         (_dl_starting_up): Use rtld_hidden_proto.
32433         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
32434         declaration.
32435         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
32436         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
32437         _dl_starting_up.
32438         * elf/dl-writev.h (_dl_writev): Likewise.
32439         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
32440         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
32441         _dl_starting_up_internal.
32442
32443 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32444
32445         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
32446         test-skeleton.c.
32447
32448 2014-11-05  Will Newton  <will.newton@linaro.org>
32449
32450         * benchtests/Makefile: (bench-malloc): Add malloc thread
32451         scalability benchmark.
32452         * benchtests/bench-malloc-threads.c: New file.
32453
32454 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
32455
32456         * sysdeps/aarch64/strchrnul.S: New file.
32457
32458 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32459
32460         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
32461         definition.
32462         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
32463         Likwise.
32464         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
32465         Likewise.
32466         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
32467         Likewise.
32468         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
32469         Likewise.
32470         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
32471         Likewise.
32472
32473 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
32474
32475         * catgets/test-gencat.c: Use test-skeleton.c.
32476         * catgets/tst-catgets.c: Likewise.
32477         * csu/tst-empty.c: Likewise.
32478         * elf/tst-audit2.c: Likewise.
32479         * elf/tst-global1.c: Likewise.
32480         * elf/tst-pathopt.c: Likewise.
32481         * elf/tst-piemod1.c: Likewise.
32482         * elf/tst-tls10.c: Likewise.
32483         * elf/tst-tls11.c: Likewise.
32484         * elf/tst-tls12.c: Likewise.
32485         * gnulib/tst-gcc.c: Likewise.
32486         * iconvdata/tst-e2big.c: Likewise.
32487         * iconvdata/tst-loading.c: Likewise.
32488         * iconv/tst-iconv1.c: Likewise.
32489         * iconv/tst-iconv2.c: Likewise.
32490         * inet/test-inet6_opt.c: Likewise.
32491         * inet/tst-gethnm.c: Likewise.
32492         * inet/tst-network.c: Likewise.
32493         * inet/tst-ntoa.c: Likewise.
32494         * intl/tst-codeset.c: Likewise.
32495         * intl/tst-gettext2.c: Likewise.
32496         * intl/tst-gettext3.c: Likewise.
32497         * intl/tst-ngettext.c: Likewise.
32498         * intl/tst-translit.c: Likewise.
32499         * io/test-stat.c: Likewise.
32500         * libio/test-fmemopen.c: Likewise.
32501         * libio/tst-freopen.c: Likewise.
32502         * libio/tst-sscanf.c: Likewise.
32503         * libio/tst-ungetwc1.c: Likewise.
32504         * libio/tst-ungetwc2.c: Likewise.
32505         * libio/tst-widetext.c: Likewise.
32506         * localedata/tst-ctype.c: Likewise.
32507         * localedata/tst-digits.c: Likewise.
32508         * localedata/tst-leaks.c: Likewise.
32509         * localedata/tst-mbswcs1.c: Likewise.
32510         * localedata/tst-mbswcs2.c: Likewise.
32511         * localedata/tst-mbswcs3.c: Likewise.
32512         * localedata/tst-mbswcs4.c: Likewise.
32513         * localedata/tst-mbswcs5.c: Likewise.
32514         * localedata/tst-setlocale.c: Likewise.
32515         * localedata/tst-trans.c: Likewise.
32516         * localedata/tst-wctype.c: Likewise.
32517         * localedata/tst-xlocale1.c: Likewise.
32518         * login/tst-grantpt.c: Likewise.
32519         * malloc/tst-calloc.c: Likewise.
32520         * malloc/tst-malloc.c: Likewise.
32521         * malloc/tst-mallocstate.c: Likewise.
32522         * malloc/tst-mcheck.c: Likewise.
32523         * malloc/tst-mtrace.c: Likewise.
32524         * malloc/tst-obstack.c: Likewise.
32525         * math/atest-exp2.c: Likewise.
32526         * math/atest-exp.c: Likewise.
32527         * math/atest-sincos.c: Likewise.
32528         * math/test-matherr.c: Likewise.
32529         * math/test-misc.c: Likewise.
32530         * math/test-powl.c: Likewise.
32531         * math/tst-definitions.c: Likewise.
32532         * misc/tst-dirname.c: Likewise.
32533         * misc/tst-efgcvt.c: Likewise.
32534         * misc/tst-fdset.c: Likewise.
32535         * misc/tst-hsearch.c: Likewise.
32536         * misc/tst-mntent2.c: Likewise.
32537         * nptl/tst-sem7.c: Likewise.
32538         * nptl/tst-sem8.c: Likewise.
32539         * nptl/tst-sem9.c: Likewise.
32540         * nss/test-netdb.c: Likewise.
32541         * posix/tst-fnmatch.c: Likewise.
32542         * posix/tst-getlogin.c: Likewise.
32543         * posix/tst-gnuglob.c: Likewise.
32544         * posix/tst-mmap.c: Likewise.
32545         * pwd/tst-getpw.c: Likewise.
32546         * resolv/tst-inet_ntop.c: Likewise.
32547         * rt/tst-timer.c: Likewise.
32548         * stdio-common/test-fseek.c: Likewise.
32549         * stdio-common/test-popen.c: Likewise.
32550         * stdio-common/test-vfprintf.c: Likewise.
32551         * stdio-common/tst-cookie.c: Likewise.
32552         * stdio-common/tst-fileno.c: Likewise.
32553         * stdio-common/tst-gets.c: Likewise.
32554         * stdio-common/tst-obprintf.c: Likewise.
32555         * stdio-common/tst-perror.c: Likewise.
32556         * stdio-common/tst-sprintf2.c: Likewise.
32557         * stdio-common/tst-sprintf3.c: Likewise.
32558         * stdio-common/tst-sprintf.c: Likewise.
32559         * stdio-common/tst-swprintf.c: Likewise.
32560         * stdio-common/tst-tmpnam.c: Likewise.
32561         * stdio-common/tst-unbputc.c: Likewise.
32562         * stdio-common/tst-wc-printf.c: Likewise.
32563         * stdlib/tst-environ.c: Likewise.
32564         * stdlib/tst-fmtmsg.c: Likewise.
32565         * stdlib/tst-limits.c: Likewise.
32566         * stdlib/tst-rand48-2.c: Likewise.
32567         * stdlib/tst-rand48.c: Likewise.
32568         * stdlib/tst-random2.c: Likewise.
32569         * stdlib/tst-random.c: Likewise.
32570         * stdlib/tst-strtol.c: Likewise.
32571         * stdlib/tst-strtoll.c: Likewise.
32572         * stdlib/tst-tls-atexit.c: Likewise.
32573         * stdlib/tst-xpg-basename.c: Likewise.
32574         * string/test-ffs.c: Likewise.
32575         * string/tst-bswap.c: Likewise.
32576         * string/tst-inlcall.c: Likewise.
32577         * string/tst-strtok.c: Likewise.
32578         * string/tst-strxfrm.c: Likewise.
32579         * sysdeps/x86_64/tst-audit10.c: Likewise.
32580         * sysdeps/x86_64/tst-audit3.c: Likewise.
32581         * sysdeps/x86_64/tst-audit4.c: Likewise.
32582         * sysdeps/x86_64/tst-audit5.c: Likewise.
32583         * time/tst-ftime_l.c: Likewise.
32584         * time/tst-getdate.c: Likewise.
32585         * time/tst-mktime3.c: Likewise.
32586         * time/tst-mktime.c: Likewise.
32587         * time/tst-posixtz.c: Likewise.
32588         * time/tst-strptime2.c: Likewise.
32589         * time/tst-strptime3.c: Likewise.
32590         * wcsmbs/tst-btowc.c: Likewise.
32591         * wcsmbs/tst-mbrtowc.c: Likewise.
32592         * wcsmbs/tst-mbsrtowcs.c: Likewise.
32593         * wcsmbs/tst-wchar-h.c: Likewise.
32594         * wcsmbs/tst-wcpncpy.c: Likewise.
32595         * wcsmbs/tst-wcrtomb.c: Likewise.
32596         * wcsmbs/tst-wcsnlen.c: Likewise.
32597         * wcsmbs/tst-wcstof.c: Likewise.
32598
32599 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
32600
32601         [BZ #14132]
32602         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
32603         INTDEF.
32604         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
32605         declaration.
32606         (_dl_mcount): Use rtld_hidden_proto.
32607         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
32608         _dl_mcount.
32609         * elf/rtld.c (_rtld_global_ro): Likewise.
32610
32611         [BZ #14132]
32612         * elf/dl-init.c (_dl_init): Don't use INTDEF.
32613         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
32614         of _dl_init_internal.
32615         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
32616         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
32617         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
32618         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
32619         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
32620         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
32621         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
32622         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
32623         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
32624         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
32625         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
32626         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
32627         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
32628         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
32629         * sysdeps/tile/dl-start.S (_start): Likewise.
32630         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
32631         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
32632
32633         [BZ #14132]
32634         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
32635         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
32636         (rtld_progname): Make macro definition unconditional.
32637         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
32638         INTDEF.
32639         (dlmopen_doit): Do not use INTUSE with _dl_argv.
32640         (dl_main): Likewise.
32641         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
32642         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
32643         instead of _dl_argv_internal.
32644         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32645         __GI__dl_argv instead of INTUSE(_dl_argv).
32646         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
32647         __GI__dl_argv instead of _dl_argv_internal.
32648
32649         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
32650         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
32651         macro.
32652         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
32653         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
32654         New macro.
32655         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
32656         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
32657         macro.
32658         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
32659         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
32660
32661 2014-11-04  Andreas Schwab  <schwab@suse.de>
32662
32663         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
32664
32665 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32666
32667         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
32668         mtvsrd instruction in binary form.
32669
32670 2014-11-03  Andreas Schwab  <schwab@suse.de>
32671
32672         [BZ #17522]
32673         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
32674         for less than MB_LEN_MAX use a local buffer of that size.
32675         * libio/tst-fputws.c: New file.
32676         * libio/Makefile (tests): Add tst-fputws.
32677
32678 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
32679
32680         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
32681         the size of the fpu_fr.fpu_dregs[] array.
32682
32683 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
32684
32685         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
32686         (__nanosleep): Do not define as alias.
32687         (nanosleep): Define as alias of __nanosleep.
32688         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
32689         __libc_nanosleep name.
32690
32691 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
32692
32693         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
32694         install.texi in comment.
32695
32696 2014-10-31  Torvald Riegel  <triegel@redhat.com>
32697
32698         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
32699         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
32700         ... add here and use lwsync or sync ...
32701         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
32702         ... and add here using lwsync.
32703
32704 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
32705
32706         * elf/dl-machine-reject-phdr.h: New file.
32707         * elf/dl-load.c: #include that.
32708         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
32709         if that returned true.
32710
32711 2014-10-31  Roland McGrath  <roland@hack.frob.com>
32712
32713         [BZ #17496]
32714         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
32715         gen-as-const-headers chunk.  Add a big scare comment after the last
32716         safe place to touch before-compile.
32717
32718 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
32719
32720         * manual/install.texi (Tools for Compilation): Update autoconf
32721         version requirements.
32722         * INSTALL: Regenerated.
32723
32724         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
32725         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
32726         (__libc_pselect): Likewise.
32727
32728         [BZ #14138]
32729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
32730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32733
32734 2014-10-31  Torvald Riegel  <triegel@redhat.com>
32735
32736         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
32737         correct barrier instruction.
32738         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
32739         Likewise.
32740         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
32741         Likewise.
32742
32743 2014-10-30  Roland McGrath  <roland@hack.frob.com>
32744
32745         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
32746         after defining inlines.  Instead, just use parens to defeat macro
32747         expansion of __isctype in its declaration.
32748
32749 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
32750
32751         * include/sys/uio.h (__libc_readv): Remove declaration.
32752         (__libc_writev): Likewise.
32753         * misc/readv.c (__libc_readv): Rename to __readv.
32754         (__readv): Do not define as alias.
32755         (readv): Define as alias of __readv.
32756         * misc/writev.c (__libc_writev): Rename to __writev.
32757         (__writev): Do not define as alias.
32758         (writev): Define as alias of __writev.
32759         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
32760         (__readv): Do not define as alias.
32761         (readv): Define unconditionally as alias of __readv.
32762         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
32763         (__writev): Do not define as alias.
32764         (writev): Define unconditionally as alias of __writev.
32765         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
32766         name.
32767         (writev): Do not define __libc_writev name.
32768
32769 2014-10-30  Roland McGrath  <roland@hack.frob.com>
32770
32771         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
32772         (convert_charseq): New function, broken out of ...
32773         (use_from_charmap): ... here.  Call it.
32774         (use_to_charmap): Use convert_charseq and free instead of duplicating
32775         its code with a variable-length stack struct.
32776
32777 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
32778
32779         * include/fcntl.h (__libc_creat): Remove declaration.
32780         * io/creat.c (__libc_creat): Rename to creat.
32781         (creat): Do not define as alias.
32782         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
32783         of creat instead of __libc_creat.
32784         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
32785         to creat.
32786         (creat): Do not define as alias.
32787         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
32788         __libc_creat.
32789         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
32790         __libc_creat name.
32791         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
32792         Likewise.
32793
32794 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
32795
32796         * manual/llio.texi: Add comments discussing why write() may be
32797         considered MT-unsafe on Linux.
32798
32799 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
32800
32801         * dl-load.c (local_strdup): Remove.
32802         (expand_dynamic_string_token): Use __strdup.
32803         (decompose_rpath): Likewise.
32804         (_dl_map_object): Likewise.
32805
32806 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
32807
32808         [BZ #14132]
32809         * sysdeps/generic/unwind-dw2-fde.c
32810         (__register_frame_info_bases_internal): Do not declare.
32811         (__register_frame_info_table_bases_internal): Likewise.
32812         (__deregister_frame_info_bases_internal): Likewise.
32813         (__register_frame_info_bases): Declare and use hidden_proto before
32814         definition.  Use hidden_def instead of INTDEF.
32815         (__register_frame_info_table_bases): Likewise.
32816         (__deregister_frame_info_bases): Likewise.
32817         (__register_frame_info): Do not use INTUSE.
32818         (__register_frame): Likewise.
32819         (__register_frame_info_table): Likewise.
32820         (__register_frame_table): Likewise.
32821         (__deregister_frame_info): Likewise.
32822         (__deregister_frame): Likewise.
32823
32824 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
32825
32826         * sysdeps/unix/sysv/linux/arm/kernel-features.h
32827         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
32828         not undefine.
32829         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
32830         Likewise.
32831         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
32832         Likewise.
32833
32834 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
32835
32836         [BZ #14138]
32837         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
32838         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
32839         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
32840         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
32841         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
32842         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
32843         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
32844         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
32845         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
32846         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
32847         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
32848         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
32849         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
32850         syscall.
32851         (setfsuid): Likewise.
32852         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
32853         (setfsuid): Likewise.
32854         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
32855         (setfsuid): Likewise.
32856         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
32857         Likewise.
32858         (setfsuid): Likewise.
32859         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
32860         (setfsuid): Likewise.
32861         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
32862         Likewise.
32863         (setfsuid): Likewise.
32864
32865 2014-10-27  Andreas Schwab  <schwab@suse.de>
32866
32867         [BZ #17501]
32868         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
32869         check for Slow_SSE4_2 feature bit.
32870         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
32871         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
32872         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
32873         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
32874
32875 2014-10-24  Roland McGrath  <roland@hack.frob.com>
32876
32877         * configure.ac: Validate compiler version with a empirical test of
32878         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
32879         $CC -v output.
32880         * configure: Regenerated.
32881
32882         * inet/htons.c (htons): Prototypify.
32883         * inet/htonl.c (htonl): Likewise.
32884
32885 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32886
32887         * string/strncat.c (strncat): Improve performance by using strlen.
32888
32889 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32890
32891         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
32892
32893 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32894
32895         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
32896         Call libc_fetestexcept_aarch64.
32897
32898 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32899
32900         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
32901         Call libc_feholdexcept_aarch64.
32902
32903 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32904
32905         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
32906         Call get_rounding_mode.
32907
32908 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32909
32910         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
32911         Simplify logic.
32912
32913 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32914
32915         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
32916         Simplify logic.
32917
32918 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
32919
32920         [BZ #14138]
32921         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
32922         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
32923         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
32924         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
32925         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
32926         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
32927         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
32928         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
32929         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
32930         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
32931         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
32932         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
32933         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
32934         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
32935         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
32936         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
32937         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
32938         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
32939         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
32940         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
32941         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
32942         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
32943         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
32944         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
32945         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
32946         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
32947         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
32948         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
32949         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
32950         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
32951         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
32952         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
32953         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
32954         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
32955         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
32956         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
32957         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
32958         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
32959         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
32960         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
32961         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
32962         syscall.
32963         (geteuid): Likewise.
32964         (getgid): Likewise.
32965         (getuid): Likewise.
32966         (getresgid): Likewise.
32967         (getresuid): Likewise.
32968         (getgroups): Likewise.
32969         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
32970         (geteuid): Likewise.
32971         (getgid): Likewise.
32972         (getuid): Likewise.
32973         (getresgid): Likewise.
32974         (getresuid): Likewise.
32975         (getgroups): Likewise.
32976         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
32977         (geteuid): Likewise.
32978         (getgid): Likewise.
32979         (getuid): Likewise.
32980         (getresgid): Likewise.
32981         (getresuid): Likewise.
32982         (getgroups): Likewise.
32983         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
32984         Likewise.
32985         (geteuid): Likewise.
32986         (getgid): Likewise.
32987         (getuid): Likewise.
32988         (getresgid): Likewise.
32989         (getresuid): Likewise.
32990         (getgroups): Likewise.
32991         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
32992         (geteuid): Likewise.
32993         (getgid): Likewise.
32994         (getuid): Likewise.
32995         (getresgid): Likewise.
32996         (getresuid): Likewise.
32997         (getgroups): Likewise.
32998         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
32999         Likewise.
33000         (geteuid): Likewise.
33001         (getgid): Likewise.
33002         (getuid): Likewise.
33003         (getgroups): Likewise.
33004
33005         [BZ #14138]
33006         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
33007         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
33008         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
33009         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
33010         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
33011         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
33012         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
33013         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
33014         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
33015         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
33016         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
33017         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
33018         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
33019         __chown.
33020         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
33021         (lchown): Likewise.
33022         (fchown): Likewise.
33023         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
33024         Likewise.
33025         (lchown): Likewise.
33026         (fchown): Likewise.
33027         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
33028         (lchown): Likewise.
33029         (fchown): Likewise.
33030         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
33031         Likewise.
33032         (lchown): Likewise.
33033         (fchown): Likewise.
33034
33035 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
33036
33037         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
33038         Simplify logic.
33039
33040 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
33041
33042         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
33043         Cleanup logic.
33044
33045 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
33046
33047         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
33048         Remove unused include.
33049
33050 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
33051
33052         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
33053         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
33054         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
33055         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
33056
33057 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
33058             Helge Deller <deller@gmx.de>
33059
33060         [BZ #17508]
33061         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
33062         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
33063         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
33064
33065 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
33066
33067         [BZ #14132]
33068         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
33069         Remove macro definition.
33070         (__ashrdi3_v_glibc20): Likewise.
33071         (__lshrdi3_v_glibc20): Likewise.
33072         (__cmpdi2_v_glibc20): Likewise.
33073         (__ucmpdi2_v_glibc20): Likewise.
33074         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
33075         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
33076         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
33077         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
33078         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
33079         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
33080
33081 2014-10-22  Roland McGrath  <roland@hack.frob.com>
33082
33083         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
33084         old GNU extension [0] syntax.
33085         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
33086         alloca rather than an array member with variable length.
33087         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
33088         * nscd/nscd.c (invalidate_db): New function, broken out of ...
33089         (parse_opt): ... here.  Likewise use alloca there.
33090         Validate the -i argument before checking for rootness.
33091         (send_shutdown): New function, broken out of ...
33092         (parse_opt): ... here.
33093
33094 2014-10-22  Roland McGrath  <roland@hack.frob.com>
33095
33096         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
33097         macro to get at the _rt_local_ro field.
33098         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
33099         ([PIC] case) or _dl_hwcap ([!PIC] case).
33100         * sysdeps/arm/setjmp.S: Likewise.
33101
33102         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
33103         * sysdeps/arm/configure.ac: New check to define it.
33104         * sysdeps/arm/configure: Regenerated.
33105         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
33106         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
33107         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
33108         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
33109         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
33110         Use move/movt pair instead of a load.
33111         (LDST_GLOBAL): Macro removed.
33112         (LDR_GLOBAL): New macro replaces it.
33113         (LDR_HIDDEN): New macro.
33114         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
33115         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
33116
33117         * setjmp/tst-setjmp-static.c: New file.
33118         * setjmp/Makefile (tests): Add it.
33119         (tests-static): New variable.
33120
33121 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
33122
33123         [BZ #17485]
33124         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
33125
33126 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
33127
33128         [BZ #14132]
33129         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
33130
33131 2014-10-21  Roland McGrath  <roland@hack.frob.com>
33132
33133         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
33134
33135 2014-10-20  Roland McGrath  <roland@hack.frob.com>
33136
33137         * io/fts.c (dirent_not_directory): New function.
33138         (fts_build): Call it.
33139
33140 2014-10-20  Roland McGrath  <roland@hack.frob.com>
33141
33142         * nptl/version.c (__nptl_main): Use normal __write rather than
33143         INTERNAL_SYSCALL.
33144         (banner): Update copyright years.
33145
33146         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
33147         gettimeofday.
33148         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
33149         * nptl/pthread_cond_timedwait.c: Likewise.
33150         * nptl/pthread_mutex_timedlock.c: Likewise.
33151         * nptl/sem_timedwait.c: Likewise.
33152
33153         * sysdeps/nptl/bits/libc-lock.h
33154         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33155         (__libc_lock_init_recursive): Return void, not 0.
33156         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
33157         (__libc_rwlock_init): Likewise.
33158         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
33159
33160 2014-10-20  Torvald Riegel  <triegel@redhat.com>
33161
33162         [BZ #15215]
33163         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
33164         (__pthread_once_slow): ... here.
33165         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
33166         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
33167
33168 2014-10-20  Torvald Riegel  <triegel@redhat.com>
33169
33170         [BZ #15215]
33171         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
33172         __PTHREAD_ONCE_FORK_GEN_INCR): New.
33173         * sysdeps/nptl/fork.c (__libc_fork): Use them.
33174         * nptl/pthread_once.c (__pthread_once): Likewise.
33175         Update comments.
33176
33177 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
33178
33179         [BZ #14138]
33180         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
33181         name.
33182         (writev): Use __libc_writev as strong name.
33183         * sysdeps/unix/sysv/linux/readv.c: Remove file.
33184         * sysdeps/unix/sysv/linux/writev.c: Likewise.
33185
33186 2014-10-17  Roland McGrath  <roland@hack.frob.com>
33187
33188         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
33189
33190         * sysdeps/i386/nptl/tls.h
33191         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
33192         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
33193         New macros.
33194         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
33195         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
33196         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
33197         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
33198         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
33199         Call CHECK_THREAD_SYSINFO instead of doing an assert.
33200
33201         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
33202         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
33203         on [__NR_futex].
33204         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
33205         broken out of ...
33206         (__pthread_mutex_init): ... here.  Call it.
33207         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
33208         Conditionalize PI cases on [__NR_futex].
33209         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
33210         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
33211         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
33212
33213         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
33214         conditional on [SIGSETXID].
33215         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
33216         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
33217         is defined.  Likewise for SIGSETXID.
33218         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
33219         Conditionalize definitions on [SIGSETXID].
33220         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
33221         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
33222         unblocking on [SIGCANCEL].
33223
33224         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
33225         [__NR_set_robust_list].
33226
33227 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
33228
33229         * string/strcoll_l.c (get_next_seq): Fix up formatting.
33230         (do_compare): Likewise.
33231
33232 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
33233
33234         [BZ #15884]
33235         * string/strcoll_l.c: Don't include stdio.h.
33236         (coll_seq): Remove members idxarr and rulearr.
33237         (get_next_seq_cached): Remove function.
33238         (get_next_seq): Likewise.
33239         (get_next_seq_nocache): Rename to get_next_seq.
33240         (do_compare): Remove function.
33241         (do_compare_nocache): Rename to do_compare.
33242         (STRCOLL): Remove weight and rules cache.
33243
33244 2014-10-16  Roland McGrath  <roland@hack.frob.com>
33245
33246         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
33247         * sysdeps/arm/sfp-machine.h: ... to here.
33248         * sysdeps/arm/Implies: Remove arm/soft-fp.
33249
33250 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
33251
33252         * conform/data/sys/utsname.h-data (*_t): Allow.
33253         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
33254         [POSIX] (WEXITED): Do not expect constant.
33255         [POSIX] (WSTOPPED): Likewise.
33256         [POSIX] (WNOHANG): Likewise.
33257         [POSIX] (WNOWAIT): Likewise.
33258         [POSIX] (siginfo_t): Do not expect type or elements.
33259         [POSIX] (pid_t): Do not expect type.
33260         [POSIX] (signal.h): Do not allow header.
33261         [POSIX] (sys/resource.h): Likewise.
33262         [POSIX] (si_*): Do not allow pattern.
33263         [POSIX] (W*): Likewise.
33264         [POSIX] (P_*): Likewise.
33265         [POSIX] (BUS_*): Likewise.
33266         [POSIX] (CLD_*): Likewise.
33267         [POSIX] (FPE_*): Likewise.
33268         [POSIX] (ILL_*): Likewise.
33269         [POSIX] (POLL_*): Likewise.
33270         [POSIX] (SEGV_*): Likewise.
33271         [POSIX] (SI_*): Likewise.
33272         [POSIX] (TRAP_*): Likewise.
33273         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
33274         variable.
33275
33276 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
33277
33278         [BZ #12926]
33279         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
33280         infinite loop when __recvmsg returns 0.
33281
33282 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
33283
33284         * CANCEL-FCT-WAIVE: Remove file.
33285         * CANCEL-FILE-WAIVE: Likewise.
33286
33287         [BZ #14132]
33288         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
33289         instead of INTVARDEF.
33290         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
33291         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
33292         rtld_hidden_data_def instead of INTVARDEF.
33293         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
33294         * elf/dl-deps.c (expand_dst): Likewise.
33295         * elf/dl-load.c (_dl_dst_count): Likewise.
33296         (_dl_dst_substitute): Likewise.
33297         (decompose_rpath): Likewise.
33298         (_dl_init_paths): Likewise.
33299         (open_path): Likewise.
33300         (_dl_map_object): Likewise.
33301         * elf/rtld.c (dl_main): Likewise.
33302         (process_dl_audit): Likewise.
33303         (process_envvars): Likewise.
33304         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
33305         Remove declaration.
33306         (__libc_enable_secure): Use rtld_hidden_proto.
33307
33308 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33309
33310         * elf/dl-load.c
33311         (add_path): New function broken out of _dl_rtld_di_serinfo.
33312         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
33313
33314 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
33315
33316         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
33317         parentheses around macro arguments.
33318         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
33319         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
33320         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
33321         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
33322         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
33323         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
33324         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
33325         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
33326         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
33327         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
33328         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
33329         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
33330         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
33331         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
33332         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
33333         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
33334         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
33335         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
33336         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
33337         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
33338         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
33339         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
33340         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
33341         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
33342         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
33343         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
33344         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
33345         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
33346         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
33347         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
33348         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
33349         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
33350         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
33351         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
33352         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
33353         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
33354         Likewise.
33355         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
33356         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
33357         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
33358         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
33359         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
33360         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
33361         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
33362         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
33363         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
33364         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
33365         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
33366         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
33367         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
33368         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
33369         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
33370         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
33371         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
33372         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
33373         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
33374         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
33375         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
33376         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
33377         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
33378         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
33379         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
33380         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
33381         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
33382         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
33383         (_FP_FRAC_SRS_1): Likewise.
33384         (_FP_FRAC_CLZ_1): Likewise.
33385         (_FP_MUL_MEAT_1_imm): Likewise.
33386         (_FP_MUL_MEAT_1_wide): Likewise.
33387         (_FP_MUL_MEAT_1_hard): Likewise.
33388         (_FP_SQRT_MEAT_1): Likewise.
33389         (_FP_FRAC_ASSEMBLE_1): Likewise.
33390         (_FP_FRAC_DISASSEMBLE_1): Likewise.
33391         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
33392         (__FP_CLZ_2): Likewise.
33393         (_FP_MUL_MEAT_2_wide): Likewise.
33394         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
33395         (_FP_MUL_MEAT_2_gmp): Likewise.
33396         (_FP_MUL_MEAT_2_120_240_double): Likewise.
33397         (_FP_SQRT_MEAT_2): Likewise.
33398         (_FP_FRAC_ASSEMBLE_2): Likewise.
33399         (_FP_FRAC_DISASSEMBLE_2): Likewise.
33400         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
33401         (_FP_FRAC_CLZ_4): Likewise.
33402         (_FP_MUL_MEAT_4_wide): Likewise.
33403         (_FP_MUL_MEAT_4_gmp): Likewise.
33404         (_FP_SQRT_MEAT_4): Likewise.
33405         (_FP_FRAC_ASSEMBLE_4): Likewise.
33406         (_FP_FRAC_DISASSEMBLE_4): Likewise.
33407         * soft-fp/op-common.h (_FP_CMP): Likewise.
33408         (_FP_CMP_EQ): Likewise.
33409         (_FP_CMP_UNORD): Likewise.
33410         (_FP_TO_INT): Likewise.
33411         (_FP_FROM_INT): Likewise.
33412         [!__FP_CLZ] (__FP_CLZ): Likewise.
33413         (_FP_DIV_HELP_imm): Likewise.
33414         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
33415         Likewise.
33416         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
33417         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
33418         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
33419         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
33420         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
33421         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
33422         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
33423         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
33424         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
33425         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
33426         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
33427         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
33428         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
33429         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
33430         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
33431         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
33432         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
33433         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
33434         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
33435         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
33436         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
33437         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
33438         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
33439         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
33440         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
33441         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
33442         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
33443         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
33444         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
33445         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
33446         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
33447         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
33448         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
33449         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
33450         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
33451         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
33452         (FP_UNPACK_RAW_SP): Likewise.
33453         (FP_PACK_RAW_S): Likewise.
33454         (FP_PACK_RAW_SP): Likewise.
33455         (FP_UNPACK_S): Likewise.
33456         (FP_UNPACK_SP): Likewise.
33457         (FP_UNPACK_SEMIRAW_S): Likewise.
33458         (FP_UNPACK_SEMIRAW_SP): Likewise.
33459         (FP_PACK_S): Likewise.
33460         (FP_PACK_SP): Likewise.
33461         (FP_PACK_SEMIRAW_S): Likewise.
33462         (FP_PACK_SEMIRAW_SP): Likewise.
33463         (_FP_SQRT_MEAT_S): Likewise.
33464         (FP_CMP_S): Likewise.
33465         (FP_CMP_EQ_S): Likewise.
33466         (FP_CMP_UNORD_S): Likewise.
33467         (FP_TO_INT_S): Likewise.
33468         (FP_FROM_INT_S): Likewise.
33469
33470         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
33471
33472         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
33473         (FP_EX_INVALID_IMZ): Likewise.
33474         (FP_EX_INVALID_IMZ_FMA): Likewise.
33475         (FP_EX_INVALID_ISI): Likewise.
33476         (FP_EX_INVALID_ZDZ): Likewise.
33477         (FP_EX_INVALID_IDI): Likewise.
33478         (FP_EX_INVALID_SQRT): Likewise.
33479         (FP_EX_INVALID_CVI): Likewise.
33480         (FP_EX_INVALID_VC): Likewise.
33481         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
33482         "invalid" exceptions.
33483         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
33484         (_FP_ADD_INTERNAL): Likewise.
33485         (_FP_MUL): Likewise.
33486         (_FP_FMA): Likewise.
33487         (_FP_DIV): Likewise.
33488         (_FP_CMP_CHECK_NAN): Likewise.
33489         (_FP_SQRT): Likewise.
33490         (_FP_TO_INT): Likewise.
33491         (FP_EXTEND): Likewise.
33492
33493 2014-10-09  Allan McRae  <allan@archlinux.org>
33494
33495         * po/fr.po: Update French translation from translation project.
33496
33497 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
33498
33499         [BZ #14132]
33500         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
33501         of INTDEF.
33502         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
33503         (__cxa_atexit): Use libc_hidden_proto.
33504         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
33505
33506         [BZ #14132]
33507         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
33508         declaration.
33509         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
33510         [!_ISOMAC] (__iswspace_l_internal): Likewise.
33511         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
33512         [!_ISOMAC] (__iswctype_internal): Likewise.
33513         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
33514         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
33515         alias.
33516         (fcntl): Remove __fcntl_internal alias.
33517         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
33518         __connect_internal alias.
33519         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
33520         Likewise.
33521
33522         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
33523         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
33524         FP_DENORM_ZERO.
33525         (_FP_CHECK_FLUSH_ZERO): New macro.
33526         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
33527         (_FP_CMP): Likewise.
33528         (_FP_CMP_EQ): Likewise.
33529         (_FP_TO_INT): Do not set inexact for subnormal arguments if
33530         FP_DENORM_ZERO.
33531         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
33532         (FP_TRUNC): Likewise.
33533
33534         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
33535         treated as invalid conversion, not as normal exponent.
33536
33537         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
33538         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
33539         (_FP_CMP_EQ): Likewise.
33540         (_FP_CMP_UNORD): Likewise.
33541         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
33542         (FP_CMP_EQ_D): Likewise.
33543         (FP_CMP_UNORD_D): Likewise.
33544         * soft-fp/extended.h (FP_CMP_E): Likewise.
33545         (FP_CMP_EQ_E): Likewise.
33546         (FP_CMP_UNORD_E): Likewise.
33547         * soft-fp/quad.h (FP_CMP_Q): Likewise.
33548         (FP_CMP_EQ_Q): Likewise.
33549         (FP_CMP_UNORD_Q): Likewise.
33550         * soft-fp/single.h (FP_CMP_S): Likewise.
33551         (FP_CMP_EQ_S): Likewise.
33552         (FP_CMP_UNORD_S): Likewise.
33553         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
33554         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
33555         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
33556         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
33557         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
33558         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
33559         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
33560         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
33561         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
33562         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
33563         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
33564         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
33565         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
33566         to FP_CMP_Q.
33567         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
33568         FP_CMP_Q.
33569         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
33570         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
33571         FP_CMP_EQ_Q.
33572         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
33573         FP_CMP_Q.
33574         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
33575         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
33576         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
33577         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
33578         FP_CMP_EQ_Q.
33579         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
33580         FP_CMP_Q.
33581         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
33582         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
33583         FP_CMP_EQ_Q.
33584         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
33585         FP_CMP_Q.
33586         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
33587         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
33588         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
33589         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
33590         FP_CMP_EQ_Q.
33591
33592         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
33593         a subnormal result, set the underflow exception if trapping on
33594         underflow is enabled.
33595         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
33596         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
33597         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
33598         redefine to 0.
33599         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
33600         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
33601         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
33602         * soft-fp/extendxftf2.c (__extendxftf2): Use
33603         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
33604
33605         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
33606         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
33607         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
33608         FP_HANDLE_EXCEPTIONS.
33609         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
33610         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
33611         FP_HANDLE_EXCEPTIONS.
33612         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
33613         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
33614         FP_HANDLE_EXCEPTIONS.
33615         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
33616         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
33617         FP_HANDLE_EXCEPTIONS.
33618
33619 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
33620
33621         [BZ #14132]
33622         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
33623         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
33624         use INTUSE.
33625         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
33626         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
33627         Remove alias.
33628         (__adjtimex): Define using libc_hidden_ver.
33629         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
33630         Remove declaration.
33631         (ntp_gettime): Call __adjtimex directly.
33632         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
33633         Remove declaration.
33634         (ntp_gettimex): Call __adjtimex directly.
33635         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
33636         __adjtimex_internal alias.
33637
33638 2014-10-08  Roland McGrath  <roland@hack.frob.com>
33639
33640         [BZ #17460]
33641         * nscd/nscd.c (more_help): Rewrite list of tables collection
33642         using xstrdup and asprintf.
33643
33644         * nscd/nscd_conf.c: Remove local xstrdup declaration.
33645
33646 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33647             Roland McGrath  <roland@hack.frob.com>
33648
33649         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
33650         (do_lookup_unique): ... local function 'enter' here; update callers.
33651
33652 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
33653
33654         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
33655         compat_symbol calls on [SHARED].
33656         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
33657         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
33658         Remove.
33659         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
33660         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
33661         (oldsetrlimit): Remove.
33662         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
33663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
33664         (lchown): New syscall entry.
33665         (oldsetrlimit): Remove.
33666         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
33667         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
33668         (oldsetrlimit): Remove.
33669         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
33670
33671         [BZ #14138]
33672         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
33673         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
33674         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
33675         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
33676         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
33677         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
33678         (fchown): Likewise.
33679         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
33680         (fchown): Likewise.
33681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
33682         Likewise.
33683
33684 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33685
33686         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
33687         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
33688         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
33689         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
33690         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
33691         Likewise.
33692         (__old_sem_post): Likewise.
33693
33694 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
33695
33696         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
33697         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
33698         HAVE_CLOCK_GETTIME_VSYSCALL macros.
33699         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
33700         Use INLINE_VSYSCALL macro.
33701         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
33702         __vdso_clock_gettime.
33703         * sysdeps/unix/sysv/linux/tile/init-first.c
33704         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
33705         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
33706         __vdso_clock_gettime.
33707
33708         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
33709         to set up frame more cleanly.
33710
33711         * sysdeps/tile/memcmp.c: New file.
33712
33713         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
33714
33715         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
33716         * sysdeps/tile/tilegx/strcasestr.c: New file.
33717         * sysdeps/tile/tilegx/strnlen.c: New file.
33718         * sysdeps/tile/tilegx/strstr.c: New file.
33719
33720         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
33721
33722 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
33723
33724         * nptl/tst-setuid3.c: Write errors to stdout.
33725
33726 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33727
33728         * elf/dl-deps.c
33729         (preload): New functions broken out of _dl_map_object_deps.
33730         (_dl_map_object_deps):  Remove a nested function. Update call sites.
33731
33732 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
33733
33734         [BZ #14138]
33735         * sysdeps/unix/sysv/linux/execve.c: Remove file.
33736         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
33737
33738 2014-10-01  Steve Ellcey  <sellcey@mips.com>
33739
33740         * sysdeps/mips/strcmp.S: New.
33741
33742 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
33743
33744         [BZ #14138]
33745         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
33746         (linkat): Likewise.
33747         (mkdirat): Likewise.
33748         (readlinkat): Likewise.
33749         (renameat): Likewise.
33750         (symlinkat): Likewise.
33751         (unlinkat): Likewise.
33752         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
33753         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
33754         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
33755         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
33756         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
33757         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
33758         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
33759
33760 2014-09-30  Will Newton  <will.newton@linaro.org>
33761
33762         * math/math.h: Define long double math functions if
33763         _LIBC_TEST is defined.
33764         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
33765
33766         * localedata/Makefile: Move assignment to tests-special
33767         into an ifdef testing run-built-tests.
33768         * timezone/Makefile: Likewise.
33769
33770 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
33771
33772         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
33773         with $(BASH) not $(SHELL).
33774
33775 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
33776             Matthew LeGendre  <legendre1@llnl.gov>
33777
33778         [BZ #17411]
33779         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
33780         l_reloc_result.
33781
33782 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33783
33784         * stdio-common/printf_fp.c
33785         (hack_digit): New function, broken out of ...
33786         (__printf_fp): ... local function here.  Update call sites.
33787         hack_digit now takes an additional parameter that is a pointer
33788         to a struct of the referenced locals.  Those locals moved inside
33789         the struct and references updated.
33790
33791 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
33792
33793         * aclocal.m4: Require autoconf 2.69.
33794         * configure: Regenerated.
33795         * sysdeps/aarch64/configure: Likewise.
33796         * sysdeps/alpha/configure: Likewise.
33797         * sysdeps/arm/armv7/configure: Likewise.
33798         * sysdeps/arm/configure: Likewise.
33799         * sysdeps/ia64/configure: Likewise.
33800         * sysdeps/mach/configure: Likewise.
33801         * sysdeps/mips/configure: Likewise.
33802         * sysdeps/s390/configure: Likewise.
33803         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
33804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
33805
33806         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
33807         file.
33808         * sysdeps/ia64/configure.ac: Likewise.
33809
33810 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
33811
33812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
33813         specify symbol version for ld.so.  Do not include entry for
33814         libpthread.
33815         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33816         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
33817         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33818
33819         [BZ #14171]
33820         * Makeconfig [$(build-shared) = yes]
33821         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
33822         makefiles.
33823         [$(build-shared) = yes && $(soversions.mk-done) = t]
33824         ($(common-objpfx)gnu/lib-names.h): Remove rule.
33825         [$(build-shared) = yes && $(soversions.mk-done) = t]
33826         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
33827         to Makerules.
33828         [$(build-shared) = yes && $(soversions.mk-done) = t]
33829         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
33830         here.
33831         [$(build-shared) = yes && $(soversions.mk-done) = t]
33832         (common-generated): Don't append gnu/lib-names.h and
33833         gnu/lib-names.stmp here.
33834         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
33835         (lib-names-h-abi): New variable.
33836         [$(build-shared) = yes && $(soversions.mk-done) = t]
33837         (lib-names-stmp-abi): Likewise.
33838         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33839         abi-variants] (before-compile): Append
33840         $(common-objpfx)$(lib-names-h-abi).
33841         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33842         abi-variants] (common-generated): Append gnu/lib-names.h.
33843         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33844         abi-variants] (install-others-nosubdir): Depend on
33845         $(inst_includedir)/$(lib-names-h-abi).
33846         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33847         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
33848         [$(build-shared) = yes && $(soversions.mk-done) = t]
33849         ($(common-objpfx)$(lib-names-h-abi)): New rule.
33850         [$(build-shared) = yes && $(soversions.mk-done) = t]
33851         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
33852         [$(build-shared) = yes && $(soversions.mk-done) = t]
33853         (common-generated): Append $(lib-names-h-abi) and
33854         $(lib-names-stmp-abi).
33855         * scripts/lib-names.awk: Do not handle multi being set.
33856         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
33857         Remove variable.
33858         (abi-lp64_be-ld-soname): Likewise.
33859         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
33860         Likewise.
33861         (abi-hard-ld-soname): Likewise.
33862         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
33863         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
33864         Remove variable.
33865         (abi-o32_hard-ld-soname): Likewise.
33866         (abi-o32_soft_2008-ld-soname): Likewise.
33867         (abi-o32_hard_2008-ld-soname): Likewise.
33868         (abi-n32_soft-ld-soname): Likewise.
33869         (abi-n32_hard-ld-soname): Likewise.
33870         (abi-n32_soft_2008-ld-soname): Likewise.
33871         (abi-n32_hard_2008-ld-soname): Likewise.
33872         (abi-n64_soft-ld-soname): Likewise.
33873         (abi-n64_hard-ld-soname): Likewise.
33874         (abi-n64_soft_2008-ld-soname): Likewise.
33875         (abi-n64_hard_2008-ld-soname): Likewise.
33876         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
33877         Likewise.
33878         (abi-64-v2-ld-soname): Likewise.
33879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
33880         ld.so entries.
33881         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
33882         variable.
33883         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
33884         entry.
33885         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
33886         variable.
33887         (abi-64-ld-soname): Likewise.
33888         (abi-x32-ld-soname): Likewise.
33889         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
33890         entry.
33891         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33892
33893 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
33894
33895         [BZ #14138]
33896         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
33897         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
33898         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
33899         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
33900         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
33901         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
33902         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
33903         syscall entry for GLIBC_2.2 symbol version.
33904         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
33905         Likewise.
33906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
33907         (setrlimit): Likewise.
33908         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
33909         Likewise.
33910
33911 2014-09-23  Will Newton  <will.newton@linaro.org>
33912
33913         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
33914         _LINUX_ARM_SYSDEP_H include guard too.
33915         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
33916         define.
33917
33918 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
33919
33920         * sysdeps/unix/sysv/linux/eventfd.c:
33921         Make first argument unsigned.
33922         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
33923         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
33924
33925 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
33926
33927         [BZ #16852]
33928         * socket/recvmmsg.c (recvmmsg): Drop const argument.
33929         * socket/sys/socket.h: Likewise.
33930         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
33931
33932 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33933
33934         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
33935
33936 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
33937
33938         * time/tst-ftime.c: New test.
33939         * time/Makefile (tests): Add tst-ftime.
33940
33941 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
33942
33943         * soft-fp/extended.h: Fix comment formatting.
33944         * soft-fp/op-1.h: Likewise.
33945         * soft-fp/op-2.h: Likewise.
33946         * soft-fp/op-4.h: Likewise.
33947         * soft-fp/op-8.h: Likewise.
33948         * soft-fp/op-common.h: Likewise.
33949         * soft-fp/soft-fp.h: Likewise.
33950
33951         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
33952
33953 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
33954
33955         [BZ #6652]
33956         * Makeconfig (soversions-default-setname): Remove variable.
33957         ($(common-objpfx)soversions.i): Don't pass default_setname to
33958         soversions.awk.
33959         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
33960         oldest_abi to abi-versions.awk.
33961         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
33962         * config.make.in (oldest-abi): Remove variable.
33963         * configure.ac (--enable-oldest-abi): Remove configure option.
33964         * configure: Regenerated.
33965         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
33966         text.
33967         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
33968         * scripts/soversions.awk: Do not handle default_setname variable.
33969         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
33970         variable.
33971         * sysdeps/mach/hurd/configure: Regenerated.
33972         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
33973         variable.
33974         * sysdeps/unix/sysv/linux/configure: Regenerated.
33975
33976 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33977
33978         * elf/Makefile (CFLAGS-interp.c): Remove.
33979         ($(elf-objpfx)runtime-linker.h): Generate header with linker
33980         path string.
33981         * elf/interp.c: Include generated runtime-linker.h
33982
33983         * Makerules (lib%.so): Don't include $(+interp) in
33984         prerequisites.
33985         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
33986         * dlfcn/eval.c: Remove file.
33987
33988         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
33989         macros.
33990
33991         [BZ #17266]
33992         * misc/sys/cdefs.h: Define __extern_always_inline for clang
33993         4.2 and newer.
33994
33995         [BZ #17370]
33996         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
33997
33998 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33999             Jakub Jelinek  <jakub@redhat.com>
34000
34001         [BZ #17266]
34002         * libio/stdio.h: Check definition of __fortify_function
34003         instead of __extern_always_inline to include bits/stdio2.h.
34004         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
34005         check if __extern_always_inline is defined.
34006         [__USE_MISC || __USE_XOPEN]: Likewise.
34007         [__USE_ISOC99] Likewise.
34008         * misc/sys/cdefs.h (__fortify_function): Define only if
34009         __extern_always_inline is defined.
34010         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
34011         __extern_always_inline and __extern_inline only for g++-4.3
34012         and newer or a compatible gcc.
34013
34014 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
34015
34016         [BZ #17371]
34017         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
34018         last change to handle zero prefix length.
34019
34020 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34021
34022         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
34023         _SC_REGEX_VERSION.
34024
34025         * posix/getconf.c (vars): Add _POSIX_IPV6 and
34026         _POSIX_RAW_SOCKETS.
34027
34028 2014-09-13  Allan McRae  <allan@archlinux.org>
34029
34030         * po/ru.po: Update Russian translation from translation project.
34031
34032 2014-09-12  Roland McGrath  <roland@hack.frob.com>
34033
34034         * locale/programs/locale.c (show_locale_vars): Inline local function
34035         into its sole call site.  Clean up some style nits.
34036         (print_item): New function, broken out of ...
34037         (show_info): ... local function here.  Clean up style nits.
34038
34039         * locale/programs/ld-ctype.c (set_one_default): New function, broken
34040         out of ...
34041         (set_class_defaults): ... local function set_default here.
34042         Define set_default as a macro locally to pass constant parameters.
34043         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
34044         rather than a shared local.
34045
34046         * stdlib/rpmatch.c (try): New function, broken out of ...
34047         (rpmatch): ... local function here.  Also, prototypify definition.
34048
34049 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
34050
34051         * scripts/soversions.awk: Do not handle configuration names.
34052         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
34053         vendor and os variables to soversions.awk.
34054         * configure.ac: Do not modify gnu-* host_os.
34055         * configure: Regenerated
34056         * shlib-versions: Remove first column with configuration names.
34057         * nptl/shlib-versions: Likewise.
34058         * nptl_db/shlib-versions: Likewise.
34059         * sysdeps/hppa/shlib-versions: Likewise.
34060         * sysdeps/m68k/shlib-versions: Likewise.
34061         * sysdeps/mach/hurd/shlib-versions: Likewise.
34062         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
34063         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
34064         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
34065         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
34066         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
34067         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
34068         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
34069         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
34070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
34071         Likewise.
34072         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
34073         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
34074         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
34075         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
34076         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
34077         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
34078         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
34079         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
34080
34081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34082         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
34083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
34084         Regenerated.
34085         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
34086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
34087         Condition symbol version definitions on [HAVE_ELFV2_ABI].
34088
34089         * shlib-versions: Remove OS-specific entries.  Moved to files in
34090         sysdeps.
34091         * sysdeps/mach/hurd/shlib-versions: New file.
34092         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
34093
34094         * nptl/shlib-versions: Remove architecture-specific entries.
34095         Moved to files in sysdeps.
34096         * shlib-versions: Likewise.
34097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
34098         file.
34099         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
34100         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
34101         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
34102         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
34103
34104         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
34105         (UDP_NO_CHECK6_RX): Likewise.
34106
34107 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
34108
34109         * sysdeps/posix/sysconf.c (__sysconf): Spell
34110         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
34111
34112 2014-08-12  Florian Weimer  <fweimer@redhat.com>
34113
34114         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
34115         loading.
34116         * iconv/Versions (__gconv_transliterate): Export for use from
34117         gconv modules.
34118         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
34119         (struct __gconv_trans_data, __gconv_trans_fct,
34120         __gconv_trans_context_fct, __gconv_trans_query_fct,
34121         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
34122         definitions.
34123         (struct __gconv_step_data): Remove __trans member.
34124         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
34125         longer hidden.  Remove unused trans_data argument.
34126         * iconv/gconv_int.h (struct trans_struct): Remove definition.
34127         (__gconv_translit_find): Remove declaration.
34128         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
34129         prototype.
34130         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
34131         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
34132         trans_data argument.  Add hidden definition.
34133         (__gconv_translit_find): Remove.
34134         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
34135         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
34136         * iconv/skeleton.c: Remove transliteration initialization.
34137         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
34138         __gconv_step_data initialization.
34139         * libio/iofwide.c (__libio_translit_): Remove.
34140         (_IO_fwide): Adjust struct __gconv_step_data initialization.
34141         * wcsmbs/btowc.c (__btowc): Likewise.
34142         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
34143         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
34144         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
34145         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
34146         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
34147         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
34148         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
34149         * wcsmbs/wctob.c (wctob): Likewise.
34150
34151 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
34152
34153         [BZ #16194]
34154         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
34155         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
34156         register usage.
34157         * sysdeps/x86/Makefile: Adjust.
34158
34159 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
34160             Roland McGrath  <roland@hack.frob.com>
34161
34162         * locale/weight.h: Add include guard.
34163         (findidx): Make static rather than auto; take new parameters
34164         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
34165         * locale/weightwc.h: Likewise.
34166         * posix/fnmatch_loop.c
34167         (FCT): Change type of EXTRA from int32_t to wint_t.
34168         Don't include either header inside the function.
34169         Call FINDIDX rather than findidx, and pass new arguments.
34170         #undef FINDIDX at the end of the file.
34171         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
34172         FINDIDX before including fnmatch_loop.c for the non-wide version.
34173         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
34174         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
34175         for the wide version.
34176         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
34177         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
34178         Pass new arguments to findidx.
34179         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
34180         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
34181         Don't #include it inside the function.  Pass new arguments to findidx.
34182         * posix/regex_internal.h
34183         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
34184         (re_string_elem_size_at): Don't #include it inside the function.
34185         Pass new arguments to findidx.
34186         * string/strcoll_l.c: #include WEIGHT_H at top level.
34187         (get_next_seq): Don't #include it inside the function.
34188         Pass new arguments to findidx.
34189         (get_next_seq_nocache): Likewise.
34190         * string/strxfrm_l.c: #include WEIGHT_H at top level.
34191         (STRXFRM): Don't #include it inside the function.
34192         Pass new arguments to findidx.
34193
34194 2014-09-11  Florian Weimer  <fweimer@redhat.com>
34195
34196         [BZ #17344]
34197         * malloc/malloc.c (unlink): Turn asserts into a call to
34198         malloc_printerr.
34199
34200 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
34201
34202         [BZ #17370]
34203         * libio/wfileops (do_ftell_wide): Free OUT.
34204
34205 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
34206
34207         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
34208
34209 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34210
34211         [BZ #17363]
34212         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
34213         group if the current group is empty.
34214
34215 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34216
34217         * benchtests/bench-memset.c (test_main): Add more test from size
34218         from 32 to 512 bytes.
34219         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34220         Add POWER8 memset object.
34221         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34222         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
34223         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
34224         implementation.
34225         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
34226         Likewise.
34227         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
34228         multiarch POWER8 memset optimization.
34229         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
34230         POWER8 memset optimization.
34231
34232         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34233         Remove bzero multiarch objects.
34234         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
34235         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
34236         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
34237         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
34238         Remove define.
34239         [__bzero]: Redefine to specific name.
34240         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
34241         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
34242         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
34243         define.
34244         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
34245         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
34246
34247 2014-09-10  Florian Weimer  <fweimer@redhat.com>
34248
34249         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
34250         warnings into errors.
34251
34252         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
34253         __cxa_thread_atexit_impl prototype.
34254
34255 2014-09-09  Steve Ellcey  <sellcey@mips.com>
34256
34257         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
34258         Fix capitalization of error message.
34259
34260 2014-09-09  Steve Ellcey  <sellcey@mips.com>
34261
34262         * sysdeps/mips/preconfigure: Modify ABI tests.
34263
34264 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
34265
34266         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
34267
34268 2014-09-07  Roland McGrath  <roland@hack.frob.com>
34269             Carlos O'Donell  <carlos@systemhalted.org>
34270
34271         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
34272         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
34273         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
34274         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
34275         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
34276         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
34277         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
34278         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
34279         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
34280         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
34281         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
34282         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
34283         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
34284         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
34285         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
34286         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
34287         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
34288         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
34289         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
34290         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
34291         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
34292         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
34293         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
34294         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
34295         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
34296         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
34297         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
34298         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
34299         Deconditionalize the code that was previously under [RESET_PID].
34300         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
34301         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
34302         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
34303         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
34304         include sysdep.h.
34305
34306 2014-09-08  Allan McRae  <allan@archlinux.org>
34307
34308         * version.h (RELEASE): Set to "development".
34309         (VERSION): Set to "2.20.90"
34310
34311 2014-09-07  Allan McRae  <allan@archlinux.org
34312
34313         * version.h (RELEASE): Set to "stable".
34314         (VERSION): Set to "2.20"
34315         * include/features.h (__GLIBC_MINOR__): Set to 20.
34316
34317         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
34318         Liebler.
34319
34320         * po/ko.po: Update Korean translation from translation project.
34321
34322 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
34323
34324         [BZ #17354]
34325         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
34326         macro for handling signed relocations.
34327
34328 2014-09-03  Florian Weimer  <fweimer@redhat.com>
34329
34330         [BZ #17325]
34331         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
34332         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
34333         assert.
34334         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
34335         * iconvdata/ibm935.c (BODY): Likewise.
34336         * iconvdata/ibm937.c (BODY): Likewise.
34337         * iconvdata/ibm939.c (BODY): Likewise.
34338         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
34339         assert.
34340         * iconvdata/Makefile (iconv-test.out): Pass module list to test
34341         script.
34342         * iconvdata/run-iconv-test.sh: New test loop for checking for
34343         decoder crashers.
34344
34345 2014-09-02  Khem Raj  <raj.khem@gmail.com>
34346
34347         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
34348         libm_hidden_ver.
34349
34350 2014-09-01  Allan McRae  <allan@archlinux.org>
34351
34352         * po/eo.po: Update Esperanto translation from translation project.
34353
34354         * po/ca.po: Update Catalan translation from translation project.
34355
34356 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34357
34358         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
34359         __proc_dostop call.
34360
34361 2014-08-27  Mark Wielaard  <mjw@redhat.com>
34362
34363         [BZ #17319]
34364         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
34365         to call set_thread_area instead of hand written asm.
34366         (__NR_set_thread_area): Removed define.
34367         (TLS_FLAG_WRITABLE): Likewise.
34368         (__ASSUME_SET_THREAD_AREA): Remove check.
34369         (TLS_EBX_ARG): Remove define.
34370         (TLS_LOAD_EBX): Likewise.
34371
34372 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34373
34374         Simplify atomicity of socket creation in bind.
34375
34376         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
34377         looking up the name after linking the file.
34378
34379 2014-08-27  Allan McRae  <allan@archlinux.org>
34380
34381         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
34382
34383 2014-08-26  Florian Weimer  <fweimer@redhat.com>
34384
34385         [BZ #17187]
34386         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
34387         trans_compare, open_translit, __gconv_translit_find):
34388         Remove module loading code.
34389
34390 2014-08-26  Allan McRae  <allan@archlinux.org>
34391
34392         * po/vi.po: Update Vietnamese translation from translation project.
34393
34394         * po/uk.po: Update Ukrainian translation from translation project.
34395
34396         * po/fr.po: Update French translation from translation project.
34397
34398         * po/ru.po: Update Russian translation from translation project.
34399
34400         * po/pl.po: Update Polish translation from translation project.
34401
34402         * po/cs.po: Update Czech translation from translation project.
34403
34404         * po/de.po: Update German translation from translation project.
34405
34406         * po/bg.po: Update Bulgarian translation from translation project.
34407
34408         * po/sv.po: Update Sweedish translation from translation project.
34409
34410         * po/nl.po: Update Dutch translation from translation project.
34411
34412         * po/es.po: Update Spanish translation from translation project.
34413
34414 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34415
34416         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
34417
34418         * catgets/Makefile (CPPFLAGS-gencat): Remove.
34419         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
34420         (CPPFLAGS-iconvconfig): Likewise.
34421         * timezone/Makefile (CPPFLAGS-zic): Likewise.
34422
34423         * include/libc-symbols.h: Remove unnecessary check for
34424         NOT_IN_libc.
34425         * nptl/pthreadP.h: Likewise.
34426         * sysdeps/aarch64/setjmp.S: Likewise.
34427         * sysdeps/alpha/setjmp.S: Likewise.
34428         * sysdeps/arm/sysdep.h: Likewise.
34429         * sysdeps/i386/setjmp.S: Likewise.
34430         * sysdeps/m68k/setjmp.c: Likewise.
34431         * sysdeps/posix/getcwd.c: Likewise.
34432         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
34433         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
34434         * sysdeps/s390/s390-32/setjmp.S: Likewise.
34435         * sysdeps/s390/s390-64/setjmp.S: Likewise.
34436         * sysdeps/sh/sh3/setjmp.S: Likewise.
34437         * sysdeps/sh/sh4/setjmp.S: Likewise.
34438         * sysdeps/unix/alpha/sysdep.h: Likewise.
34439         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
34440         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
34441         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
34442         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
34443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
34444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
34445         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
34446         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
34447         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
34448         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
34449         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34450         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
34451         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
34452         * sysdeps/x86_64/setjmp.S: Likewise.
34453
34454 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
34455
34456         [BZ #17263]
34457         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
34458         <stdint.h>.
34459         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
34460         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
34461
34462 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
34463
34464         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
34465
34466         [BZ #17262]
34467         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
34468         and __x86_64__ when disabling x87 inline functions.
34469
34470 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
34471
34472         [BZ #17259]
34473         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
34474         asm statement with __cpuid_count.
34475
34476 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
34477
34478         * configure.ac: Change __ehdr_start code to dereference the struct.
34479         Run readelf on the output to look for relocations.
34480         * configure: Regenerated.
34481
34482 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
34483
34484         [BZ #17261]
34485         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
34486         value to 0.
34487         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
34488
34489 2014-08-12  Roland McGrath  <roland@hack.frob.com>
34490
34491         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
34492
34493 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
34494
34495         [BZ #16892]
34496         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
34497         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
34498
34499 2014-08-12  Sean Anderson  <seanga2@gmail.com>
34500
34501         * malloc/malloc.c: Fix typo in comment.
34502
34503 2014-08-09  Allan McRae  <allan@archlinux.org>
34504
34505         * Regenerate libc.po.
34506
34507 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
34508
34509         * intl/tst-gettext2.sh: Check every lang file for creation.
34510
34511 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
34512
34513         * sysdeps/aarch64/fpu/math_private.h
34514         (libc_feholdsetround_noex_aarch64_ctx): New function.
34515
34516 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
34517
34518         * sysdeps/arm/armv6/strcpy.S (strcpy):
34519         Fix performance issue in misaligned cases.
34520
34521 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34522
34523         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
34524         Move definition from termios.h.
34525         (struct termio): Likewise.
34526         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
34527         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
34528         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
34529         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
34530         Likewise.
34531         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
34532         Move definition to ioctl-types.h
34533         (struct termio): Likewise.
34534         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
34535         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
34536         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
34537         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
34538         Likewise.
34539
34540 2014-08-05  Richard Henderson  <rth@redhat.com>
34541
34542         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
34543         exceptions.
34544         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
34545         Add fraiseexcpt.
34546         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
34547         Use __feraiseexcept.
34548         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
34549         Protect libm symbols with IS_IN_libm.
34550
34551         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
34552
34553 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
34554
34555         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
34556
34557 2014-08-04  Will Newton  <will.newton@linaro.org>
34558
34559         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
34560         file.
34561
34562 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
34563
34564         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
34565         variants for each function.
34566
34567 2014-08-04  Roland McGrath  <roland@hack.frob.com>
34568
34569         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
34570         appended ...
34571         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
34572         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
34573         appended ...
34574         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
34575         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
34576         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
34577         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
34578         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
34579         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
34580         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
34581         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
34582         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
34583         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
34584         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
34585         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
34586         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
34587         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
34588         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
34589         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
34590         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
34591         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
34592         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
34593         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
34594         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
34595         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
34596         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
34597         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
34598         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
34599         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
34600         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
34601         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
34602         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
34603         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
34604         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
34605         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
34606         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
34607         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
34608         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
34609         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
34610         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
34611         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
34612         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
34613         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
34614         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
34615         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
34616         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
34617         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
34618         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
34619         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
34620         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
34621         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
34622         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
34623         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
34624         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
34625         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
34626         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
34627         Update #include.
34628         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
34629         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
34630
34631 2014-08-04  Roland McGrath  <roland@hack.frob.com>
34632
34633         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
34634         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
34635         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
34636         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
34637         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
34638         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
34639
34640 2014-08-04  Roland McGrath  <roland@hack.frob.com>
34641
34642         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
34643         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
34644         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
34645         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
34646
34647 2014-08-04  Roland McGrath  <roland@hack.frob.com>
34648
34649         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
34650         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
34651         (__libc_vfork): Define function under this name.
34652         (__vfork): Define as an alias.
34653         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
34654         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
34655
34656 2014-08-04  Roland McGrath  <roland@hack.frob.com>
34657
34658         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
34659         that was previously under [RESET_PID].
34660         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
34661
34662 2014-08-04  Andreas Schwab  <schwab@suse.de>
34663
34664         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
34665
34666 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
34667
34668         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
34669         (main): Likewise.
34670
34671 2014-08-01  Roland McGrath  <roland@hack.frob.com>
34672
34673         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
34674
34675 2014-08-01  Richard Henderon  <rth@redhat.com>
34676
34677         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
34678         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
34679         typo in exact zero test.
34680         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
34681         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
34682         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
34683
34684 2014-08-01  Roland McGrath  <roland@hack.frob.com>
34685
34686         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
34687         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
34688         * sysdeps/arm/sysdep.h: ... here.
34689         [!__ASSEMBLER__]: Include <stdint.h>.
34690
34691 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
34692
34693         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
34694         (HAVE_WCTYPE_H): Likewise.
34695         (HAVE_ISWCTYPE): Likewise.
34696         (ENABLE_NLS): Likewise.
34697         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
34698         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
34699
34700         * posix/regex_internal.c: Check if DEBUG is defined and is
34701         set.
34702
34703         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
34704         (HAVE_MBSRTOWCS): Likewise.
34705         * posix/fnmatch.c: Include string.h unconditionally.
34706
34707 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
34708
34709         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
34710         reversal.
34711
34712 2014-07-31  Roland McGrath  <roland@hack.frob.com>
34713
34714         * sysdeps/generic/safe-fatal.h: New file.
34715         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
34716         * nptl/forward.c: Include it.
34717         (__pthread_unwind): Use __safe_fatal as default action, rather
34718         than a bogus use of INTERNAL_SYSCALL that could never work.
34719
34720         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
34721         * configure.ac (libc_cv_builtin_trap): New test.
34722         * configure: Regenerated.
34723         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
34724         (ABORT_INSTRUCTION): Define using __builtin_trap.
34725
34726         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
34727         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
34728         * sysdeps/nptl/nptl-signals.h: New file.
34729         * nptl/pthreadP.h: Include <nptl-signals.h>.
34730
34731 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
34732
34733         * sysdeps/s390/s390-64/utf16-utf32-z9.c
34734         (ONE_DIRECTION): Define.
34735         * sysdeps/s390/s390-64/utf8-utf16-z9.c
34736         (ONE_DIRECTION): Define.
34737         * sysdeps/s390/s390-64/utf8-utf32-z9.c
34738         (ONE_DIRECTION): Define.
34739
34740 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
34741
34742         * sysdeps/s390/Makefile: Delete file.
34743         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
34744         * sysdeps/s390/__longjmp.c: Delete file.
34745         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
34746         Remove fields __flags and __reserved.
34747         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
34748         and add versioning.
34749         * sysdeps/s390/rtld-__longjmp.c: Delete file.
34750         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
34751         * sysdeps/s390/rtld-setjmp.S: Likewise.
34752         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
34753         * sysdeps/s390/s390-32/__longjmp.c: ... here.
34754         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
34755         * sysdeps/s390/s390-32/setjmp.S: ... here.
34756         Add versioning.
34757         (__sigsetjmp): Remove setting __flags field.
34758         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
34759         * sysdeps/s390/s390-64/__longjmp.c: ... here.
34760         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
34761         * sysdeps/s390/s390-64/setjmp.S: ... here.
34762         Add versioning.
34763         (__sigsetjmp): Remove setting __flags field.
34764         * sysdeps/s390/setjmp.S: Delete file.
34765         * sysdeps/s390/sigjmp.c: Likewise.
34766         * sysdeps/s390/v1-longjmp.c: Likewise.
34767         * sysdeps/s390/v1-setjmp.h: Likewise.
34768         * sysdeps/s390/v1-sigjmp.c: Likewise.
34769         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
34770         Remove v1-longjmp_chk.
34771         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
34772         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
34773         Include debug/longjmp_chk.c and add versioning.
34774         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
34775         Include nptl/pt-longjmp.c and add versioning.
34776         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
34777         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
34778         Include __longjmp.c.
34779         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
34780         Move to ...
34781         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
34782         (__getcontext): Remove setting __flags field.
34783         Add versioning.
34784         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
34785         Don't restore upper high grps.
34786         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
34787         Likewise.
34788         (__swapcontext): Remove setting uc_flags field.
34789         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
34790         Delete file.
34791         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
34792         Include __longjmp.c.
34793         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
34794         Move to ...
34795         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
34796         (__getcontext): Remove setting __flags field.
34797         Add versioning.
34798         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
34799         (__swapcontext): Remove setting uc_flags field.
34800         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
34801         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
34802         Remove fields uc_high_gprs and __reserved.
34803         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
34804         New file with reverted content.
34805         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
34806         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
34807         Regenerated.
34808         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
34809         Regenerated.
34810
34811 2014-07-31  Andreas Schwab  <schwab@suse.de>
34812
34813         * config.h.in (HAVE_IFUNC): Define to 0.
34814         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
34815         definedness.
34816
34817 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
34818
34819         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34820         memmove-avx-unaligned, memcpy-avx-unaligned and
34821         mempcpy-avx-unaligned.
34822         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
34823         Add tests for AVX memcpy functions.
34824         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
34825         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
34826         memcpy_chk.
34827         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
34828         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
34829         memmove_chk.
34830         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
34831         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
34832         mempcpy_chk.
34833         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
34834         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
34835         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
34836
34837 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34838
34839         [BZ #17213]
34840         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
34841         powerpc64le.
34842
34843 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
34844
34845         [BZ #16839]
34846         * manual/llio.texi: Add section about open file description locks.
34847         * manual/examples/ofdlocks.c: Example of open file description
34848         lock usage.
34849         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
34850         F_OFD_SETLK, and F_OFD_SETLKW.
34851
34852 2014-07-23  Allan McRae  <allan@archlinux.org>
34853
34854         * po/es.po: Update Spanish translation from translation project.
34855
34856 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
34857
34858         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
34859
34860 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
34861
34862         [BZ #17078]
34863         * sysdeps/arm/dl-machine.h (elf_machine_rela)
34864         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
34865         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
34866
34867 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
34868
34869         [BZ #17088]
34870         * math/fesetenv.c (__fesetenv)
34871         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
34872         * math/feupdateenv.c (__feupdateenv)
34873         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
34874
34875         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
34876         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
34877         (__ASSUME_SOCKETCALL): Do not define.
34878
34879         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
34880         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
34881         (__ASSUME_SOCKETCALL): Do not define.
34882         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
34883         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34884         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34885         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34886         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34887         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
34888         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34889         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34890
34891         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
34892         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
34893         (__ASSUME_SOCKETCALL): Do not define.
34894         (__ASSUME_IPC64): Define unconditionally.
34895         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34896         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34897         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34898         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34899         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
34900         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34901         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
34902         Likewise.
34903
34904         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
34905         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
34906         (__ASSUME_SOCKETCALL): Do not define.
34907         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
34908         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34909         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34910         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
34911         (__ASSUME_REQUEUE_PI): Define unconditionally.
34912         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
34913         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
34914         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34915         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
34916         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34917         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34918
34919         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
34920         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
34921         (__ASSUME_SOCKETCALL): Do not define.
34922         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
34923         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34924         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34925         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
34926         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34927         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34928
34929         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
34930         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
34931         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34932         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
34933         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34934         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
34935         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34936         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
34937         (__ASSUME_GETCPU_SYSCALL): Likewise.
34938
34939         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
34940         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
34941         cases for individual architectures.
34942         * sysdeps/gnu/configure: Regenerated.
34943         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
34944         LIBC_SLIBDIR_RTLDDIR.
34945         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
34946         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
34947         LIBC_SLIBDIR_RTLDDIR.
34948         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
34949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
34950         LIBC_SLIBDIR_RTLDDIR.
34951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
34952         Regenerated.
34953         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
34954         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
34955         file.
34956         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
34957         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
34958         file.
34959         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
34960         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
34961         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
34962         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
34963
34964         * sysdeps/aarch64/shlib-versions: Move to ...
34965         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
34966         * sysdeps/alpha/shlib-versions: Move to ...
34967         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
34968         * sysdeps/arm/shlib-versions: Move to ...
34969         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
34970         * sysdeps/hppa/shlib-versions: Move all contents except for
34971         libgcc_s entry to ...
34972         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
34973         entry from ...
34974         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
34975         * sysdeps/ia64/shlib-versions: Move to ...
34976         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
34977         entry from ...
34978         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
34979         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
34980         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
34981         * sysdeps/microblaze/shlib-versions: Move to ...
34982         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
34983         * sysdeps/mips/shlib-versions: Move to ...
34984         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
34985         entry from ...
34986         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
34987         * sysdeps/tile/shlib-versions: Move to ...
34988         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
34989         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
34990         from ...
34991         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
34992         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
34993         entry from ...
34994         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
34995
34996 2014-07-17  Will Newton  <will.newton@linaro.org>
34997
34998         * sysdeps/arm/bits/atomic.h
34999         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
35000         (__arch_compare_and_exchange_bool_16_int): Likewise.
35001         (__arch_compare_and_exchange_bool_64_int): Likewise.
35002
35003         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
35004         into an #else block.
35005
35006 2014-07-16  Roland McGrath  <roland@hack.frob.com>
35007
35008         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
35009         just Linux configurations.  Test empirically that the compiler sets
35010         __ARM_EABI__, rather than using the tuple to decide.
35011         * sysdeps/arm/preconfigure: Regenerated.
35012         * sysdeps/unix/sysv/linux/arm/configure: File removed.
35013         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
35014         contents appended ...
35015         * sysdeps/arm/configure.ac: ... here.
35016         * sysdeps/arm/configure: Regenerated.
35017
35018 2014-07-15  Roland McGrath  <roland@hack.frob.com>
35019
35020         * nptl/pthread_kill.c: New file.
35021         * nptl/pthread_sigmask.c: New file.
35022         * nptl/pthread_sigqueue.c: New file.
35023
35024         * sysdeps/nptl/lowlevellock.h: New file.
35025         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
35026         * sysdeps/nptl/lowlevellock-futex.h: New file.
35027
35028         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
35029         Remove dead declarations.
35030
35031 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
35032
35033         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
35034         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
35035         config-cflags-avx2.
35036         * sysdeps/x86_64/configure.ac: Likewise.
35037         * sysdeps/i386/configure: Regenerated.
35038         * sysdeps/x86_64/configure: Likewise.
35039         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35040         memset-avx2 only if config-cflags-avx2 is yes.
35041         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
35042         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
35043         defined.
35044         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
35045         only if HAVE_AVX2_SUPPORT is defined.
35046         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
35047
35048 2014-07-14  Alan Modra  <amodra@gmail.com>
35049
35050         [BZ #17153]
35051         * elf/elf.h (DT_PPC64_NUM): Correct value.
35052         * NEWS: Add to fixed bug list.
35053
35054 2014-07-13  Jim Meyering  <meyering@fb.com>
35055
35056         [BZ 17150]
35057         regex: don't deref NULL upon heap allocation failure
35058         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
35059         failure in one more place.
35060         To trigger the segfault, configure grep -with-included-regex,
35061         build it, and run these commands:
35062         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
35063
35064 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
35065
35066         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
35067
35068 2014-07-11  Richard Henderson  <rth@redhat.com>
35069
35070         * sysdeps/aarch64/libm-test-ulps: Update.
35071
35072 2014-07-10  Florian Weimer  <fweimer@redhat.com>
35073
35074         [BZ #17135]
35075         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
35076         * nptl/allocatestack.c (__nptl_setxid_error): New function.
35077         (__nptl_setxid): Initialize error member.  Call
35078         __nptl_setxid_error.
35079         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
35080         * nptl/descr.h (struct xid_command): Add error member.
35081         * nptl/tst-setuid3.c: New file.
35082         * nptl/Makefile (tests): Add it.
35083
35084 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35085
35086         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
35087         New define.
35088         (__lll_trylock): Use __lll_base_trylock.
35089         (__lll_cond_trylock): Likewise.
35090
35091 2014-07-10  Roland McGrath  <roland@hack.frob.com>
35092
35093         * nptl/pthread_create.c (start_thread): Use atomic_or and
35094         lll_futex_wake directly rather than lll_robust_dead.
35095         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
35096         (lll_robust_dead): Macro removed.
35097         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
35098         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
35099         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
35100         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
35101         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
35102         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
35103         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
35104         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
35105         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
35106         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
35107         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
35108         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
35109         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
35110         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
35111         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
35112
35113         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
35114         Use atomic_compare_and_exchange_val_acq directly rather than
35115         lll_robust_trylock.
35116         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
35117         (__lll_robust_trylock, lll_robust_trylock): Removed.
35118         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
35119         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
35120         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
35121         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
35122         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
35123         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
35124         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
35125         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
35126         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
35127         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
35128         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
35129         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
35130         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
35131         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
35132
35133 2014-07-02  Florian Weimer  <fweimer@redhat.com>
35134
35135         * manual/locale.texi (Locale Names): New section documenting
35136         locale name syntax.  Adjust menu and node chaining accordingly.
35137         (Choosing Locale): Reference Locale Names, Locale Categories.
35138         Mention setting LC_ALL=C.  Reflect that name syntax is now
35139         documented.
35140         (Locale Categories): New section title.  Reference Locale Names.
35141         LC_ALL is an environment variable, but not a category.
35142         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
35143         description, now in Locale Name.  Reference that section.  Locale
35144         name syntax is now documented.
35145
35146 2014-07-02  Florian Weimer  <fweimer@redhat.com>
35147
35148         [BZ #17137]
35149         * locale/findlocale.c (name_present, valid_locale_name): New
35150         functions.
35151         (_nl_find_locale): Use the loc_name variable to store name
35152         candidates.  Call name_present and valid_locale_name to check and
35153         validate locale names.  Return an error if the locale is invalid.
35154
35155 2014-07-02  Florian Weimer  <fweimer@redhat.com>
35156
35157         * locale/setlocale.c (setlocale): Use strdup for allocating
35158         composite name copy.
35159
35160 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35161
35162         Sync up with gnulib.
35163         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
35164         [!_LIBC && ENABLE_NLS]: Include gettext.h.
35165         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
35166         and _GL_ARG_NONNULL.
35167         [USE_UNLOCKED_IO]: Include unlocked-io.h.
35168         [!_LIBC]: Include code for Windows and Cygwin.
35169         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
35170         Include prototype for int strerror_r.
35171         [!_LIBC] (is_open): New function.
35172         (flush_stdout): New function.
35173         (print_errno_message): Use it.
35174         (error): Likewise.
35175         (error_at_line): Likewise.
35176         (error_tail) Add function attribute macros.  Use
35177         __builtin_expect.
35178
35179         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
35180
35181         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
35182
35183         * io/ftw.c: Include sys/param.h unconditionally.
35184
35185         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
35186
35187         [BZ #17125]
35188         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
35189         libc_freeres_ptr.
35190         (freecache): New function to free CACHE on exit.
35191
35192         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
35193         initialization.
35194
35195 2014-07-09  David S. Miller  <davem@davemloft.net>
35196
35197         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35198
35199         * sysdeps/sparc/nptl/internaltypes.h: Delete.
35200         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
35201         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
35202         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
35203         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
35204         * sysdeps/sparc/nptl/sem_init.c: Likewise.
35205         * sysdeps/sparc/nptl/sem_post.c: Likewise.
35206         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
35207         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
35208         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
35209         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
35210         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
35211         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
35212
35213 2014-07-09  Andreas Schwab  <schwab@suse.de>
35214
35215         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
35216         output.
35217         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
35218         (do_test): Likewise.
35219
35220         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
35221
35222 2014-07-09  Will Newton  <will.newton@linaro.org>
35223
35224         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
35225         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
35226         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35227         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35228         * sysdeps/hppa/start.S (_start): Likewise.
35229
35230 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
35231
35232         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
35233
35234         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
35235         defined.
35236
35237 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
35238
35239         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
35240         after checking that it is non-NULL.
35241
35242         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
35243
35244 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35245
35246         * sysdeps/powerpc/memmove.c: Remove file.
35247         * sysdeps/powerpc/powerpc32/power4/memcopy.h
35248         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
35249         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
35250         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
35251         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
35252         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
35253         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
35254         string memmove instead of removed powerpc one.
35255
35256         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
35257         [weak_alias]: Fix compiler warning due trailing data.
35258         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
35259         [weak_alias]: Likewise.
35260         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
35261         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
35262
35263         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
35264         (__libc_ifunc_impl_list): Add memmove functions.
35265
35266 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
35267
35268         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
35269         Remove code.
35270         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
35271         Likewise.
35272         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
35273         Likewise.
35274         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
35275         Likewise.
35276         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
35277         Likewise.
35278         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
35279         Likewise.
35280         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
35281         Likewise.
35282         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
35283         Likewise.
35284         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
35285         Likewise.
35286         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
35287         Likewise.
35288         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
35289         Likewise.
35290         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
35291         Likewise.
35292         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
35293         Likewise.
35294         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
35295         Likewise.
35296         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
35297         Likewise.
35298         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
35299         Likewise.
35300         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
35301         Likewise.
35302
35303 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35304
35305         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
35306         to avoid alignment traps in non-cacheable memory.
35307         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
35308
35309         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
35310         multiarch objects.
35311         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
35312         file: multiarch power7 memmove.
35313         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
35314         multiarch default memmove.
35315         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
35316         multiarch memove for powerpc32/power4.
35317
35318         * string/bcopy.c: Use full path to include memmove.c.
35319         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
35320         multiarch objects.
35321         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
35322         bcopy for powerpc64.
35323         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
35324         bcopy for powerpc64.
35325         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
35326         and memmove implementations.
35327         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
35328         optimized multiarch memmove for POWER7/powerpc64.
35329         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
35330         default multiarch memmove for powerpc64.
35331         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
35332         multiarch for powerpc64.
35333         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
35334         for POWER7/powerpc64.
35335         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
35336         memmove for POWER7/powerpc64.
35337
35338         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
35339         glibc default one.
35340
35341         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
35342         __ELF_NATIVE_CLASS equal to 64.
35343
35344 2014-07-07  Roland McGrath  <roland@hack.frob.com>
35345
35346         * sysdeps/nptl/lowlevellock.h: File removed.
35347
35348         * NEWS: NPTL is no longer an add-on!
35349         * nptl/internaltypes.h: Moved ...
35350         * sysdeps/nptl/internaltypes.h: ... here.
35351         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
35352         * sysdeps/nptl/fork.c: Likewise.
35353         * sysdeps/nptl/gai_misc.h: Likewise.
35354         * sysdeps/nptl/librt-cancellation.c: Likewise.
35355         * sysdeps/nptl/jmp-unwind.c: Likewise.
35356         * sysdeps/nptl/setxid.h: Likewise.
35357         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
35358         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
35359         * sysdeps/unix/sysv/linux/arm/Implies: New file.
35360         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
35361         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
35362         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
35363         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
35364         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
35365         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
35366         * sysdeps/unix/sysv/linux/mips/Implies: New file.
35367         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
35368         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
35369         * sysdeps/unix/sysv/linux/sh/Implies: New file.
35370         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
35371         * sysdeps/unix/sysv/linux/tile/Implies: New file.
35372         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
35373         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
35374         * nptl/Makeconfig: Moved ...
35375         * sysdeps/nptl/Makeconfig: ... here.
35376         * nptl/configure: File removed.
35377         * nptl/ANNOUNCE: File removed.
35378         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
35379         * sysdeps/unix/sysv/linux/configure: Regenerated.
35380
35381         * nptl/Makefile (routines): Add libc_pthread_init,
35382         libc_multiple_threads, register-atfork and unregister-atfork.
35383         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
35384         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
35385         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
35386         pthread-pi-defines.sym, structsem.sym.
35387         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
35388         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
35389         [$(subdir) = nptl] (tests): Add tst-setgetname.
35390         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
35391         * sysdeps/unix/sysv/linux/sigaction.c: Just include
35392         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
35393         [!LIBC_SIGACTION]: Remove aliases.
35394         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
35395         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
35396         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
35397         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
35398         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
35399         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
35400         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
35401         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
35402         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
35403         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
35404         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
35405         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
35406         __libc_allocate_rtsig_private.
35407         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
35408         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
35409         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
35410         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
35411         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
35412         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
35413         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
35414         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
35415         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
35416         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
35417         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
35418         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
35419         * nptl/internaltypes.h: ... here.
35420         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
35421         * sysdeps/nptl/jmp-unwind.c: ... here.
35422         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
35423         * nptl/libc-lowlevellock.c: ... here.
35424         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
35425         * nptl/libc_multiple_threads.c: ... here.
35426         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
35427         * nptl/libc_pthread_init.c: ... here.
35428         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
35429         * nptl/lowlevelbarrier.sym: ... here.
35430         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
35431         * nptl/lowlevelcond.sym: ... here.
35432         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
35433         * nptl/lowlevellock.c: ... here.
35434         * nptl/lowlevellock.h: Moved ...
35435         * sysdeps/nptl/lowlevellock.h: ... here.
35436         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
35437         * nptl/lowlevelrobustlock.c: ... here.
35438         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
35439         * nptl/lowlevelrobustlock.sym: ... here.
35440         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
35441         * nptl/lowlevelrwlock.sym: ... here.
35442         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
35443         * nptl/pt-fork.c: ... here.
35444         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
35445         * nptl/pthread-pi-defines.sym: ... here.
35446         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
35447         * nptl/pthread_attr_getaffinity.c: ... here.
35448         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
35449         * nptl/pthread_attr_setaffinity.c: ... here.
35450         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
35451         * nptl/pthread_mutex_cond_lock.c: ... here.
35452         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
35453         Update #include.
35454         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
35455         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
35456         * nptl/pthread_once.c: ... here, replacing old file.
35457         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
35458         * nptl/pthread_yield.c: ... here.
35459         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
35460         * nptl/register-atfork.c: ... here.
35461         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
35462         * nptl/sem_post.c: ... here.
35463         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
35464         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
35465         * nptl/sem_timedwait.c: ... here.
35466         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
35467         * nptl/sem_trywait.c: ... here.
35468         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
35469         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
35470         * nptl/sem_wait.c: ... here.
35471         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
35472         * nptl/structsem.sym: ... here.
35473         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
35474         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
35475         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
35476         * nptl/unregister-atfork.c: ... here.
35477         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
35478         * nptl/unwindbuf.sym: ... here.
35479         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
35480         * sysdeps/nptl/fork.c: ... here.
35481         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
35482         * sysdeps/nptl/fork.h: ... here.
35483         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
35484         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
35485         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
35486         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
35487         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
35488         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
35489         * sysdeps/unix/sysv/linux/getpid.c: ... here.
35490         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
35491         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
35492         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
35493         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
35494         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
35495         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
35496         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
35497         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
35498         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
35499         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
35500         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
35501         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
35502         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
35503         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
35504         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
35505         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
35506         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
35507         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
35508         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
35509         * sysdeps/unix/sysv/linux/raise.c: ... here.
35510         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
35511         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
35512         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
35513         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
35514         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
35515         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
35516         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
35517         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
35518         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
35519         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
35520         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
35521         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
35522         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
35523         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
35524         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
35525
35526 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
35527
35528         * sysdeps/generic/memcopy.h: Add comment for
35529         MEMCPY_OK_FOR_FWD_MEMMOVE.
35530
35531 2014-07-04  Will Newton  <will.newton@linaro.org>
35532
35533         * string/memchr.c: Merge from gnulib.
35534         [_LIBC]: Remove conditionals.
35535         (__ptr_t): Remove define.
35536         (LONG_MAX_32_BITS): Likewise.
35537         (LONG_MAX): Likewise.
35538         (MEMCHR): Use ANSI prototype and optimize algorithm.
35539
35540         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
35541
35542 2014-07-03  Roland McGrath  <roland@hack.frob.com>
35543
35544         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
35545         (lll_futex_timed_wait_bitset): Fix syscall argument count.
35546
35547         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
35548         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
35549         in a bare environment with no <stdlib.h> installed.
35550         * sysdeps/nptl/configure: Regenerated.
35551
35552         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
35553
35554         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
35555         AC_EGREP_CPP for kernel header checks, so they only succeed if
35556         including <linux/version.h> actually works right.
35557         * sysdeps/unix/sysv/linux/configure: Regenerated.
35558
35559         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
35560         value so it's not diagnosed as unused.
35561
35562         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
35563         thing) with "ifeq ($(subdir),rt)".
35564
35565 2014-07-03  Richard Henderson  <rth@redhat.com>
35566
35567         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
35568         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
35569         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
35570
35571         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
35572         (math_force_eval): New.
35573
35574         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
35575         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
35576
35577         * sysdeps/alpha/fpu/s_round.c: Remove file.
35578         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
35579
35580         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
35581         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
35582         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
35583         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
35584         (_dl_start, print_statistics): Likewise.
35585         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
35586         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
35587
35588         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35589         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35590         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35591         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35592         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
35593         (HP_SMALL_TIMING_AVAIL): Define.
35594         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35595         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
35596         (HP_SMALL_TIMING_AVAIL): Define.
35597         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35598         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
35599
35600         * sysdeps/aarch64/hp-timing.h: New file.
35601
35602         * sysdeps/generic/hp-timing.h: Remove dead comment.
35603         * sysdeps/generic/hp-timing-common.h: New file.
35604         * sysdeps/alpha/hp-timing.h: Include it.
35605         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
35606         * sysdeps/i386/i686/hp-timing.h: Likewise.
35607         * sysdeps/ia64/hp-timing.h: Likewise.
35608         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
35609         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
35610         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
35611         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
35612         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
35613         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
35614         (hp_timing_t): New.
35615
35616         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
35617         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
35618         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
35619         * elf/rtld.c (_dl_start_final): Likewise.
35620         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
35621         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35622         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35623         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35624         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35625         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
35626         (HP_TIMING_DIFF_INIT): Remove.
35627         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35628         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
35629         (HP_TIMING_DIFF_INIT): Remove.
35630         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
35631         * sysdeps/i386/i686/hp-timing.c: Remove file.
35632         * sysdeps/x86_64/hp-timing.c: Remove file.
35633         * sysdeps/ia64/hp-timing.c: Remove file.
35634         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
35635         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
35636         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
35637         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
35638
35639         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
35640         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
35641         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
35642         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
35643         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
35644         (HP_TIMING_ACCUM): Remove.
35645         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
35646         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
35647         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
35648
35649         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
35650         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
35651         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
35652         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
35653         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
35654         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
35655         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
35656         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
35657
35658         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
35659
35660 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
35661
35662         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
35663
35664 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35665
35666         Sync up with gettext.
35667         * intl/loadmsgcat.c: Define O_BINARY if not defined.
35668         [_MSC_VER]: Include malloc.h
35669         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
35670         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
35671         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
35672         TEMP_FAILURE_RETRY.  Cast return of alloca.
35673         [!_LIBC] Call gl_rwlock_init.
35674         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
35675
35676 2014-07-02  Roland McGrath  <roland@hack.frob.com>
35677
35678         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
35679         before checking its value.
35680
35681 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35682
35683         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
35684
35685         * debug/memcpy_chk.c: Don't include pagecopy.h.
35686         * debug/mempcpy_chk.c: Likewise.
35687         * string/memcpy.c: Likewise.
35688         * string/memmove.c: Likewise.
35689         * sysdeps/powerpc/memmove.c: Likewise.
35690         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
35691         definition of PAGE_COPY_FWD_MAYBE here...
35692         * sysdeps/generic/pagecopy.h: ... from here.
35693         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
35694
35695 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35696             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35697
35698         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
35699         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
35700         optimizations.
35701         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35702         (__libc_ifunc_impl_list): Likewise.
35703         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
35704         multiarch strcat for PPC64.
35705         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
35706         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
35707
35708 2014-07-02  Roland McGrath  <roland@hack.frob.com>
35709
35710         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
35711
35712 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35713
35714         * intl/loadmsgcat.c: Remove declaration of
35715         get_sysdep_segment_value.
35716         (get_sysdep_segment_value): Use ISO C style.
35717         (_nl_load_domain): Use ISO C style.  Get rid of redundant
35718         semicolon.  Fix typo and formatting in comment.
35719         (_nl_unload_domain): Use ISO C style.
35720
35721         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
35722
35723 2014-07-02  Will Newton  <will.newton@linaro.org>
35724
35725         * malloc/obstack.c: Merge from gnulib master.
35726         [HAVE_CONFIG_H]: Remove conditional code.
35727         [!_LIBC]: Include config.h.
35728         [!ELIDE_CODE]: Don't include inttypes.h, include
35729         stdint.h unconditionally.
35730         (print_and_abort): Mark as _Noreturn.
35731         (_obstack_allocated_p): Mark as __attribute_pure__.
35732         (obstack_free): Rename to __obstack_free.
35733         [!__attribute__]: Remove conditional code.
35734         * malloc/obstack.h: Merge from gnulib master.
35735         [__cplusplus]: Move conditional down.
35736         [!__attribute_pure__]: Define __attribute_pure__ here
35737         if it is not already defined.
35738         (_obstack_memory_used): Mark as __attribute_pure__.
35739         [!__obstack_free]: Define as obstack_free.
35740         [__GNUC__]: Remove check for ancient NeXT gcc.
35741
35742 2014-07-02  Will Newton  <will.newton@linaro.org>
35743             Paul Eggert  <eggert@cs.ucla.edu>
35744
35745         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
35746
35747 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35748
35749         * resolv/gethnamaddr.c: Add comment warning that the file is
35750         not maintained.
35751
35752 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
35753
35754         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
35755         entries.
35756
35757         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
35758         entry for aio_cancel and aio_cancel64.
35759         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
35760         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
35761         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
35762         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
35763         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
35764         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
35765         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
35766         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
35767         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
35768         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
35769         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
35770         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
35771         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
35772
35773 2014-07-01  Roland McGrath  <roland@hack.frob.com>
35774
35775         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
35776         * nptl/pthread_mutex_lock.c: Likewise.
35777         * nptl/pthread_mutex_timedlock.c: Likewise.
35778         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
35779
35780 2014-07-01  Richard henderson  <rth@redhat.com>
35781
35782         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
35783         (__isnan, __isnanl): Remove.
35784         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
35785
35786         * sysdeps/alpha/fpu/libm-test-ulps: Update.
35787
35788 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
35789
35790         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
35791
35792 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
35793
35794         * resolv/nss_dns/dns-host.c (getanswer_r)
35795         [MULTI_PTRS_ARE_ALIASES]: Remove code.
35796
35797 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
35798
35799         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35800         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
35801         undefine.
35802         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
35803         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
35804
35805 2014-07-01  Roland McGrath <roland@hack.frob.com>
35806
35807         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
35808         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
35809
35810         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
35811         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
35812
35813         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
35814         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
35815         ... here.
35816         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
35817         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
35818
35819         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
35820         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
35821         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
35822         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
35823
35824         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
35825         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
35826         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
35827         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
35828         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
35829         Moved ...
35830         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
35831         ... here.
35832         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
35833         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
35834         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
35835         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
35836         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
35837         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
35838         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
35839         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
35840         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
35841         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
35842         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
35843         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
35844         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
35845         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
35846         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
35847         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
35848         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
35849         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
35850         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
35851         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
35852         ... here.
35853         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
35854         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
35855         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
35856         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
35857         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
35858         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
35859         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
35860         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
35861
35862 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
35863
35864         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
35865         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
35866         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
35867         Add sysdep.
35868
35869 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35870
35871         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35872
35873 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35874
35875         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
35876         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
35877
35878         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
35879
35880         * sysdeps/arm/libm-test-ulps: Regenerated.
35881
35882 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35883             Roland McGrath <roland@hack.frob.com>
35884
35885         * test-skeleton.c (signal_handler): Kill the whole process group
35886         before killing the child individually.
35887         (main): Report any failure on `setpgid'.
35888
35889 2014-06-30  Roland McGrath  <roland@hack.frob.com>
35890
35891         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
35892         from _TLS_H to _ARM_NPTL_TLS_H.
35893         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
35894         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
35895
35896 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35897
35898         [BZ #16539]
35899         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
35900         (__expm1l): Return argument unchanged when small but not
35901         subnormal.
35902
35903         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
35904         include macro name.
35905         (_FP_UNPACK_RAW_1_P): Likewise.
35906         (_FP_PACK_RAW_1): Likewise.
35907         (_FP_PACK_RAW_1_P): Likewise.
35908         (_FP_MUL_MEAT_1_wide): Likewise.
35909         (_FP_MUL_MEAT_DW_1_hard): Likewise.
35910         (_FP_MUL_MEAT_1_hard): Likewise.
35911         (_FP_DIV_MEAT_1_imm): Likewise.
35912         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
35913         (_FP_DIV_MEAT_1_udiv): Likewise.
35914         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
35915         (_FP_UNPACK_RAW_2): Likewise.
35916         (_FP_UNPACK_RAW_2_P): Likewise.
35917         (_FP_PACK_RAW_2): Likewise.
35918         (_FP_PACK_RAW_2_P): Likewise.
35919         (_FP_MUL_MEAT_DW_2_wide): Likewise.
35920         (_FP_MUL_MEAT_2_wide): Likewise.
35921         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
35922         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
35923         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
35924         (_FP_MUL_MEAT_2_gmp): Likewise.
35925         (_FP_DIV_MEAT_2_udiv): Likewise.
35926         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
35927         (_FP_FRAC_SRL_4): Likewise.
35928         (_FP_FRAC_SRST_4): Likewise.
35929         (_FP_FRAC_SRS_4): Likewise.
35930         (_FP_UNPACK_RAW_4): Likewise.
35931         (_FP_UNPACK_RAW_4_P): Likewise.
35932         (_FP_PACK_RAW_4): Likewise.
35933         (_FP_PACK_RAW_4_P): Likewise.
35934         (_FP_MUL_MEAT_DW_4_wide): Likewise.
35935         (_FP_MUL_MEAT_4_wide): Likewise.
35936         (_FP_MUL_MEAT_4_gmp): Likewise.
35937         (umul_ppppmnnn): Likewise.
35938         (_FP_DIV_MEAT_4_udiv): Likewise.
35939         (__FP_FRAC_ADD_4): Likewise.
35940         (__FP_FRAC_SUB_3): Likewise.
35941         (__FP_FRAC_SUB_4): Likewise.
35942         (__FP_FRAC_DEC_3): Likewise.
35943         (__FP_FRAC_DEC_4): Likewise.
35944         (__FP_FRAC_ADDI_4): Likewise.
35945         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
35946         (_FP_FRAC_SRL_8): Likewise.
35947         (_FP_FRAC_SRS_8): Likewise.
35948
35949         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
35950         include macro name.
35951         (FP_UNPACK_RAW_EP): Likewise.
35952         (FP_PACK_RAW_E): Likewise.
35953         (FP_PACK_RAW_EP): Likewise.
35954         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
35955         (_FP_ISSIGNAN): Likewise.
35956         (_FP_ADD_INTERNAL): Likewise.
35957         (_FP_FMA): Likewise.
35958         (_FP_CMP): Likewise.
35959         (_FP_SQRT): Likewise.
35960         (_FP_TO_INT): Likewise.
35961         (_FP_FROM_INT): Likewise.
35962         (FP_EXTEND): Likewise.
35963         (_FP_DIV_MEAT_N_loop): Likewise.
35964
35965 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35966
35967         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
35968         throughout.
35969
35970 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
35971
35972         [BZ #17097]
35973         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
35974         result with correct sign in case of exponents that produce
35975         overflow except for X very close to 1.
35976
35977 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
35978
35979         mktime: merge #if/#ifdef usage from glibc
35980         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
35981         as that works with both Glibc's and Gnulib's style.
35982         See thread starting at Siddhesh Poyarekar's bug report at:
35983         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
35984
35985 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35986
35987         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
35988         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
35989         * sysdeps/tile/tilegx/memmove.c: Remove file.
35990
35991 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35992
35993         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
35994         abi-name definition.
35995         * scripts/soversions.awk: Do not handle or generate ABI lines.
35996         * shlib-versions: Remove ABI entries.
35997         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
35998         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
35999
36000 2014-06-27  Roland McGrath  <roland@hack.frob.com>
36001
36002         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
36003         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
36004         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
36005         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
36006         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
36007         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
36008         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
36009         Moved ...
36010         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
36011         ... here.
36012         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
36013         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
36014         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
36015         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
36016         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
36017         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
36018         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
36019         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
36020         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
36021         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
36022         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
36023         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
36024         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
36025         Moved ...
36026         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
36027         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
36028         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
36029         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
36030         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
36031         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
36032         Moved ...
36033         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
36034         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
36035         Moved ...
36036         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
36037         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
36038         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
36039         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
36040         Moved ...
36041         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
36042         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
36043         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
36044         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
36045         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
36046         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
36047         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
36048         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
36049         Moved ...
36050         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
36051         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
36052         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
36053         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
36054         Moved ...
36055         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
36056         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
36057         Moved ...
36058         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
36059         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
36060         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
36061         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
36062         Moved ...
36063         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
36064         ... here.
36065         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
36066         Identical file removed.
36067         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
36068         Moved ...
36069         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
36070         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
36071         Identical file removed.
36072         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
36073         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
36074         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
36075         Moved ...
36076         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
36077         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
36078         Identical file removed.
36079         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
36080         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
36081         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
36082         Identical file removed.
36083         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
36084         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
36085         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
36086         Identical file removed.
36087         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
36088         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
36089         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
36090         Identical file removed.
36091         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
36092         Moved ...
36093         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
36094         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
36095         Identical file removed.
36096         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
36097         Moved ...
36098         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
36099         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
36100         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
36101         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
36102         Identical file removed.
36103         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
36104         Moved ...
36105         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
36106         ... here.
36107         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
36108         Identical file removed.
36109         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
36110         Moved ...
36111         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
36112         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
36113         Identical file removed.
36114         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
36115         Moved ...
36116         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
36117         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
36118         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
36119         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
36120         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
36121         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
36122         Moved ...
36123         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
36124         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
36125         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
36126
36127         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
36128         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
36129         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
36130         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
36131         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
36132
36133 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
36134
36135         [BZ #17092]
36136         * nscd/nscd.c (monitor_child): Return exit status of child
36137         instead of return value from wait syscall.
36138
36139 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
36140
36141         * configure.ac (libc_commonpagesize): Remove variable.
36142         (libc_relro_required): Likewise.
36143         (libc_cv_z_relro): Remove configure test.
36144         * configure: Regenerated.
36145         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
36146         variable.
36147         (libc_relro_required): Likewise.
36148         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
36149         (libc_relro_required): Likewise.
36150         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
36151         (libc_relro_required): Likewise.
36152         * sysdeps/arm/preconfigure: Regenerated.
36153         * sysdeps/ia64/preconfigure: Remove file.
36154         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
36155         variable.
36156         (libc_relro_required): Likewise.
36157
36158         [BZ #16561]
36159         [BZ #16562]
36160         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
36161         (__ieee754_yn): Set FE_TONEAREST mode internally and then
36162         recompute overflowing results in original rounding mode.
36163         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
36164         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
36165         recompute overflowing results in original rounding mode.
36166         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
36167         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
36168         recompute overflowing results in original rounding mode.
36169         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
36170         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
36171         recompute overflowing results in original rounding mode.
36172         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
36173         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
36174         recompute overflowing results in original rounding mode.
36175         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
36176         (libc_feholdsetround_ctx): New macro.
36177         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
36178         * sysdeps/i386/fpu/libm-test-ulps: Update.
36179         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
36180
36181 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
36182
36183         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
36184         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
36185         corresponding .cpsetup call.
36186
36187 2014-06-26  Roland McGrath  <roland@hack.frob.com>
36188
36189         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
36190         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
36191         * sysdeps/arm/Makefile [$(subdir) = csu]
36192         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
36193         (static-only-routines): Add aeabi_read_tp here.
36194         (shared-only-routines): Add libc-aeabi_read_tp here.
36195         (CFLAGS-libc-start.c): Add -fexceptions here.
36196         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
36197         (sysdep_routines, static-only-routines, shared-only-routines):
36198         Don't add to these here.
36199         (CFLAGS-libc-start.c): Likewise.
36200
36201         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
36202         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
36203         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
36204         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
36205         * sysdeps/arm/Makefile [$(subdir) = rt]
36206         (librt-sysdep_routines, librt-shared-only-routines):
36207         Append rt-aeabi_unwind_cpp_pr1 here.
36208         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
36209         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
36210         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
36211         (libpthread-sysdep_routines, libpthread-shared-only-routines):
36212         Append nptl-aeabi_unwind_cpp_pr1 here.
36213         (tests): Filter out tst-cleanupx4 here.
36214         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
36215         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
36216         Don't do those here.
36217
36218 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
36219
36220         * scripts/list-sources.sh: Do not handle ports specially.
36221
36222 2014-06-26  Roland McGrath  <roland@hack.frob.com>
36223
36224         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
36225         * sysdeps/arm/feupdateenv.c: Likewise.
36226
36227         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
36228
36229 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
36230
36231         * manual/texinfo.tex: Update to version 2014-05-05.10 with
36232         trailing whitespace removed.
36233         * scripts/config.guess: Update to version 2014-03-23.
36234         * scripts/config.sub: Update to version 2014-05-01
36235         * scripts/install-sh: Update to version 2013-12-25.23.
36236         * scripts/move-if-change: Update from gnulib.
36237
36238 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
36239
36240         * debug/memmove_chk.c: Remove pagecopy.h include.
36241
36242 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
36243
36244         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
36245         identical to gnulib mktime.
36246
36247 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
36248
36249         * configure.ac: Do not test for machine being rs6000.  Do not test
36250         for powerpc*-*soft.
36251         * configure: Regenerated.
36252
36253         [BZ #11505]
36254         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
36255         test.
36256         * configure: Regenerated.
36257         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
36258         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
36259         Remove configure test.
36260         * sysdeps/arm/configure: Regenerated.
36261         * sysdeps/nptl/configure.ac: Do not check
36262         libc_cv_asm_cfi_directives.
36263         * sysdeps/nptl/configure: Regenerated.
36264         * sysdeps/x86_64/nptl/configure.ac: Remove file.
36265         * sysdeps/x86_64/nptl/configure: Remove generated file.
36266         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
36267         unconditional.
36268         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
36269
36270 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
36271
36272         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
36273         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
36274         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
36275         it is defined.
36276
36277         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
36278         instead of whether it is defined.
36279         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
36280         * sysdeps/hppa/dl-machine.h: Likewise.
36281         * sysdeps/ia64/dl-machine.h: Likewise.
36282         * sysdeps/m68k/dl-machine.h: Likewise.
36283         * sysdeps/microblaze/dl-machine.h: Likewise.
36284         * sysdeps/mips/dl-machine.: Likewise.
36285         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
36286         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
36287         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
36288         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
36289         * sysdeps/sh/dl-machine.h: Likewise.
36290         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
36291         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
36292         * sysdeps/tile/dl-machine.h: Likewise.
36293         * sysdeps/x86_64/dl-machine.h: Likewise.
36294
36295         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
36296         code.
36297         (verify_persistent_db): Likewise.
36298
36299 2014-06-26  Roland McGrath  <roland@hack.frob.com>
36300
36301         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
36302         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
36303         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
36304         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
36305         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
36306         Moved ...
36307         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
36308         ... here.
36309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
36310         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
36311         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
36312         Identical file removed.
36313         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
36314         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
36315         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
36316         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
36317         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
36318         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
36319         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
36320         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
36321         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
36322         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
36323         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
36324         Moved ...
36325         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
36326         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
36327         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
36328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
36329         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
36330         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
36331         Moved ...
36332         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
36333         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
36334         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
36335         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
36336         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
36337         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
36338         Identical file removed.
36339         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
36340         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
36341         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
36342         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
36343         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
36344         Moved ...
36345         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
36346         ... here.
36347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
36348         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
36349         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
36350         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
36351         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
36352         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
36353         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
36354         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
36355         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
36356         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
36357         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
36358         Moved ...
36359         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
36360         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
36361         Moved ...
36362         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
36363         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
36364         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
36365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
36366         Moved ...
36367         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
36368         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
36369         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
36370
36371         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
36372         folded into ...
36373         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
36374         * sysdeps/unix/sysv/linux/s390/Versions
36375         (libpthread: GLIBC_2.19): New version set.
36376         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
36377         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
36378         (librt: GLIBC_2.3.3): New version set.
36379         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
36380         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
36381         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
36382         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
36383         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
36384         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
36385         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
36386         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
36387         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
36388         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
36389         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
36390         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
36391         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
36392         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
36393         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
36394         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
36395         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
36396         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
36397         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
36398         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
36399         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
36400         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
36401         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
36402         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
36403         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
36404         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
36405         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
36406         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
36407         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
36408         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
36409         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
36410         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
36411         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
36412         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
36413         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
36414         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
36415         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
36416         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
36417         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
36418         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
36419         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
36420         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
36421         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
36422         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
36423         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
36424
36425         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
36426         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
36427         (__libc_vfork): Define the function under this name.
36428         [!NOT_IN_libc] (__vfork): Make this an alias.
36429         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
36430         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
36431         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
36432         (__libc_vfork): Define the function under this name.
36433         [!NOT_IN_libc] (__vfork): Make this an alias.
36434         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
36435         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
36436         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
36437         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
36438         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
36439         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
36440
36441         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
36442         code that was previously under [RESET_PID].
36443         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
36444         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
36445         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
36446
36447         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
36448         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
36449         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
36450         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
36451         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
36452         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
36453         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
36454         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
36455         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
36456         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
36457         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
36458         Moved ...
36459         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
36460         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
36461         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
36462         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
36463         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
36464         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
36465         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
36466         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
36467         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
36468         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
36469         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
36470         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
36471         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
36472         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
36473         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
36474         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
36475         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
36476         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
36477         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
36478         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
36479         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
36480         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
36481         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
36482         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
36483         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
36484         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
36485         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
36486         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
36487         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
36488
36489 2014-06-25  Roland McGrath  <roland@hack.frob.com>
36490
36491         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
36492         that was previously under [RESET_PID].
36493         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
36494
36495 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
36496
36497         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
36498         not undefine and redefine.
36499         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
36500         [O_CLOEXEC]: Make code unconditional.
36501         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
36502         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
36503         <kernel-features.h>.
36504         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
36505         conditional variable definition.
36506         (shm_open) [O_CLOEXEC]: Make code unconditional.
36507         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
36508         code.
36509
36510         * configure.ac (USE_REGPARMS): Don't define here.
36511         * configure: Regenerated.
36512         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
36513         * sysdeps/i386/configure: Regenerated.
36514
36515         * nptl/createthread.c: Don't include kernel-features.h.
36516         * nptl/pthread_cancel.c: Likewise.
36517         * nptl/pthread_condattr_setclock.c: Likewise.
36518         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
36519         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
36520         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
36521         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
36522         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
36523         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
36524         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
36525         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
36526         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
36527         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
36528         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
36529         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
36530         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
36531         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
36532         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
36533         * nscd/gai.c: Likewise.
36534         * nss/nss_db/db-open.c: Likewise.
36535         * sysdeps/generic/ldsodefs.h: Likewise.
36536         * sysdeps/sh/nptl/tls.h: Likewise.
36537         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
36538         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
36539         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
36540         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
36541         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
36542         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
36543         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
36544         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
36545         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
36546         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
36547         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
36548         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
36549         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
36550         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
36551         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
36552         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
36553         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
36554         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
36555         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
36556         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
36557         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
36558         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
36559         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
36560         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
36561         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
36562         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
36563         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
36564         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
36565         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
36566         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
36567         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
36568         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
36569         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
36570         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
36571         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
36572         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
36573         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
36574         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
36575         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
36576         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
36577         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
36578         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
36579         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
36580         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
36581         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
36582         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
36583         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
36584         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
36585         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
36586         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
36587         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
36588         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
36589         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
36590         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
36591         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
36592         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
36593         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
36594         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
36595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
36596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
36597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
36598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
36599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
36600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
36601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
36602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
36603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
36604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
36605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
36606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
36607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
36608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
36609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
36610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
36611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
36612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
36613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
36614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
36615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
36616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
36617         * sysdeps/unix/sysv/linux/pread.c: Likewise.
36618         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
36619         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
36620         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
36621         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
36622         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
36623         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
36624         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
36625         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
36626         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
36627         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
36628         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
36629         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
36630         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
36631         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
36632         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
36633         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
36634         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
36635         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
36636         * sysdeps/unix/sysv/linux/system.c: Likewise.
36637         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
36638         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
36639         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36640         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36641         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
36642         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
36643         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
36644
36645         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
36646         * configure: Regenerated.
36647         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
36648
36649         * configure.ac (base_machine): Do not set specially for particular
36650         machines here.
36651         * configure: Regenerated.
36652         * sysdeps/powerpc/preconfigure: Move machine and base_machine
36653         settings from configure.ac.
36654         * sysdeps/i386/preconfigure: New file.
36655         * sysdeps/s390/preconfigure: Likewise.
36656         * sysdeps/sh/preconfigure: Likewise.
36657         * sysdeps/sparc/preconfigure: Likewise.
36658
36659 2014-06-25  Roland McGrath  <roland@hack.frob.com>
36660
36661         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
36662         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
36663         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
36664         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
36665         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
36666         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
36667         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
36668         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
36669         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
36670         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
36671         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
36672         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
36673         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
36674         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
36675         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
36676         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
36677         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
36678         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
36679         * sysdeps/sparc/sparc64/Makefile: ... appended here.
36680
36681         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
36682         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
36683         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
36684         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
36685         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
36686         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
36687         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
36688         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
36689         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
36690         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
36691         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
36692         * sysdeps/sparc/sparc32/sem_post.c: ... here.
36693         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
36694         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
36695         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
36696         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
36697         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
36698         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
36699         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
36700         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
36701         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
36702         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
36703         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
36704         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
36705         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
36706         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
36707         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
36708         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
36709         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
36710         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
36711         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
36712         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
36713         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
36714         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
36715         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
36716         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
36717         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
36718         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
36719
36720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
36721         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
36722         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
36723         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
36724         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
36725         Moved ...
36726         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
36727         ... here.
36728         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
36729         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
36730         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
36731         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
36732         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
36733         Moved ...
36734         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
36735         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
36736         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
36737         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
36738         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
36739         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
36740         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
36741         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
36742         Moved ...
36743         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
36744         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
36745         Moved ...
36746         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
36747         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
36748         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
36749         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
36750         Moved ...
36751         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
36752         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
36753         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
36754         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
36755         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
36756         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
36757         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
36758         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
36759         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
36760         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
36761         Moved ...
36762         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
36763         ... here.
36764         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
36765         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
36766         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
36767         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
36768         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
36769         Moved ...
36770         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
36771         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
36772         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
36773         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
36774         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
36775         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
36776         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
36777         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
36778         Moved ...
36779         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
36780         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
36781         Moved ...
36782         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
36783         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
36784         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
36785         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
36786         Moved ...
36787         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
36788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
36789         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
36790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
36791         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
36792
36793 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
36794
36795         * timezone/checktab.awk: Update from tzcode 2014e.
36796         * timezone/private.h: Likewise.
36797         * timezone/tzfile.h: Likewise.
36798         * timezone/zdump.c: Likewise.
36799         * timezone/zic.c: Likewise.
36800
36801         * sysdeps/unix/sysv/linux/kernel-features.h
36802         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
36803         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
36804         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
36805         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
36806         Remove conditional code.
36807
36808 2014-06-25  Will Newton  <will.newton@linaro.org>
36809
36810         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
36811         (_dl_arm_cap_flags): Add HWCAP2 values.
36812         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
36813         (_DL_HWCAP_COUNT): Increase to 37.
36814         (_DL_HWCAP_LAST): New define.
36815         (_DL_HWCAP2_LAST): New define.
36816         (_dl_procinfo): Add support for printing
36817         AT_HWCAP2 entries.
36818         (_dl_string_hwcap): Use _dl_hwcap_string.
36819
36820 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36821
36822         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36823
36824 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
36825
36826         * README: Do not mention ports directory.
36827
36828         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
36829         Remove macro.
36830         * sysdeps/unix/sysv/linux/futimes.c: Do not include
36831         <kernel-features.h>.
36832         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
36833         conditional variable definition.
36834         (__futimes): Update comment.
36835         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
36836         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
36837
36838         [BZ #16560]
36839         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
36840         arguments close to 0.
36841         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
36842         Likewise.
36843         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
36844         Likewise.
36845         * math/auto-libm-test-in: Add more tests of exp10.
36846         * math/auto-libm-test-out: Regenerated.
36847         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36848
36849         * sysdeps/unix/sysv/linux/kernel-features.h
36850         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
36851         * sysdeps/unix/sysv/linux/readv.c: Do not include
36852         <kernel-features.h>.
36853         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36854         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36855         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36856         unconditional.
36857         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36858         conditional code.
36859         * sysdeps/unix/sysv/linux/writev.c: Do not include
36860         <kernel-features.h>.
36861         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36862         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36863         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36864         unconditional.
36865         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36866         conditional code.
36867
36868 2014-06-25  Will Newton  <will.newton@linaro.org>
36869
36870         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
36871         comment changes throughout the file.  Remove checks
36872         for HAVE_*_H definitions that are not required.
36873         (__gen_tempname): Call abort if an unknown kind value is
36874         passed.
36875
36876 2014-06-25  Andreas Schwab  <schwab@suse.de>
36877
36878         [BZ #17086]
36879         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
36880         scalbln, scalblnf, scalblnl in libc.
36881
36882 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
36883
36884         [BZ #17086]
36885         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
36886         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
36887         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
36888
36889 2014-06-24  Roland McGrath  <roland@hack.frob.com>
36890
36891         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
36892         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
36893         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
36894         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
36895         Update #include.
36896         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
36897         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
36898         Update #include.
36899         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
36900         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
36901         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
36902         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
36903         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
36904         * sysdeps/x86/bits/pthreadtypes.h: ... here.
36905         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
36906         * sysdeps/x86/bits/semaphore.h: ... here.
36907         * sysdeps/x86/nptl/elide.h: Moved ...
36908         * sysdeps/x86/elide.h: ... here.
36909         * sysdeps/x86_64/nptl/Implies: File removed.
36910         * sysdeps/i386/nptl/Implies: File removed.
36911
36912 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
36913
36914         [BZ #16539]
36915         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
36916         return the argument for normal arguments with exponent below -64.
36917         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
36918         Likewise.
36919         * math/auto-libm-test-in: Add another test of expm1.
36920         * math/auto-libm-test-out: Regenerated.
36921
36922         [BZ #16287]
36923         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
36924         calling __erfcl for arguments at least 16.
36925         * math/auto-libm-test-in: Add more tests of erf.
36926         * math/auto-libm-test-out: Regenerated.
36927
36928         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
36929         individual architectures.
36930         * sysdeps/unix/sysv/linux/configure: Regenerated.
36931         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
36932         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
36933         * sysdeps/unix/sysv/linux/powerpc/configure.ac
36934         (ldd_rewrite_script): Define variable.
36935         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
36936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
36937         file.
36938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
36939         generated file.
36940         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
36941         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
36942         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
36943         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
36944         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
36945         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
36946         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
36947         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
36948
36949 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36950
36951         [BZ #17084]
36952         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
36953         Rename member __data.d to __data.__elision_data.
36954
36955 2014-06-24  Wilco  <wdijkstr@arm.com>
36956
36957         * NEWS: Add 16918 to fixed bug list.
36958
36959 2014-06-24  Wilco  <wdijkstr@arm.com>
36960
36961         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
36962
36963 2014-06-24  Wilco  <wdijkstr@arm.com>
36964
36965         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
36966         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
36967         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
36968         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
36969         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
36970         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
36971         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
36972         Use _FPU_MASK_RM.
36973
36974 2014-06-24  Wilco  <wdijkstr@arm.com>
36975
36976         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
36977
36978 2014-06-24  Wilco  <wdijkstr@arm.com>
36979
36980         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
36981         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
36982         * sysdeps/arm/fesetround.c (fesetround): Remove space.
36983         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
36984
36985 2014-06-24  Wilco  <wdijkstr@arm.com>
36986
36987         [BZ #16918]
36988         * sysdeps/arm/feupdateenv.c (feupdateenv):
36989         Rewrite to reduce FPSCR accesses and fix return value.
36990
36991 2014-06-24  Wilco  <wdijkstr@arm.com>
36992
36993         * sysdeps/arm/fclrexcpt.c (feclearexcept):
36994         Optimize to avoid unnecessary FPSCR writes.
36995         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
36996         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
36997         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
36998         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
36999
37000 2014-06-24  Wilco  <wdijkstr@arm.com>
37001
37002         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
37003         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
37004         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
37005         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
37006         Call libc_fetestexcept_vfp.
37007         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
37008         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
37009         __SOFTFP__ ifdef so that they can be built for softfp.
37010
37011 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
37012
37013         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
37014         argument type signed char.
37015
37016         * Makerules (check-abi): Dump diff of symlist if the test
37017         fails.
37018
37019 2014-06-23  Roland McGrath  <roland@hack.frob.com>
37020
37021         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
37022         using abort.
37023
37024         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
37025         Remove unused variable ST.
37026
37027 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
37028
37029         [BZ #16354]
37030         [BZ #17061]
37031         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
37032         small arguments before calling __expm1.
37033         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
37034         small arguments before calling __expm1f.
37035         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
37036         small arguments before calling __expm1l.
37037         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
37038         Likewise.
37039         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
37040         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
37041         spurious underflow for some cosh tests.
37042         * math/auto-libm-test-out: Regenerated.
37043         * sysdeps/i386/fpu/libm-test-ulps: Update.
37044
37045         [BZ #17050]
37046         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
37047         (__ieee754_y1): Set errno if return value overflows.
37048         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
37049         (__ieee754_y1f): Set errno if return value overflows.
37050         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
37051         (__ieee754_y1l): Set errno if return value overflows.
37052         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
37053         (__ieee754_y1l): Set errno if return value overflows.
37054         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
37055         * math/auto-libm-test-out: Regenerated.
37056
37057         * math/gen-auto-libm-tests.c: Document use of
37058         ignore-zero-inf-sign.
37059         (input_flag_type): Add value flag_ignore_zero_inf_sign.
37060         (input_flags): Add ignore-zero-inf-sign.
37061         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
37062         * math/gen-libm-test.pl (generate_testfile): Handle
37063         ignore-zero-inf-sign.
37064         * math/auto-libm-test-in: Mark some cpow tests with
37065         ignore-zero-inf-sign and some with xfail-rounding.
37066         * math/auto-libm-test-out: Regenerated.
37067         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
37068         * sysdeps/i386/fpu/libm-test-ulps: Update.
37069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37070
37071         [BZ #16315]
37072         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
37073         overflowing or underflowing operations take place with sign of
37074         result.
37075         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
37076         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
37077         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
37078         (__ieee754_pow): Recompute overflowing and underflowing results in
37079         original rounding mode.
37080         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
37081         (__powl_helper): Allow negative argument X and scale negated value
37082         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
37083         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
37084         overflowing or underflowing operations take place with sign of
37085         result.
37086         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
37087         Include <math.h>.
37088         * math/auto-libm-test-in: Add more tests of pow.
37089         * math/auto-libm-test-out: Regenerated.
37090         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
37091         (pow_tonearest_test_data): Remove.
37092         (pow_test_tonearest): Likewise.
37093         (pow_towardzero_test_data): Likewise.
37094         (pow_test_towardzero): Likewise.
37095         (pow_downward_test_data): Likewise.
37096         (pow_test_downward): Likewise.
37097         (pow_upward_test_data): Likewise.
37098         (pow_test_upward): Likewise.
37099         (main): Don't call removed functions.
37100         * sysdeps/i386/fpu/libm-test-ulps: Update.
37101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37102
37103 2014-06-23  Roland McGrath  <roland@hack.frob.com>
37104
37105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
37106         Moved ...
37107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
37108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
37109         Moved ...
37110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
37111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
37112         Moved ...
37113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
37114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
37115         Moved ...
37116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
37117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
37118         File removed.
37119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
37120         File removed.
37121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
37122         File removed.
37123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
37124         File removed.
37125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
37126         File removed.
37127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
37128         File removed.
37129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
37130         File removed.
37131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
37132         File removed.
37133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
37134         File removed.
37135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
37136         File removed.
37137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
37138         File removed.
37139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
37140         File removed.
37141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
37142         Moved ...
37143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
37144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
37145         Moved ...
37146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
37147         ... here.
37148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
37149         Moved ...
37150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
37151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
37152         Moved ...
37153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
37154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
37155         Moved ...
37156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
37157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
37158         Moved ...
37159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
37160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
37161         Moved ...
37162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
37163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
37164         Moved ...
37165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
37166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
37167         Moved ...
37168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
37169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
37170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
37171         ... here.
37172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
37173         Moved ...
37174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
37175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
37176         Moved ...
37177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
37178         ... here.
37179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
37180         Moved ...
37181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
37182         ... here.
37183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
37184         Moved ...
37185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
37186         ... here.
37187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
37188         Moved ...
37189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
37190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
37191         Moved ...
37192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
37193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
37194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
37195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
37196         Moved ...
37197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
37198         ... here.
37199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
37200         Moved ...
37201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
37202         ... here.
37203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
37204         Moved ...
37205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
37206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
37207         Moved ...
37208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
37209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
37210         Moved ...
37211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
37212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
37213         Moved ...
37214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
37215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
37216         Moved ...
37217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
37218         ... here.
37219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
37220         Moved ...
37221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
37222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
37223         Moved ...
37224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
37225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
37226         Moved ...
37227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
37228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
37229         Moved ...
37230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
37231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
37232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
37233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
37234         Moved ...
37235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
37236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
37237         Moved ...
37238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
37239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
37240         Moved ...
37241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
37242         ... here.
37243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
37244         Moved ...
37245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
37246         ... here.
37247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
37248         Moved ...
37249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
37250         ... here.
37251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
37252         Moved ...
37253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
37254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
37255         Moved ...
37256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
37257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
37258         Moved ...
37259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
37260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
37261         Moved ...
37262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
37263         ... here.
37264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
37265         Moved ...
37266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
37267         ... here.
37268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
37269         Moved ...
37270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
37271         ... here.
37272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
37273         Moved ...
37274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
37275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
37276         Moved ...
37277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
37278
37279 2014-06-23  Will Newton  <will.newton@linaro.org>
37280             Wilco  <wdijkstr@arm.com>
37281
37282         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
37283         implementation.  Include get-rounding-mode.h.
37284         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
37285         [!libc_feholdsetround_noex_ctx]: Define
37286         libc_feholdsetround_noex_ctx.
37287         [!libc_feholdsetround_noexf_ctx]: Define
37288         libc_feholdsetround_noexf_ctx.
37289         [!libc_feholdsetround_noexl_ctx]: Define
37290         libc_feholdsetround_noexl_ctx.
37291         (libc_feholdsetround_ctx): New function.
37292         (libc_feresetround_ctx): New function.
37293         (libc_feholdsetround_noex_ctx): New function.
37294         (libc_feresetround_noex_ctx): New function.
37295
37296 2014-06-23  Roland McGrath  <roland@hack.frob.com>
37297
37298         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
37299         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
37300         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
37301         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
37302         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
37303         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
37304
37305         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
37306         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
37307         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
37308         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
37309         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
37310         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
37311         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
37312         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
37313         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
37314         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
37315         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
37316         Moved ...
37317         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
37318         ... here.
37319         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
37320         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
37321         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
37322         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
37323         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
37324         Moved ...
37325         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
37326         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
37327         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
37328         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
37329         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
37330         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
37331         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
37332         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
37333         Moved ...
37334         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
37335         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
37336         Moved ...
37337         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
37338         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
37339         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
37340         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
37341         Moved ...
37342         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
37343         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
37344         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
37345         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
37346         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
37347         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
37348         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
37349         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
37350         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
37351         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
37352         Moved ...
37353         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
37354         ... here.
37355         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
37356         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
37357         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
37358         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
37359         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
37360         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
37361         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
37362         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
37363         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
37364         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
37365         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
37366         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
37367         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
37368         Moved ...
37369         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
37370         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
37371         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
37372         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
37373         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
37374         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
37375         Moved ...
37376         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
37377         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
37378         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
37379         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
37380         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
37381
37382         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
37383         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
37384         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
37385         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
37386         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
37387         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
37388         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
37389         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
37390         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
37391         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
37392         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
37393         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
37394         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
37395         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
37396         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
37397         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
37398         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
37399         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
37400         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
37401         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
37402         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
37403         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
37404         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
37405         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
37406         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
37407         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
37408         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
37409         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
37410
37411 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
37412
37413         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
37414         (FALLOC_FL_COLLAPSE_RANGE): New macro.
37415         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
37416         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
37417         (IPV6_PMTUDISC_INTERFACE): Likewise.
37418         (IPV6_PMTUDISC_OMIT): Likewise.
37419
37420 2014-06-23  Andreas Schwab  <schwab@suse.de>
37421
37422         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
37423         Remove unused errout label.
37424
37425 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37426
37427         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
37428         macro: hardware supports Vector Crypto instructions.
37429
37430 2014-06-23  Will Newton  <will.newton@linaro.org>
37431
37432         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
37433         rather than __builtin_expect.
37434
37435         * elf/dl-lookup.c (undefined_msg): Remove variable.
37436         (_dl_lookup_symbol_x): Replace undefined_msg with string
37437         literal.
37438
37439         * elf/dl-lookup.c (do_lookup_unique): New function.
37440         (do_lookup_x): Move STB_GNU_UNIQUE handling code
37441         to a separate function.
37442
37443 2014-06-23  Andreas Schwab  <schwab@suse.de>
37444
37445         [BZ #17079]
37446         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
37447         before reading the next line.
37448
37449 2014-06-23  Will Newton  <will.newton@linaro.org>
37450
37451         * test-skeleton.c (signal_handler): Use printf and %m
37452         rather than perror.  Use printf rather than fprintf to
37453         stderr.  Use puts rather than fputs to stderr.
37454         (main): Likewise.
37455
37456 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
37457
37458         * nscd/nscd.c (thread_info_t): Remove typedef.
37459         (thread_info): Remove variable.
37460
37461 2014-06-21  Allan McRae  <allan@archlinux.org>
37462
37463         * NEWS: Mention CVE-2014-4043.
37464
37465 2014-06-20  Roland McGrath  <roland@hack.frob.com>
37466
37467         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
37468         * nptl/smp.h: ... here.
37469
37470         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
37471
37472         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
37473         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
37474         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
37475         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
37476
37477         * nptl/allocatestack.c: Include <stack-aliasing.h>.
37478         * nptl/stack-aliasing.h: New file.
37479         * sysdeps/i386/i686/stack-aliasing.h: New file.
37480         * sysdeps/i386/i686/nptl/Makefile: File removed.
37481         * sysdeps/x86_64/stack-aliasing.h: New file.
37482         * sysdeps/x86_64/nptl/Makefile
37483         (CFLAGS-pthread_create.c): Variable removed.
37484
37485         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
37486         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
37487         old file.
37488         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
37489         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
37490         old file.
37491
37492 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
37493
37494         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37495         (__ASSUME_SIGFRAME_V2): Remove macro.
37496         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
37497         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
37498         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
37499         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
37500         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
37501         Declare as function.  Remove conditional macro definitions.
37502         (__default_rt_sa_restorer): Likewise.
37503         (__default_sa_restorer_v1): Remove declaration.
37504         (__default_sa_restorer_v2): Likewise.
37505         (__default_rt_sa_restorer_v1): Likewise.
37506         (__default_rt_sa_restorer_v2): Likewise.
37507         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
37508         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
37509         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
37510
37511 2014-06-20  Roland McGrath  <roland@hack.frob.com>
37512
37513         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
37514         (libpthread-routines): Add sysdep.
37515         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
37516         * sysdeps/unix/sysv/linux/sparc/Versions
37517         (libpthread: GLIBC_2.3.3): New version set.
37518         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
37519         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
37520         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
37521         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
37522         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
37523         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
37524         Moved ...
37525         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
37526         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
37527         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
37528         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
37529         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
37530         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
37531         * sysdeps/sparc/nptl/sem_init.c: ... here.
37532         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
37533         * sysdeps/sparc/nptl/sem_post.c: ... here.
37534         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
37535         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
37536         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
37537         * sysdeps/sparc/nptl/sem_wait.c: ... here.
37538         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
37539         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
37540         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
37541         (libpthread-routines): Add cpu_relax.
37542         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
37543         File removed.
37544         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
37545         (librt: GLIBC_2.3.3): New version set.
37546         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
37547         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
37548         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
37549         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
37550         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
37551         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
37552         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
37553         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
37554         Moved ...
37555         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
37556         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
37557         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
37558         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
37559         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
37560         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
37561         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
37562         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
37563         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
37564         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
37565         Moved ...
37566         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
37567         Update #include.
37568         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
37569         Moved ...
37570         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
37571         Update #include.
37572         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
37573         Moved ...
37574         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
37575         Update #include.
37576         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
37577         Moved ...
37578         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
37579         Update #include.
37580         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
37581         Moved ...
37582         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
37583         Update #include.
37584         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
37585         Moved ...
37586         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
37587         Update #include.
37588         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
37589         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
37590         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
37591         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
37592         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
37593         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
37594         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
37595         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
37596         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
37597         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
37598         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
37599         Moved ...
37600         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
37601         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
37602         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
37603         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
37604         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
37605
37606 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
37607
37608         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
37609         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
37610         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
37611         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
37612         * nscd/nscd.c: Likewise.
37613         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
37614         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
37615         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
37616         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
37617
37618         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
37619         <kernel-features.h>.
37620         (init_mq_netlink): Remove conditional have_sock_cloexec
37621         definitions.  Remove code conditional on have_sock_cloexec < 0.
37622         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
37623         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
37624         * sysdeps/unix/sysv/linux/opensock.c: Do not include
37625         <kernel-features.h>.
37626         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
37627         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
37628
37629 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
37630
37631         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
37632         Add tests for memset_chk and memset.
37633
37634         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
37635         with AVX2_Usable.
37636
37637 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
37638
37639         [BZ #16046]
37640         * elf/tst-dl-iter-static.c: New file.
37641         * elf/Makefile (tests-static): Add tst-dl-iter-static.
37642
37643         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
37644         error.
37645
37646 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
37647
37648         * sysdeps/unix/sysv/linux/kernel-features.h
37649         (__ASSUME_F_GETOWN_EX): Remove macro.
37650         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
37651         <kernel-features.h>.
37652         (miss_F_GETOWN_EX): Remove variable or macro.
37653         (do_fcntl): Do not check miss_F_GETOWN_EX.
37654         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
37655
37656         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
37657         Remove macro.
37658         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
37659         [!__ASSUME_AT_RANDOM]: Remove conditional code.
37660         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
37661
37662         * sysdeps/unix/sysv/linux/kernel-features.h
37663         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
37664         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
37665         [ADJ_OFFSET_SS_READ]: Make code unconditional.
37666         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
37667
37668 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
37669
37670         [BZ #17075]
37671         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
37672         Fix calculation of the symbol's value.
37673         * sysdeps/arm/tst-armtlsdescloc.c: New file.
37674         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
37675         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
37676         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
37677         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
37678         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
37679         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
37680         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
37681         (modules-names): Add `tst-armtlsdescmod',
37682         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
37683         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
37684         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
37685         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
37686         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
37687         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
37688         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
37689         ($(objpfx)tst-armtlsdescloc): New dependency.
37690         ($(objpfx)tst-armtlsdescextnow): Likewise.
37691         ($(objpfx)tst-armtlsdescextlazy): Likewise.
37692         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
37693         TLS scheme support.
37694         * sysdeps/arm/configure: Regenerate.
37695
37696 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
37697
37698         * include/fcntl.h (__atfct_seterrno): Remove prototype.
37699         (__atfct_seterrno_2): Likewise.
37700         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
37701         <kernel-features.h>.
37702         (__ASSUME_ATFCTS): Do not undefine and redefine.
37703         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
37704         (__have_atfcts): Remove conditional definition.
37705         (__fxstatat([__NR_fstatat64]: Make code unconditional.
37706         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
37707         unreachable if [__ASSUME_ATFCTS].
37708         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
37709         not undefine and redefine.
37710         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
37711         <kernel-features.h>.
37712         (faccessat) [__NR_faccessat]: Make code unconditional.
37713         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
37714         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
37715         <kernel-features.h>.
37716         (fchmodat) [__NR_fchmodat]: Make code unconditional.
37717         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
37718         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
37719         <kernel-features.h>.
37720         (fchownat) [__NR_fchownat]: Make code unconditional.
37721         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
37722         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
37723         <kernel-features.h>.
37724         (futimesat) [__NR_futimesat]: Make code unconditional.
37725         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
37726         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
37727         <kernel-features.h>.
37728         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
37729         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
37730         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
37731         <kernel-features.h>.
37732         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
37733         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
37734         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
37735         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
37736         <kernel-features.h>.
37737         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
37738         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
37739         * sysdeps/unix/sysv/linux/linkat.c: Do not include
37740         <kernel-features.h>.
37741         (linkat) [__NR_linkat]: Make code unconditional.
37742         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
37743         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
37744         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
37745         <kernel-features.h>.
37746         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
37747         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
37748         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
37749         <kernel-features.h>.
37750         (mkdirat) [__NR_mkdirat]: Make code unconditional.
37751         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
37752         * sysdeps/unix/sysv/linux/openat.c: Do not include
37753         <kernel-features.h>.
37754         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
37755         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
37756         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
37757         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
37758         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
37759         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
37760         <kernel-features.h>.
37761         (readlinkat) [__NR_readlinkat]: Make code unconditional.
37762         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
37763         result of INLINE_SYSCALL directly, not via int variable.
37764         * sysdeps/unix/sysv/linux/renameat.c: Do not include
37765         <kernel-features.h>.
37766         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
37767         (renameat) [__NR_renameat]: Make code unconditional.
37768         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
37769         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
37770         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
37771         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
37772         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
37773         (__ASSUME_ATFCTS): Do not undefine and redefine.
37774         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
37775         <kernel-features.h>.
37776         (symlinkat) [__NR_symlinkat]: Make code unconditional.
37777         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
37778         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
37779         <kernel-features.h>.
37780         (unlinkat) [__NR_unlinkat]: Make code unconditional.
37781         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
37782         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
37783         (__ASSUME_ATFCTS): Do not undefine and redefine.
37784         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
37785         <kernel-features.h>.
37786         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
37787         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
37788         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
37789         <kernel-features.h>.
37790         (__xmknodat) [__NR_mknodat]: Make code unconditional.
37791         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
37792
37793 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
37794
37795         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
37796
37797 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
37798
37799         [BZ #17069]
37800         * posix/regcomp.c (parse_reg_exp): Deallocate partially
37801         constructed tree before returning error.
37802         * posix/bug-regexp36.c: Expand test case.
37803
37804 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
37805
37806         [BZ #6803]
37807         * math/libm-test.inc (scalbln_test_date):
37808         Add errno expectations.
37809         * math/w_scalblnf.c: New File.
37810         Add wrapper which checks for setting errno to ERANGE.
37811         Add weak_alias for corresponding scalbln function.
37812         * math/w_scalbln.c: Likewise.
37813         * math/w_scalblnl.c: Likewise.
37814         * math/Makefile (libm-calls): Add w_scalbln.
37815         * sysdeps/ieee754/flt-32/s_scalblnf.c:
37816         Remove weak_alias for corresponding scalbln function.
37817         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37818         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37819         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37820         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37821         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
37822         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
37823         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
37824         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
37825         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
37826         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
37827         Remove long_double_symbol for scalblnl function in libm, libc.
37828         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
37829         Add wrapper which checks for setting errno to ERANGE.
37830         Add long_double_symbol for scalblnl function in libm, libc.
37831         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
37832         Remove long_double_symbol for scalblnl in libm.
37833         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
37834         Add wrapper which checks for setting errno to ERANGE.
37835         Add long_double_symbol for scalblnl function in libm.
37836         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
37837         Do not use wrapper because of own implementation.
37838
37839 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
37840
37841         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
37842         3 bytes for __pad1 for x32.
37843         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
37844
37845 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
37846             H.J. Lu  <hongjiu.lu@intel.com>
37847
37848         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
37849         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
37850         * sysdeps/x86_64/multiarch/memset.S: Likewise.
37851         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
37852         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
37853
37854 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
37855
37856         [BZ #17069]
37857         * posix/regcomp.c (parse_expression): Deallocate partially
37858         constructed tree before returning error.
37859         * posix/Makefile.c (tests): Add bug-regex36.
37860         (generated): Add bug-regex36.mtrace.
37861         (tests-special): Add $(objpfx)bug-regex36-mem.out
37862         (bug-regex36-ENV): New variable.
37863         ($(objpfx)bug-regex36-mem.out): New rule.
37864         * posix/bug-regex36.c: New file.
37865
37866 2014-06-19  Will Newton  <will.newton@linaro.org>
37867
37868         * malloc/malloc.c (systrim): If extra is zero then return
37869         early.
37870
37871 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
37872
37873         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
37874
37875 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
37876
37877         * sysdeps/aarch64/strchr.S: New file.
37878
37879 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37880
37881         [BZ #17022]
37882         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
37883         from arguments -2 or below.
37884         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
37885         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
37886
37887 2014-06-18  Andreas Schwab  <schwab@suse.de>
37888
37889         [BZ #17062]
37890         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
37891         of a bracket expr not to run off the end of the string.
37892         * posix/Makefile (tests): Add tst-fnmatch3.
37893         * posix/tst-fnmatch3.c: New file.
37894
37895 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37896
37897         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
37898         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37899         [$(cross-compiling) = no]: Likewise.
37900         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37901         [$(cross-compiling) = no]: Likewise.
37902
37903 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37904
37905         [BZ #17031]
37906         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
37907         double, adjusted for any remainder from the high double.
37908         * math/libm-test.inc (nearbyint): Add tests.
37909         (rint): Likewise.
37910
37911 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37912
37913         * nptl/sysdeps/powerpc/Makefile: Moved ...
37914         * sysdeps/powerpc/nptl/Makefile: ... here.
37915         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
37916         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
37917         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
37918         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
37919         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
37920         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
37921         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
37922         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
37923         * nptl/sysdeps/powerpc/tls.h: Moved ...
37924         * sysdeps/powerpc/nptl/tls.h: ... here.
37925
37926 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
37927
37928         [BZ #16681]
37929         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
37930         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
37931         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
37932         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
37933         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
37934         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
37935         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
37936         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
37937         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
37938
37939 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
37940
37941         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
37942
37943 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
37944
37945         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
37946         defined operator.
37947
37948         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
37949         $TIMEOUTFACTOR.
37950
37951 2014-06-16  Florian Weimer  <fweimer@redhat.com>
37952
37953         [BZ #17058]
37954         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
37955         non-executed part of the test.
37956
37957 2014-06-16  Andreas Schwab  <schwab@suse.de>
37958
37959         * string/bits/string2.h (strdup, strndup): Update feature guard.
37960
37961 2014-06-14  David S. Miller  <davem@davemloft.net>
37962
37963         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37964
37965 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
37966
37967         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
37968         that was previously under [RESET_PID].
37969         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
37970
37971         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
37972         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
37973         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
37974         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
37975         (__libc_vfork): New strong alias.
37976         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
37977
37978 2014-06-14 Andi Kleen  <ak@linux.intel.com>
37979
37980         * sysdeps/generic/elide.h: New file.
37981
37982 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
37983
37984         * Makefile (installed-headers): Adjust path of pthread.h header.
37985
37986 2014-06-13  Roland McGrath  <roland@hack.frob.com>
37987
37988         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
37989         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
37990         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
37991         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
37992
37993         * nptl/sysdeps/s390/Makefile: Moved ...
37994         * sysdeps/s390/nptl/Makefile: ... here.
37995         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
37996         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
37997         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
37998         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
37999         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
38000         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
38001         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
38002         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
38003         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
38004         * sysdeps/s390/nptl/pthreaddef.h: ... here.
38005         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
38006         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
38007         * nptl/sysdeps/s390/tls.h: Moved ...
38008         * sysdeps/s390/nptl/tls.h: ... here.
38009
38010         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
38011         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
38012
38013 2014-06-13  David S. Miller  <davem@davemloft.net>
38014
38015         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
38016         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
38017         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
38018         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
38019         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
38020         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
38021         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
38022         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
38023         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
38024         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
38025         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
38026         Remove RESET_PID cpp guards.
38027         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
38028         Remove RESET_PID cpp guards.
38029         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
38030
38031 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
38032
38033         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
38034         __sp to uintptr_t.
38035
38036 2014-06-13  Andi Kleen  <ak@linux.intel.com>
38037
38038         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
38039         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
38040         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
38041         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
38042         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
38043         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
38044         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
38045         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
38046         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
38047         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
38048         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
38049         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
38050         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
38051         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
38052         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
38053         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
38054         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
38055         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
38056         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
38057         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
38058
38059         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
38060         (pthread_rwlock_rdlock): Add elision.
38061         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
38062         (pthread_rwlock_wrlock): Add elision.
38063         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
38064         (pthread_rwlock_trywrlock): Add elision.
38065         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
38066         (pthread_rwlock_tryrdlock): Add elision.
38067         * nptl/pthread_rwlock_unlock.c: Include elide.h.
38068         (pthread_rwlock_tryrdlock): Add elision unlock.
38069         * nptl/sysdeps/pthread/pthread.h:
38070         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
38071         (PTHREAD_RWLOCK_INITIALIZER,
38072         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
38073         Handle new elision field.
38074         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
38075         * sysdeps/arm/nptl/bits/pthreadtypes.h
38076         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38077         * sysdeps/sh/nptl/bits/pthreadtypes.h
38078         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38079         * sysdeps/tile/nptl/bits/pthreadtypes.h
38080         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38081         * sysdeps/a/nptl/bits/pthreadtypes.h
38082         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38083         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
38084         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38085         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
38086         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38087         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
38088         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38089         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
38090         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38091         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
38092         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38093         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
38094         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38095         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
38096         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38097         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
38098         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38099         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
38100         (elision_init): Set try_xbegin to zero when no RTM.
38101         * sysdeps/x86/nptl/bits/pthreadtypes.h
38102         (pthread_rwlock_t): Change __pad1 to __rwelision.
38103         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
38104
38105 2014-06-13  Andi Kleen  <ak@linux.intel.com>
38106
38107         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
38108         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
38109         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
38110         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
38111
38112 2014-06-13  Meador Inge  <meadori@codesourcery.com>
38113
38114         [BZ #16996]
38115         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
38116         that the cached result has been set before returning it.
38117
38118 2014-06-12  Roland McGrath  <roland@hack.frob.com>
38119
38120         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
38121         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
38122         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
38123         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
38124         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
38125         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
38126
38127         * nptl/sysdeps/sparc/Makefile: Moved ...
38128         * sysdeps/sparc/nptl/Makefile: ... here.
38129         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
38130         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
38131         * nptl/sysdeps/sparc/tls.h: Moved ...
38132         * sysdeps/sparc/nptl/tls.h: ... here.
38133         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
38134         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
38135         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
38136         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
38137         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
38138         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
38139         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
38140         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
38141         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
38142         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
38143         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
38144         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
38145         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
38146         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
38147         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
38148         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
38149         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
38150         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
38151         Update #include.
38152         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
38153         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
38154         Update #include.
38155         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
38156         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
38157         Update #include.
38158         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
38159         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
38160         Update #include.
38161
38162         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
38163
38164         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
38165         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
38166
38167         * sysdeps/pthread/posix-timer.h: Include <list.h>.
38168         (struct list_links): Type removed.
38169         (struct thread_node, struct timer_node): Replace struct list_links
38170         with struct list_head.
38171         (list_unlink_ip): Likewise.
38172         * sysdeps/pthread/timer_routines.c
38173         (timer_free_list, thread_free_list, thread_active_list): Likewise.
38174         (list_append, list_insbefore): Likewise.
38175         (list_init): Function removed.
38176         (thread_init, init_module): Use INIT_LIST_HEAD instead.
38177         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
38178         * sysdeps/pthread/Makefile: ... here, new file.
38179
38180         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
38181         * sysdeps/nptl/Implies: ... here.
38182         * sysdeps/unix/sysv/linux/Implies: Add nptl.
38183         * nptl/sysdeps/pthread/list.h: Moved ...
38184         * include/list.h: ... here.
38185         * nptl/sysdeps/pthread/createthread.c: Moved ...
38186         * nptl/createthread.c: ... here.
38187         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
38188         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
38189         * nptl/pt-longjmp.c: ... here.
38190         * nptl/sysdeps/pthread/Makefile: Moved ...
38191         * sysdeps/nptl/Makefile: ... here.
38192         * nptl/sysdeps/pthread/Subdirs: Moved ...
38193         * sysdeps/nptl/Subdirs: ... here.
38194         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
38195         * sysdeps/nptl/aio_misc.h: ... here.
38196         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
38197         * sysdeps/nptl/bits/libc-lock.h: ... here.
38198         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
38199         * sysdeps/nptl/bits/libc-lockP.h: ... here.
38200         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
38201         * sysdeps/nptl/bits/stdio-lock.h: ... here.
38202         * nptl/sysdeps/pthread/configure: Moved ...
38203         * sysdeps/nptl/configure: ... here.
38204         * nptl/sysdeps/pthread/configure.ac: Moved ...
38205         * sysdeps/nptl/configure.ac: ... here.
38206         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
38207         * sysdeps/nptl/gai_misc.h: ... here.
38208         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
38209         * sysdeps/nptl/librt-cancellation.c: ... here.
38210         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
38211         * sysdeps/nptl/malloc-machine.h: ... here.
38212         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
38213         * sysdeps/nptl/pthread-functions.h: ... here.
38214         * nptl/sysdeps/pthread/pthread.h: Moved ...
38215         * sysdeps/nptl/pthread.h: ... here.
38216         * nptl/sysdeps/pthread/setxid.h: Moved ...
38217         * sysdeps/nptl/setxid.h: ... here.
38218         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
38219         * sysdeps/nptl/sigfillset.c: ... here.
38220         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
38221         * sysdeps/nptl/tcb-offsets.h: ... here.
38222         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
38223         * sysdeps/nptl/tst-mqueue8x.c: ... here.
38224         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
38225         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
38226         * nptl/sysdeps/pthread/allocalim.h: Moved ...
38227         * sysdeps/pthread/allocalim.h: ... here.
38228         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
38229         * sysdeps/pthread/bits/sigthread.h: ... here.
38230         * nptl/sysdeps/pthread/flockfile.c: Moved ...
38231         * sysdeps/pthread/flockfile.c: ... here.
38232         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
38233         * sysdeps/pthread/ftrylockfile.c: ... here.
38234         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
38235         * sysdeps/pthread/funlockfile.c: ... here.
38236         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
38237         * sysdeps/pthread/posix-timer.h: ... here.
38238         * nptl/sysdeps/pthread/timer_create.c: Moved ...
38239         * sysdeps/pthread/timer_create.c: ... here.
38240         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
38241         * sysdeps/pthread/timer_delete.c: ... here.
38242         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
38243         * sysdeps/pthread/timer_getoverr.c: ... here.
38244         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
38245         * sysdeps/pthread/timer_gettime.c: ... here.
38246         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
38247         * sysdeps/pthread/timer_routines.c: ... here.
38248         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
38249         * sysdeps/pthread/timer_settime.c: ... here.
38250         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
38251         * sysdeps/pthread/tst-timer.c: ... here.
38252         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
38253         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
38254
38255         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
38256         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
38257
38258         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
38259         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
38260         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
38261         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
38262         Update #include target.
38263         * nptl/sysdeps/i386/i686/Makefile: Moved ...
38264         * sysdeps/i386/i686/nptl/Makefile: ... here.
38265         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
38266         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
38267         Update #include target.
38268         * nptl/sysdeps/i386/i686/tls.h: Moved ...
38269         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
38270         * nptl/sysdeps/i386/Makefile: Moved ...
38271         * sysdeps/i386/nptl/Makefile: ... here.
38272         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
38273         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
38274         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
38275         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
38276         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
38277         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
38278         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
38279         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
38280         * sysdeps/i386/nptl/pthreaddef.h: ... here.
38281         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
38282         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
38283         * nptl/sysdeps/i386/tls.h: Moved ...
38284         * sysdeps/i386/nptl/tls.h: ... here.
38285
38286         * sysdeps/sh/Makefile [$(subdir) = csu]
38287         (gen-as-const-headers): Add tcb-offsets.sym.
38288         * nptl/sysdeps/sh/Makefile: File removed.
38289         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
38290         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
38291         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
38292         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
38293         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
38294         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
38295         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
38296         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
38297         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
38298         * sysdeps/sh/nptl/pthreaddef.h: ... here.
38299         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
38300         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
38301         * nptl/sysdeps/sh/tls.h: Moved ...
38302         * sysdeps/sh/nptl/tls.h: ... here.
38303         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
38304         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
38305         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
38306         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
38307         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
38308         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
38309         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
38310         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
38311         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
38312         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
38313         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
38314         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
38315         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
38316         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
38317         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
38318         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
38319         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
38320         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
38321         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
38322         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
38323         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
38324         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
38325         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
38326         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
38327         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
38328         Moved ...
38329         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
38330         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
38331         Moved ...
38332         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
38333         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
38334         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
38335         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
38336         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
38337         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
38338         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
38339         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
38340         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
38341         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
38342         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
38343         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
38344         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
38345         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
38346         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
38347         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
38348         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
38349         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
38350         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
38351
38352 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
38353
38354         * posix/spawn_faction_addopen.c: Include string.h.
38355
38356 2014-06-11  Roland McGrath  <roland@hack.frob.com>
38357
38358         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
38359         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
38360         * nptl/sysdeps/x86_64/Makefile: Moved ...
38361         * sysdeps/x86_64/nptl/Makefile: ... here.
38362         * nptl/sysdeps/x86_64/configure: Moved ...
38363         * sysdeps/x86_64/nptl/configure: ... here.
38364         * nptl/sysdeps/x86_64/configure.ac: Moved ...
38365         * sysdeps/x86_64/nptl/configure.ac: ... here.
38366         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
38367         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
38368         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
38369         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
38370         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
38371         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
38372         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
38373         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
38374         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
38375         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
38376         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
38377         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
38378         * nptl/sysdeps/x86_64/tls.h: Moved ...
38379         * sysdeps/x86_64/nptl/tls.h: ... here.
38380         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
38381         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
38382         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
38383         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
38384
38385         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
38386
38387 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38388
38389         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38390
38391 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
38392
38393         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
38394         type.
38395         [POSIX] (off_t): Likewise.
38396         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
38397         [POSIX] (S_ISBLK): Require macro.
38398         [POSIX] (S_ISCHR): Likewise.
38399         [POSIX] (S_ISDIR): Likewise.
38400         [POSIX] (S_ISFIFO): Likewise.
38401         [POSIX] (S_ISREG): Likewise.
38402         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
38403         optional-macro.
38404         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
38405         type.
38406         [POSIX] (time_t): Likewise.
38407         [POSIX] (timer_t): Likewise.
38408
38409 2014-06-11  Florian Weimer  <fweimer@redhat.com>
38410
38411         [BZ #17048]
38412         * posix/spawn_int.h (struct __spawn_action): Make the path string
38413         non-const to support deallocation.
38414         * posix/spawn_faction_addopen.c
38415         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
38416         * posix/spawn_faction_destroy.c
38417         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
38418         path in all spawn_do_open actions.
38419         * posix/tst-spawn.c (do_test): Exercise the copy operation in
38420         posix_spawn_file_actions_addopen.
38421
38422 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
38423
38424         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
38425         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
38426         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
38427         conditional code always true.
38428         (__libc_vfork): New alias.
38429
38430 2014-06-11  Roland McGrath  <roland@hack.frob.com>
38431
38432         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38433         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
38434
38435         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
38436
38437         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38438         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
38439
38440         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
38441         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
38442
38443         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38444         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
38445
38446 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
38447
38448         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
38449         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
38450         multiarch strcmp for PPC64.
38451         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
38452         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
38453         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
38454         multiarch optimizations.
38455         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
38456         (__libc_ifunc_impl_list): Likewise.
38457
38458 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
38459
38460         * benchtests/scripts/validate_benchout.py: New script.
38461         * benchtests/Makefile (bench-func): Call it.
38462         * benchtests/scripts/benchout.schema.json: New file.
38463
38464 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
38465
38466         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
38467         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
38468         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
38469         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
38470         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
38471         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
38472         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
38473         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
38474         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
38475         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
38476         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
38477         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
38478         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
38479         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
38480         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
38481         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
38482         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
38483         Moved ...
38484         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
38485         ... here.
38486         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
38487         Moved ...
38488         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
38489         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
38490         Moved ...
38491         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
38492         ... here.
38493         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
38494         Moved ...
38495         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
38496         ... here.
38497         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
38498         Moved ...
38499         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
38500         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
38501         Moved ...
38502         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
38503         ... here.
38504         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
38505         Moved ...
38506         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
38507         ... here.
38508         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
38509         Moved ...
38510         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
38511         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
38512         Moved ...
38513         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
38514         ... here.
38515         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
38516         Moved ...
38517         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
38518         ... here.
38519         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
38520         Moved ...
38521         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
38522         ... here.
38523         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
38524         Moved ...
38525         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
38526         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
38527         Moved ...
38528         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
38529         ... here.
38530         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
38531         Moved ...
38532         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
38533         ... here.
38534         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
38535         Moved ...
38536         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
38537         ... here.
38538         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
38539         Moved ...
38540         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
38541         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
38542         Moved ...
38543         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
38544         ... here.
38545         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
38546         Moved ...
38547         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
38548         ... here.
38549         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
38550         Moved ...
38551         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
38552         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
38553         Moved ...
38554         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
38555         ... here.
38556         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
38557         Moved ...
38558         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
38559         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
38560         Moved ...
38561         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
38562         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
38563         Moved ...
38564         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
38565         ... here.
38566         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
38567         Moved ...
38568         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
38569         ... here.
38570         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
38571         Moved ...
38572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
38573         ... here.
38574         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
38575         Moved ...
38576         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
38577         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
38578         Moved ...
38579         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
38580         ... here.
38581         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
38582         Moved ...
38583         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
38584         ... here.
38585         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
38586         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
38587         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
38588         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
38589         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
38590         Moved ...
38591         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
38592         ... here.
38593         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
38594         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
38595         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
38596         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
38597         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
38598         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
38599         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
38600         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
38601         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
38602         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
38603         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
38604         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
38605         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
38606         Moved ...
38607         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
38608         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
38609         Moved ...
38610         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
38611         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
38612         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
38613         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
38614         Moved ...
38615         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
38616         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
38617         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
38618         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
38619         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
38620         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
38621         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
38622
38623 2014-06-10  Wilco  <wdijkstr@arm.com>
38624
38625         * math/test-fenv-return.c: New file.
38626         * math/Makefile: Add new test test-fenv-return.
38627
38628 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
38629
38630         [BZ #17042]
38631         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
38632         when x - 1 is zero.
38633         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
38634         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
38635         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
38636         0.0L for an argument of 1.0L.
38637         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
38638         Likewise.
38639         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
38640         value when x - 1 is zero.
38641         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
38642         * sysdeps/i386/fpu/libm-test-ulps: Update.
38643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38644
38645 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
38646
38647         [BZ #15119]
38648         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
38649
38650 2014-06-09  Roland McGrath  <roland@hack.frob.com>
38651
38652         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
38653         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
38654
38655 2014-06-09  Roland McGrath  <roland@hack.frob.com>
38656
38657         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38658         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
38659
38660         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38661         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
38662
38663         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38664         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
38665
38666         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
38667         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
38668
38669         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
38670         if not already defined.
38671         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
38672         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
38673         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
38674         (TLS_INIT_TP): Use it.
38675         (TLS_DEFINE_INIT_TP): New macro.
38676         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
38677
38678 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
38679
38680         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
38681         constant.
38682         [POSIX] (IXANY): Likewise.
38683         [POSIX] (OLCUC): Likewise.
38684         [POSIX || POSIX2008] (CBAUD): Do not allow.
38685         [POSIX || POSIX2008] (DEFECHO): Likewise.
38686         [POSIX || POSIX2008] (ECHOCTL): Likewise.
38687         [POSIX || POSIX2008] (ECHOKE): Likewise.
38688         [POSIX || POSIX2008] (ECHOPRT): Likewise.
38689         [POSIX || POSIX2008] (EXTA): Likewise.
38690         [POSIX || POSIX2008] (EXTB): Likewise.
38691         [POSIX || POSIX2008] (FLUSHO): Likewise.
38692         [POSIX || POSIX2008] (LOBLK): Likewise.
38693         [POSIX || POSIX2008] (PENDIN): Likewise.
38694         [POSIX || POSIX2008] (SWTCH): Likewise.
38695         [POSIX || POSIX2008] (VDISCARD): Likewise.
38696         [POSIX || POSIX2008] (VDSUSP): Likewise.
38697         [POSIX || POSIX2008] (VLNEXT): Likewise.
38698         [POSIX || POSIX2008] (VREPRINT): Likewise.
38699         [POSIX || POSIX2008] (VSTATUS): Likewise.
38700         [POSIX || POSIX2008] (VWERASE): Likewise.
38701         (B*): Change to B[0123456789]*.
38702         * conform/data/time.h-data [POSIX || UNIX98]
38703         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
38704         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
38705         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
38706         [POSIX] (tm_*): Do not allow.
38707
38708 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
38709
38710         * Makefile (install): Don't set LANGUAGE.
38711         * Makefile.in (install): Likewise.
38712         * assert/Makefile (test-assert-ENV): Remove variable.
38713         (test-assert-perr-ENV): Likewise.
38714         * elf/Makefile (neededtest4-ENV): Likewise.
38715         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
38716         [$(cross-compiling) = no]: Don't set LANGUAGE.
38717         * io/ftwtest-sh (LANG): Remove variable.
38718         * libio/Makefile (tst-widetext-ENV): Likewise.
38719         * manual/install.texi (Running make install): Don't refer to
38720         environment settings for make install.
38721         * INSTALL: Regenerated.
38722         * nptl/tst-tls6.sh: Don't set LANG.
38723         * posix/globtest.sh (LANG): Remove variable.
38724         * string/Makefile (tester-ENV): Likewise.
38725         (inl-tester-ENV): Likewise.
38726         (noinl-tester-ENV): Likewise.
38727         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
38728         [$(cross-compiling) = no]: Don't set LANGUAGE.
38729         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
38730         without explicit environment settings.
38731
38732 2014-06-06  Roland McGrath  <roland@hack.frob.com>
38733
38734         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
38735         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
38736         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
38737         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
38738
38739 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
38740
38741         * crypt/crypt-private.h [DOS]: Add some includes taken from the
38742         other files in the crypt directory.
38743         * crypt/crypt.c: Remove duplicate includes.
38744         * crypt/crypt-entry.c: Likewise.
38745         * crypt/crypt_util.c: Likewise.
38746
38747 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
38748
38749         * Makeconfig (run-program-env): New variable.
38750         (run-program-prefix-before-env): Likewise.
38751         (run-program-prefix-after-env): Likewise.
38752         (run-program-prefix): Define in terms of new variables.
38753         (built-program-cmd-before-env): New variable.
38754         (built-program-cmd-after-env): Likewise.
38755         (built-program-cmd): Define in terms of new variables.
38756         (test-program-prefix-before-env): New variable.
38757         (test-program-prefix-after-env): Likewise.
38758         (test-program-prefix): Define in terms of new variables.
38759         (test-program-cmd-before-env): New variable.
38760         (test-program-cmd-after-env): Likewise.
38761         (test-program-cmd): Define in terms of new variables.
38762         * Rules (make-test-out): Use $(run-program-env).
38763         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
38764         (help): Do not mention environment variables.  Mention
38765         --timeoutfactor option.
38766         (timeoutfactor): New variable.
38767         (blacklist_exports): Remove function.
38768         (exports): Remove variable.
38769         (command): Do not include ${exports}.
38770         * manual/install.texi (Configuring and compiling): Do not mention
38771         test wrappers preserving environment variables.  Mention that last
38772         assignment to a variable must take precedence.
38773         * INSTALL: Regenerated.
38774         * benchtests/Makefile (run-bench): Use $(run-program-env).
38775         * catgets/Makefile ($(objpfx)test1.cat): Use
38776         $(built-program-cmd-before-env), $(run-program-env) and
38777         $(built-program-cmd-after-env).
38778         ($(objpfx)test2.cat): Do not specify environment variables
38779         explicitly.
38780         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
38781         $(run-program-env) and $(built-program-cmd-after-env).
38782         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
38783         $(run-program-env) and $(test-program-cmd-after-env).
38784         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
38785         explicitly.
38786         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
38787         run_program_env and test_program_cmd_after_env arguments.
38788         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
38789         * elf/tst-pathopt.sh: Use run_program_env argument.
38790         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
38791         $(test-wrapper-env) and $(run-program-env).
38792         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
38793         run_program_env arguments.
38794         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
38795         * intl/Makefile ($(objpfx)tst-gettext.out): Use
38796         $(test-program-prefix-before-env), $(run-program-env) and
38797         $(test-program-prefix-after-env).
38798         ($(objpfx)tst-gettext2.out): Likewise.
38799         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
38800         run_program_env and test_program_prefix_after_env arguments.
38801         * intl/tst-gettext2.sh: Likewise.
38802         * intl/tst-gettext4.sh: Do not set environment variables
38803         explicitly.
38804         * intl/tst-gettext6.sh: Likewise.
38805         * intl/tst-translit.sh: Likewise.
38806         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
38807         $(test-program-prefix-before-env), $(run-program-env) and
38808         $(test-program-prefix-after-env).
38809         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
38810         run_program_env and test_program_prefix_after_env arguments.
38811         * math/Makefile (run-regen-ulps): Use $(run-program-env).
38812         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
38813         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
38814         explicitly with each use of ${test_wrapper_env}.
38815         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
38816         $(test-program-prefix-before-env), $(run-program-env) and
38817         $(test-program-prefix-after-env).
38818         * posix/tst-getconf.sh: Do not set environment variables
38819         explicitly.
38820         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
38821         run_program_env and test_program_prefix_after_env arguments.
38822         * stdio-common/tst-printf.sh: Do not set environment variables
38823         explicitly.
38824         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
38825         $(test-program-prefix-before-env), $(run-program-env) and
38826         $(test-program-prefix-after-env).
38827         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
38828         run_program_env and test_program_prefix_after_env arguments.
38829         Split $test calls into $test_pre and $test.
38830         * timezone/Makefile (build-testdata): Use
38831         $(built-program-cmd-before-env), $(run-program-env) and
38832         $(built-program-cmd-after-env).
38833
38834 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38835
38836         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
38837         strlen for non SHARED builds.
38838
38839 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38840
38841         * nptl/allocatestack.c (check_list): Inlined function...
38842         (__reclaim_stacks): ... here.
38843
38844 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38845
38846         [BZ #15698]
38847         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
38848         memory overrun.
38849
38850 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
38851
38852         * Rules (make-test-out): Include
38853         LOCPATH=$(common-objpfx)localedata in default environment.
38854         * debug/Makefile (tst-chk1-ENV): Remove variable.
38855         (tst-chk2-ENV): Likewise.
38856         (tst-chk3-ENV): Likewise.
38857         (tst-chk4-ENV): Likewise.
38858         (tst-chk5-ENV): Likewise.
38859         (tst-chk6-ENV): Likewise.
38860         (tst-lfschk1-ENV): Likewise.
38861         (tst-lfschk2-ENV): Likewise.
38862         (tst-lfschk3-ENV): Likewise.
38863         (tst-lfschk4-ENV): Likewise.
38864         (tst-lfschk5-ENV): Likewise.
38865         (tst-lfschk6-ENV): Likewise.
38866         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
38867         (tst-iconv7-ENV): Likewise.
38868         * intl/Makefile (LOCPATH-ENV): Likewise.
38869         (tst-codeset-ENV): Likewise.
38870         (tst-gettext3-ENV): Likewise.
38871         (tst-gettext5-ENV): Likewise.
38872         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
38873         (tst-fopenloc-ENV): Likewise.
38874         (tst-fgetws-ENV): Remove variable.
38875         (tst-ungetwc1-ENV): Likewise.
38876         (tst-ungetwc2-ENV): Likewise.
38877         (bug-ungetwc2-ENV): Likewise.
38878         (tst-swscanf-ENV): Likewise.
38879         (bug-ftell-ENV): Likewise.
38880         (tst-fgetwc-ENV): Likewise.
38881         (tst-fseek-ENV): Likewise.
38882         (tst-ftell-partial-wide-ENV): Likewise.
38883         (tst-ftell-active-handler-ENV): Likewise.
38884         (tst-ftell-append-ENV): Likewise.
38885         * posix/Makefile (tst-fnmatch-ENV): Likewise.
38886         (tst-regexloc-ENV): Likewise.
38887         (bug-regex1-ENV): Likewise.
38888         (tst-regex-ENV): Likewise.
38889         (tst-regex2-ENV): Likewise.
38890         (bug-regex5-ENV): Likewise.
38891         (bug-regex6-ENV): Likewise.
38892         (bug-regex17-ENV): Likewise.
38893         (bug-regex18-ENV): Likewise.
38894         (bug-regex19-ENV): Likewise.
38895         (bug-regex20-ENV): Likewise.
38896         (bug-regex22-ENV): Likewise.
38897         (bug-regex23-ENV): Likewise.
38898         (bug-regex25-ENV): Likewise.
38899         (bug-regex26-ENV): Likewise.
38900         (bug-regex30-ENV): Likewise.
38901         (bug-regex32-ENV): Likewise.
38902         (bug-regex33-ENV): Likewise.
38903         (bug-regex34-ENV): Likewise.
38904         (bug-regex35-ENV): Likewise.
38905         (tst-rxspencer-ENV): Likewise.
38906         (tst-rxspencer-no-utf8-ENV): Likewise.
38907         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
38908         (tst-sscanf-ENV): Likewise.
38909         (tst-swprintf-ENV): Likewise.
38910         (tst-swscanf-ENV): Likewise.
38911         (test-vfprintf-ENV): Likewise.
38912         (scanf13-ENV): Likewise.
38913         (bug14-ENV): Likewise.
38914         (tst-grouping-ENV): Likewise.
38915         * stdlib/Makefile (tst-strtod-ENV): Likewise.
38916         (tst-strtod3-ENV): Likewise.
38917         (tst-strtod4-ENV): Likewise.
38918         (tst-strtod5-ENV): Likewise.
38919         (testmb2-ENV): Likewise./
38920         * string/Makefile (tst-strxfrm-ENV): Likewise.
38921         (tst-strxfrm2-ENV): Likewise.
38922         (bug-strcoll1-ENV): Likewise.
38923         (test-strcasecmp-ENV): Likewise.
38924         (test-strncasecmp-ENV): Likewise.
38925         * time/Makefile (tst-strptime-ENV): Likewise.
38926         (tst-ftime_l-ENV): Likewise.
38927         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
38928         (tst-mbrtowc-ENV): Likewise.
38929         (tst-wcrtomb-ENV): Likewise.
38930         (tst-mbrtowc2-ENV): Likewise.
38931         (tst-c16c32-1-ENV): Likewise.
38932         (tst-mbsnrtowcs-ENV): Likewise.
38933
38934 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38935
38936         * manual/resource.texi (How to get information about the memory
38937         subsystem?): Fix typo.
38938         Reported by Peon de la Parra Ivan <peon@keba.com>
38939
38940 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
38941
38942         [BZ #16882]
38943         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
38944         (pthread_spin_lock): Branch out of spin loop to proper location.
38945         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
38946         (pthread_spin_lock): Likewise.
38947
38948         * nptl/tst-spin4.c: New test.
38949         * nptl/Makefile (tests): Add tst-spin4.
38950
38951 2014-06-03  Andreas Schwab  <schwab@suse.de>
38952
38953         [BZ #15946]
38954         * resolv/res_send.c (send_dg): Reload file descriptor after
38955         calling reopen.
38956
38957 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
38958
38959         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38960
38961 2014-06-03  Richard Henderson  <rth@redhat.com>
38962
38963         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
38964         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
38965         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
38966         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
38967         in the SAVE_PID block.
38968         (__libc_vfork): New alias.
38969         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
38970
38971         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
38972         child in registers, not on the stack.  Remove RESET_PID conditionals.
38973         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
38974
38975 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38976
38977         * sysdeps/aarch64/libm-test-ulps: Regenerate.
38978
38979 2014-06-03  Wilco  <wdijkstr@arm.com>
38980
38981         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
38982         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
38983         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38984         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
38985         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
38986         Likewise.
38987
38988 2014-06-03  Wilco  <wdijkstr@arm.com>
38989
38990         * sysdeps/aarch64/fpu/math_private.h
38991         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
38992         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
38993         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
38994         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38995         Fix declarations.
38996
38997 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38998
38999         * crypt/crypt-private.h: Include ufc-crypt.h.
39000         (__b64_from_24bit): Declare extern.
39001         * crypt/crypt_util.c(__b64_from_24bit): New function.
39002         (b64t): New static const variable.
39003         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
39004         (b64t): Remove variable.
39005         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
39006         * crypt/sha256-crypt.c: Include crypt-private.h.
39007         (b64t): Remove variable.
39008         (__sha256_crypt_r): Remove b64_from_24bit and replace
39009         with __b64_from_24bit.
39010         * crypt/sha512-crypt.c: Likewise.
39011
39012 2014-06-02  Roland McGrath  <roland@hack.frob.com>
39013
39014         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
39015         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
39016         Label the code __libc_vfork rather than __vfork.
39017         [!NOT_IN_libc] (vfork): Define as weak alias.
39018         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
39019         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
39020         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
39021
39022 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39023
39024         * malloc/malloc.c (malloc_info): Fix format specifier for
39025         n_mmaps.
39026
39027 2014-06-02  Wilco  <wdijkstr@arm.com>
39028
39029         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
39030         FPCR write.
39031
39032 2014-06-02  Wilco  <wdijkstr@arm.com>
39033
39034         [BZ #17009]
39035         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
39036         Rewrite to reduce FPCR/FPSR accesses.
39037
39038 2014-06-01  David S. Miller  <davem@davemloft.net>
39039
39040         * sysdeps/sparc/fpu/libm-test-ulps: Update.
39041
39042 2014-05-31  David S. Miller  <davem@davemloft.net>
39043
39044         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
39045         to occur in round to nearest mode when |x| >= 2.0
39046
39047 2014-05-30  Richard Henderson  <rth@twiddle.net>
39048
39049         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
39050         (PSEUDO_RET_NOERRNO): Remove.
39051         (ret): Don't redefine.
39052         (ret_NOERRNO): Define in terms of ret.
39053         (ret_ERRVAL): Likewise.
39054
39055         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
39056         use of PSEUDO_RET; perform the error check directly.
39057
39058 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
39059
39060         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
39061         with __int128_t.
39062
39063 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
39064
39065         * malloc/malloc (malloc_info): Fix formatting.
39066
39067 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
39068             Roland McGrath  <roland@hack.frob.com>
39069
39070         * malloc/malloc (malloc_info): Also print mmapped statistics.
39071
39072 2014-05-30  Roland McGrath  <roland@hack.frob.com>
39073
39074         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
39075         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
39076
39077 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
39078
39079         * malloc/malloc.c (malloc_info): Inline mi_arena.
39080
39081 2014-05-29  Richard Henderson  <rth@twiddle.net>
39082
39083         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
39084         Remove comma before expanding ASM_ARGS_##nr.
39085         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
39086         Make _x0 a strict output; make _x8 a strict input; adjust expansion
39087         of ASM_ARGS_##nr.
39088         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
39089         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
39090         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
39091         (ASM_ARGS_1): Add leading comma.
39092
39093         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
39094         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
39095         to __errno_location.
39096         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
39097         Remove the expected plt for __errno_location.
39098
39099         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
39100         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
39101         call to __read_tp.
39102
39103         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
39104         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
39105         it and break it down.
39106         (DOCARGS_0, DOCARGS_1): Do nothing.
39107         (DOCARGS_2): Update to store into the new stack frame.
39108         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
39109         (UNDOCARGS_1): Update to restore from the new stack frame.
39110         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
39111         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
39112
39113         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
39114         (SINGLE_THREAD_P): New parameter for result regno.
39115         (PSEUDO): Update to match; use cbz instead of beq.
39116
39117         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
39118         Use ENTRY to define the _nocancel entry point.  Share the syscall
39119         and syscall error check paths with the cancel path.
39120         (PSEUDO_END): New.
39121
39122         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
39123         whitespace; tabs before and after asm mnemonics.
39124
39125 2014-05-29  Eric Wong  <normalperson@yhbt.net>
39126
39127         [BZ #15132]
39128         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
39129         Call fstat64 or stat64 internally, depending on arguments passed.
39130         Replace stat buffer argument with file descriptor argument.
39131         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
39132         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
39133         Pass fd to __internal_statvfs instead of calling fstat64.
39134         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
39135         Pass fd to __internal_statvfs64 instead of calling fstat64.
39136         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
39137         Pass -1 to __internal_statvfs instead of calling stat64.
39138         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
39139         Pass -1 to __internal_statvfs64 instead of calling stat64.
39140
39141 2014-05-28  Roland McGrath  <roland@hack.frob.com>
39142
39143         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
39144         that was previously under [RESET_PID].
39145         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
39146
39147         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
39148         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
39149
39150 2014-05-27  Roland McGrath  <roland@hack.frob.com>
39151
39152         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
39153
39154         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
39155         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
39156
39157 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
39158
39159         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
39160
39161 2014-05-27  Andreas Schwab  <schwab@suse.de>
39162
39163         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
39164         TLS_INIT_TP macro.
39165         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
39166         * elf/rtld.c (init_tls, dl_main): Likewise.
39167         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
39168         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
39169         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
39170         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
39171         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
39172         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
39173         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
39174         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
39175         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
39176         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
39177         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
39178         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
39179         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
39180         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
39181         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
39182         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
39183         * sysdeps/generic/tls.h: Update description.
39184
39185 2014-05-27  Will Newton  <will.newton@linaro.org>
39186
39187         [BZ #16990]
39188         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
39189         and restore r2 rather than just restoring.
39190
39191 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
39192
39193         [BZ #16724]
39194         * libio/tst-ftell-append.c: New test case.
39195         * libio/Makefile (tests): Add test case.
39196         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
39197         append mode.
39198         * libio/wfileops.c (do_ftell_wide): Likewise.
39199
39200 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39201
39202         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39203
39204         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
39205         ...
39206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
39207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
39208         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
39209         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
39210         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
39211         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
39212         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
39213         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
39214         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
39215         Moved ...
39216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
39217         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
39218         Moved ...
39219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
39220         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
39221         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
39222         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
39223         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
39224         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
39225         ...
39226         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
39227         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
39228         Moved ...
39229         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
39230         here.
39231         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
39232         ...
39233         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
39234         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
39235         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
39236
39237         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
39238         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
39239         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
39240         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
39241
39242         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
39243         merge into ...
39244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
39245         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
39246         ...
39247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
39248         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
39249         ...
39250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
39251         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
39252         Moved ...
39253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
39254         here.
39255         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
39256         Moved ...
39257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
39258         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
39259         Moved ...
39260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
39261
39262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
39263         conditional [RESET_PID].
39264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
39265         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
39266         removed.
39267         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
39268         removed.
39269
39270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
39271         <tcb-offsets.h>.
39272         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39273         (__libc_vfork): New strong alias.
39274         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
39275         removed.
39276         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
39277         Removed.
39278
39279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
39280         <tcb-offsets.h>.
39281         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
39282         (__libc_vfork): New strong alias.
39283         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
39284         removed.
39285         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
39286         removed.
39287
39288 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
39289
39290         * malloc/malloc.c (mi_arena): New function.
39291         (malloc_info): Remove nested function mi_arena. Call non-nosted
39292         function mi_arena.
39293
39294 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39295
39296         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
39297         by insrwi.
39298         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
39299         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
39300         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
39301         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
39302         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
39303         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
39304         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
39305
39306 2014-05-26  Andreas Schwab  <schwab@suse.de>
39307
39308         [BZ #16984]
39309         * locale/programs/repertoire.c (repertoire_read): Add slash
39310         between I18NPATH element and file name.
39311         * locale/programs/locfile.c (locfile_read): Likewise.
39312
39313 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
39314
39315         * nptl/pthread_mutexattr_settype.c
39316         (__pthread_mutexattr_settype):
39317         Disable lock elision for PTHREAD_MUTEX_NORMAL.
39318
39319 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
39320
39321         * nptl/tst-mutex5 (do_test):
39322         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
39323
39324 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
39325
39326         * benchtests/README: Document 'init' directive.
39327         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
39328         BENCH_INIT.
39329         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
39330         (parse_file): Recognize 'init' directive.
39331
39332 2014-05-26  Kyle McMartin  <kyle@redhat.com>
39333
39334         [BZ #16796]
39335         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
39336         alignment of struct pthread.
39337
39338 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
39339
39340         [BZ #16878]
39341         * nscd/netgroupcache.c (addgetnetgrentX): Look for
39342         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
39343         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
39344         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
39345
39346 2014-05-25  Richard Henderson  <rth@twiddle.net>
39347
39348         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
39349         (SINGLE_THREAD_P_PIC): Remove.
39350         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
39351         (SINGLE_THREAD_P_PIC): Remove.
39352
39353         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
39354         branch to syscall error ...
39355         (PSEUDO): ... here.
39356         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
39357         from __local_syscall_error to .Lsyscall_error.
39358         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
39359         (SYSCALL_ERROR): Update label name.
39360
39361         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
39362         Do not use DOARGS/UNDOARGS.
39363         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
39364         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
39365         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
39366         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
39367         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
39368
39369         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
39370         block comment.
39371
39372         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
39373         define if !NOT_IN_libc.
39374         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
39375         define with non-default symbol versions.
39376
39377 2014-05-23  Richard Henderson  <rth@twiddle.net>
39378
39379         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
39380         (vfork, __vfork): Define via compat_symbol.
39381
39382         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
39383         [!HAVE_IFUNC] (vfork_compat): Remove.
39384         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
39385
39386 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
39387
39388         [BZ #16978]
39389         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
39390         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
39391         variable.
39392
39393 2014-05-23  Richard Henderson  <rth@twiddle.net>
39394
39395         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
39396         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
39397         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
39398         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
39399
39400         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
39401         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
39402         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
39403         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
39404         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
39405         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
39406         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
39407         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
39408         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
39409         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
39410         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
39411         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
39412         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
39413         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
39414         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
39415         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
39416         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
39417         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
39418         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
39419         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
39420         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
39421         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
39422         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
39423         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
39424         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
39425         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
39426         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
39427         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
39428         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
39429         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
39430         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
39431         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
39432         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
39433         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
39434         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
39435         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
39436         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
39437         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
39438         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
39439         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
39440         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
39441         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
39442         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
39443         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
39444         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
39445         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
39446         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
39447         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
39448         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
39449         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
39450         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
39451         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
39452         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
39453         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
39454         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
39455         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
39456
39457         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
39458         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
39459         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
39460         before exiting on error.
39461         (__libc_vfork): New strong alias.
39462         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
39463         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
39464
39465         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
39466         that was previously under [RESET_PID].
39467         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
39468
39469         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
39470
39471 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
39472
39473         [BZ #16977]
39474         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
39475         value when x - 1 is zero.
39476         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
39477         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
39478         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
39479         0.0L for an argument of 1.0L.
39480         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
39481         Likewise.
39482         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
39483         value when x - 1 is zero.
39484         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
39485         * sysdeps/i386/fpu/libm-test-ulps: Update.
39486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39487
39488 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
39489
39490         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
39491         alphasort and versionsort.
39492
39493 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39494
39495         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
39496         macro.
39497         [copysignf]: Likewise.
39498
39499 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
39500
39501         * crypt/md5-crypt.c: Fix formatting.
39502
39503 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39504
39505         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
39506         (b64_from_24bit): New function.
39507
39508 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39509
39510         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
39511         libc_hidden_builtin_def to ifunc.
39512         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
39513         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
39514
39515 2014-05-21  Roland McGrath  <roland@hack.frob.com>
39516
39517         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
39518         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
39519
39520 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
39521
39522         * nscd/Depend (linuxthreads): Remove.
39523         (nptl): Add.
39524         * resolv/Depend (linuxthreads): Remove.
39525         * rt/Depend (linuxthreads): Remove.
39526
39527         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
39528         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
39529         $(common-objpfx)elf/.
39530         (link-libc-before-gnulib): Likewise.
39531         (elfobjdir): Remove variable.
39532         * Makefile (install): Use $(elf-objpfx) instead of
39533         $(common-objpfx)elf/.
39534         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
39535         $(elfobjdir)/.
39536         (link-libc-deps): Likewise.
39537         ($(common-objpfx)libc.so): Likewise.
39538         ($(common-objpfx)linkobj/libc.so): Likewise.
39539         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
39540         instead of $(common-objpfx)elf/.
39541         (symbolic-link-list): Likewise.
39542         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
39543         [$(cross-compiling) = no]: Likewise.
39544         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
39545         $(elfobjdir)/.
39546         (static-gnulib-arch): Likewise.
39547         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
39548         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
39549         $(common-objpfx)elf/.
39550
39551 2014-05-21  Richard Henderson  <rth@redhat.com>
39552
39553         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
39554         (SINGLE_THREAD_P): Use the correct width load.  Fold
39555         into the ldr offset.
39556
39557         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
39558         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
39559
39560 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
39561
39562         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
39563         (libgcc_s_resume): Use __attribute_used__.
39564         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
39565         Likewise.
39566
39567 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39568
39569         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
39570         optimization when used with float constants.
39571
39572         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39573
39574 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
39575
39576         [BZ #16915]
39577         * locale/nl_langinfo_l.c: Make direct reference to every
39578         _nl_current_CATEGORY symbol.
39579         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
39580         (tests-static): Add tst-langinfo-static.
39581         (tests-special): Add tst-langinfo-static.out.
39582         ($(objpfx)tst-langinfo.out): Redirect output.
39583         ($(objpfx)tst-langinfo-static.out): New.
39584         * localedata/tst-langinfo.sh: Send output to stdout.
39585         * localedata/tst-langinfo-static.c: New file.
39586
39587         [BZ #16965]
39588         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
39589         when the shift amount is modulo the limb size.
39590
39591 2014-05-20  Richard Henderson  <rth@redhat.com>
39592
39593         [BZ #16967]
39594         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
39595         Change type of sa_flags from unsigned int to int.
39596
39597         [BZ #16966]
39598         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
39599
39600         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
39601
39602 2014-05-20  Will Newton  <will.newton@linaro.org>
39603
39604         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
39605         Test the return value of the system call in the nocancel case.
39606
39607 2014-05-20  Will Newton  <will.newton@linaro.org>
39608             Yvan Roux  <yvan.roux@linaro.org>
39609
39610         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
39611         #include of asm/ptrace.h.
39612         (PTRACE_GET_THREAD_AREA): Remove #undef.
39613         (PTRACE_GETHBPREGS): Likewise.
39614         (PTRACE_SETHBPREGS): Likewise.
39615         (struct user_regs_struct): New structure.
39616         (struct user_fpsimd_struct): New structure.
39617         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
39618         #include of asm/ptrace.h and second #include of sys/user.h.
39619         (PTRACE_GET_THREAD_AREA): Remove #undef.
39620         (PTRACE_GETHBPREGS): Likewise.
39621         (PTRACE_SETHBPREGS): Likewise.
39622         (ELF_NGREG): Use new struct user_regs_struct.
39623         (elf_fpregset_t): Use new struct user_fpsimd_struct.
39624
39625 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39626
39627         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
39628         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
39629
39630 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
39631
39632         [BZ #16958]
39633         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
39634         membar to avoid block loads/stores to overlap previous stores.
39635
39636 2014-05-17  Richard Henderson  <rth@redhat.com>
39637
39638         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
39639         Create the __##syscall_name##_nocancel entry point.
39640         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
39641         Remove; let the sysdep-cancel.h code create it.
39642
39643 2014-05-17  David S. Miller  <davem@davemloft.net>
39644
39645         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
39646         Protect with __USE_GNU.
39647         (TIOCSET_TEMPT): Likewise.
39648         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
39649         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
39650         these are already provided in bits/ioctl-types.h
39651
39652 2014-05-16  Roland McGrath  <roland@hack.frob.com>
39653
39654         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
39655         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
39656
39657         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
39658         Use wait4 regardless of [__NR_waitpid].
39659
39660 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
39661
39662         PR libgcc/60166
39663         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
39664         (_FP_NANSIGN_Q): Set the quiet bit.
39665
39666 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
39667
39668         * benchtests/Makefile
39669         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
39670         not $(common-objpfx)math/libm.so.
39671         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
39672         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
39673         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
39674         $(common-objpfx)dlfcn/libdl.so.
39675         ($(objpfx)tst-audit8): Depend on $(libm), not
39676         $(common-objpfx)math/libm.so.
39677         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
39678         not $(common-objpfx)dlfcn/libdl.so.
39679         * math/Makefile
39680         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
39681         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
39682         [$(build-shared) = yes].
39683         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
39684         $(common-objpfx)nptl/libpthread.so.
39685         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
39686         $(common-objpfx)math/libm.so$(libm.so-version) or
39687         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
39688         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
39689         $(common-objpfx)dlfcn/libdl.so.
39690         * setjmp/Makefile (link-libm): Remove variable.
39691         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
39692         * stdio-common/Makefile (link-libm): Remove variable.
39693         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
39694         * stdlib/Makefile (link-libm): Remove variable.
39695         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
39696         ($(objpfx)tst-strtod-round): Likewise.
39697         ($(objpfx)tst-tininess): Likewise.
39698         ($(objpfx)tst-strtod-underflow): Likewise.
39699         ($(objpfx)tst-strtod6): Likewise.
39700         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
39701         $(libdl), not $(common-objpfx)nptl/libpthread.so and
39702         $(common-objpfx)dlfcn/libdl.so.
39703
39704 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39705
39706         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
39707         BSD terminal modes definitions.
39708
39709 2014-05-16  Roland McGrath  <roland@hack.frob.com>
39710
39711         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
39712         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
39713
39714         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
39715         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
39716         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
39717         Don't do #include_next.
39718         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
39719         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
39720         Don't do #include_next.
39721         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
39722         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
39723         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
39724         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
39725
39726 2014-05-16  Allan McRae  <allan@archlinux.org>
39727
39728         * po/sv.po: Update Swedish translation from translation project.
39729
39730         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
39731         in sed expression.
39732
39733 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
39734
39735         [BZ #16917]
39736         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
39737         errno if the TIOCGPTN ioctl fails with an error different than
39738         EINVAL.
39739         * login/tst-ptsname.c: New file.
39740         * login/Makefile (tests): Add tst-ptsname.
39741
39742         [BZ #16943]
39743         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
39744         and prlimit64.
39745
39746 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
39747
39748         [BZ #16849]
39749         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
39750         herrno to return EAI_AGAIN.
39751
39752 2014-05-14  Roland McGrath  <roland@hack.frob.com>
39753
39754         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
39755         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
39756         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
39757         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
39758         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
39759         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
39760         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
39761         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
39762         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
39763         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
39764         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
39765         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
39766         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
39767         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
39768         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
39769         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
39770         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
39771         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
39772         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
39773         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
39774         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
39775         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
39776         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
39777         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
39778         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
39779         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
39780         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
39781         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
39782         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
39783         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
39784         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
39785         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
39786         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
39787         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
39788         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
39789         Moved ...
39790         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
39791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
39792         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
39793         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
39794         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
39795         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
39796         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
39797         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
39798         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
39799         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
39800         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
39801         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
39802         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
39803         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
39804         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
39805         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
39806         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
39807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
39808         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
39809         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
39810         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
39811         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
39812         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
39813         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
39814         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
39815         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
39816         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
39817         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
39818         Moved ...
39819         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
39820         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
39821         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
39822         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
39823         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
39824         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
39825         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
39826         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
39827         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
39828         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
39829         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
39830         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
39831         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
39832         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
39833         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
39834         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
39835         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
39836         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
39837         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
39838         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
39839         Moved ...
39840         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
39841         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
39842         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
39843
39844         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
39845         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
39846         (libpthread-sysdep_routines): Add elision-related stuff here instead.
39847         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
39848         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
39849         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
39850         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
39851         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
39852         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
39853         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
39854         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
39855         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
39856         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
39857         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
39858         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
39859         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
39860         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
39861         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
39862         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
39863         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
39864         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
39865         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
39866         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
39867         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
39868         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
39869         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
39870         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
39871         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
39872         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
39873         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
39874         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
39875
39876         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
39877         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
39878
39879         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
39880         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
39881         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
39882         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
39883         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
39884         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
39885         Moved ...
39886         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
39887         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
39888         Moved ...
39889         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
39890         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
39891         Moved ...
39892         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
39893         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
39894         Moved ...
39895         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
39896         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
39897         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
39898         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
39899         Moved ...
39900         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
39901         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
39902         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
39903         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
39904         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
39905         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
39906         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
39907         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
39908         Moved ...
39909         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
39910         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39911         Moved ...
39912         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39913         ... here.
39914         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
39915         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
39916         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
39917         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
39918         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39919         Moved ...
39920         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39921         ... here.
39922         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
39923         Moved ...
39924         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
39925         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
39926         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
39927         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
39928         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
39929         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
39930         Moved ...
39931         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
39932         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
39933         Moved ...
39934         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
39935         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
39936         Moved ...
39937         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
39938         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
39939         Moved ...
39940         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
39941         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
39942         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
39943         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
39944         Moved ...
39945         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
39946         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
39947         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
39948         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
39949         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
39950         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
39951         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
39952         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
39953         Moved ...
39954         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
39955         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39956         Moved ...
39957         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39958         ... here.
39959         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
39960         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
39961         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
39962         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
39963         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39964         Moved ...
39965         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39966         ... here.
39967         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
39968         Moved ...
39969         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
39970         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
39971         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
39972         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
39973         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
39974         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
39975         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
39976         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
39977         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
39978         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
39979         Moved ...
39980         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
39981         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
39982         Moved ...
39983         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
39984         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
39985         Moved ...
39986         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
39987         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
39988         Moved ...
39989         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
39990         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
39991         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
39992         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
39993         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
39994         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
39995         Moved ...
39996         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
39997         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
39998         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
39999         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
40000         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
40001         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
40002         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
40003         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
40004         Moved ...
40005         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
40006         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
40007         Moved ...
40008         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
40009         ... here.
40010         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
40011         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
40012         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
40013         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
40014         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
40015         Moved ...
40016         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
40017         ... here.
40018         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
40019         Moved ...
40020         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
40021         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
40022         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
40023         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
40024         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
40025         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
40026         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
40027         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
40028         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
40029         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
40030         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
40031
40032         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
40033         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
40034
40035         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
40036         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
40037
40038         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
40039         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
40040         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
40041         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
40042         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
40043         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
40044         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
40045         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
40046         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
40047         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
40048         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
40049         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
40050         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
40051         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
40052         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
40053         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
40054         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
40055         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
40056         Moved ...
40057         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
40058         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
40059         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
40060         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
40061         Moved ...
40062         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
40063         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
40064         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
40065         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
40066         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
40067         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
40068         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
40069         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
40070         Moved ...
40071         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
40072         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
40073         Moved ...
40074         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
40075         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
40076         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
40077         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
40078         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
40079         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
40080         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
40081         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
40082         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
40083         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
40084         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
40085         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
40086         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
40087         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
40088         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
40089         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
40090         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
40091
40092         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
40093         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
40094         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
40095         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
40096         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
40097
40098         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
40099         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
40100         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
40101         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
40102         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
40103         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
40104         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
40105         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
40106         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
40107         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
40108
40109         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
40110         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
40111
40112         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
40113         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
40114         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
40115         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
40116         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
40117         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
40118         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
40119         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
40120         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
40121         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
40122         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
40123         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
40124         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
40125         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
40126         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
40127         Update #include.
40128         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
40129         Likewise.
40130         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
40131         Likewise.
40132         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
40133         Likewise.
40134         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
40135         Likewise.
40136         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
40137         Likewise.
40138         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
40139         Likewise.
40140         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
40141         Likewise.
40142         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
40143         Likewise.
40144         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
40145         Likewise.
40146         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
40147         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
40148         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
40149         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
40150         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
40151         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
40152         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
40153         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
40154         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
40155         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
40156         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
40157         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
40158         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
40159         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
40160         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
40161
40162         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
40163         that was previously under [RESET_PID].
40164         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
40165         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
40166         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
40167
40168         * sysdeps/i386/nptl/Implies: New file.
40169         * sysdeps/x86_64/nptl/Implies: New file.
40170         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
40171         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
40172         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
40173         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
40174
40175         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
40176         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
40177         (__libc_vfork): New strong alias.
40178         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
40179         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
40180
40181         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
40182         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
40183         (__libc_vfork): New strong alias.
40184         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
40185         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
40186
40187         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
40188         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
40189         (__libc_vfork): New strong alias.
40190         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
40191         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
40192         * nptl/pt-vfork.c: New file.
40193         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
40194         (libpthread: GLIBC_2.20): New version set (empty).
40195
40196 2014-05-14  Will Newton  <will.newton@linaro.org>
40197
40198         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
40199         rather than #if.
40200
40201 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
40202
40203         [BZ #16564]
40204         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
40205         arguments with exponent 65 or above.
40206         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
40207         arguments 0x1p113L or above.
40208         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
40209         to arguments 0x1p107L or above.
40210         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
40211         positive arguments with exponent 65 or above.
40212         * math/auto-libm-test-in: Add more tests of log1p.
40213         * math/auto-libm-test-out: Regenerated.
40214
40215         [BZ #16928]
40216         * math/s_cacos.c (__cacos): Ensure zero real part of result from
40217         non-finite arguments is +0.
40218         * math/s_cacosf.c (__cacosf): Likewise.
40219         * math/s_cacosl.c (__cacosl): Likewise.
40220         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
40221         * sysdeps/i386/fpu/libm-test-ulps: Update.
40222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40223
40224         [BZ #16927]
40225         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
40226         value.
40227         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
40228         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
40229         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
40230         for explicit high bit of mantissa when testing for argument equal
40231         to 1.
40232         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
40233         * sysdeps/i386/fpu/libm-test-ulps: Update.
40234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40235
40236         [BZ #16516]
40237         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
40238         (__erf): Scale by 16 instead of 8 in potentially underflowing
40239         case.  Ensure exception if result actually underflows.
40240         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
40241         (__erff): Scale by 16 instead of 8 in potentially underflowing
40242         case.  Ensure exception if result actually underflows.
40243         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
40244         (efx8): Remove variable.
40245         (__erfl): Scale by 16 instead of 8 in potentially underflowing
40246         case.  Ensure exception if result actually underflows.
40247         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
40248         (efx8): Remove variable.
40249         (__erfl): Scale by 16 instead of 8 in potentially underflowing
40250         case.  Ensure exception if result actually underflows.
40251         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
40252         (efx8): Remove variable.
40253         (__erfl): Scale by 16 instead of 8 in potentially underflowing
40254         case.  Ensure exception if result actually underflows.
40255         * math/auto-libm-test-in: Add more tests of erf.
40256         * math/auto-libm-test-out: Regenerated.
40257
40258 2014-05-14  Andreas Schwab  <schwab@suse.de>
40259
40260         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
40261         Remove code conditionalized on USE___THREAD.
40262
40263         * config.h.in (HAVE_PT_CHOWN): Define as 0.
40264         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
40265         not definedness.
40266
40267 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
40268
40269         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
40270         Define unconditionally.
40271         (__ASSUME_O_CLOEXEC): Likewise.
40272         (__ASSUME_SOCK_CLOEXEC): Likewise.
40273         (__ASSUME_IN_NONBLOCK): Likewise.
40274         (__ASSUME_PIPE2): Likewise.
40275         (__ASSUME_EVENTFD2): Likewise.
40276         (__ASSUME_SIGNALFD4): Likewise.
40277         (__ASSUME_DUP3): Likewise.
40278         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
40279         (__ASSUME_DUP3): Do not define.
40280         (__ASSUME_EVENTFD2): Likewise.
40281         (__ASSUME_IN_NONBLOCK): Likewise.
40282         (__ASSUME_O_CLOEXEC): Likewise.
40283         (__ASSUME_PIPE2): Likewise.
40284         (__ASSUME_SIGNALFD4): Likewise.
40285         (__ASSUME_SOCK_CLOEXEC): Likewise.
40286         (__ASSUME_UTIMES): Undefine.
40287         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
40288         (__ASSUME_UTIMES): Do not define.
40289         (__ASSUME_O_CLOEXEC): Likewise.
40290         (__ASSUME_SOCK_CLOEXEC): Likewise.
40291         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
40292         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
40293         0x020621].
40294         (__ASSUME_PIPE2): Likewise.
40295         (__ASSUME_EVENTFD2): Likewise.
40296         (__ASSUME_SIGNALFD4): Likewise.
40297         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
40298         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
40299         Do not define.
40300         (__ASSUME_EVENTFD2): Likewise.
40301         (__ASSUME_SIGNALFD4): Likewise.
40302         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
40303         (__ASSUME_32BITUIDS): Likewise.
40304         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
40305         (__ASSUME_IPC64): Likewise.
40306         (__ASSUME_ST_INO_64_BIT): Likewise.
40307         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
40308         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
40309         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
40310         (__ASSUME_UTIMES): Do not define.
40311         (__ASSUME_PSELECT): Likewise.
40312         (__ASSUME_PPOLL): Likewise.
40313         (__ASSUME_O_CLOEXEC): Likewise.
40314         (__ASSUME_SOCK_CLOEXEC): Likewise.
40315         (__ASSUME_IN_NONBLOCK): Likewise.
40316         (__ASSUME_PIPE2): Likewise.
40317         (__ASSUME_EVENTFD2): Likewise.
40318         (__ASSUME_SIGNALFD4): Likewise.
40319         (__ASSUME_DUP3): Likewise.
40320         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
40321         (__ASSUME_UTIMES): Likewise.
40322         (__ASSUME_O_CLOEXEC): Likewise.
40323         (__ASSUME_SOCK_CLOEXEC): Likewise.
40324         (__ASSUME_IN_NONBLOCK): Likewise.
40325         (__ASSUME_PIPE2): Likewise.
40326         (__ASSUME_EVENTFD2): Likewise.
40327         (__ASSUME_SIGNALFD4): Likewise.
40328         (__ASSUME_DUP3): Likewise.
40329         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40330         (__ASSUME_UTIMES): Likewise.
40331         (__ASSUME_O_CLOEXEC): Likewise.
40332         (__ASSUME_SOCK_CLOEXEC): Likewise.
40333         (__ASSUME_IN_NONBLOCK): Likewise.
40334         (__ASSUME_PIPE2): Likewise.
40335         (__ASSUME_EVENTFD2): Likewise.
40336         (__ASSUME_SIGNALFD4): Likewise.
40337         (__ASSUME_DUP3): Likewise.
40338         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
40339         Likewise.
40340         (__ASSUME_UTIMES): Likewise.
40341         (__ASSUME_EVENTFD2): Likewise.
40342         (__ASSUME_SIGNALFD4): Likewise.
40343         * sysdeps/unix/sysv/linux/tile/kernel-features.h
40344         (__ASSUME_O_CLOEXEC): Likewise.
40345         (__ASSUME_SOCK_CLOEXEC): Likewise.
40346         (__ASSUME_IN_NONBLOCK): Likewise.
40347         (__ASSUME_PIPE2): Likewise.
40348         (__ASSUME_EVENTFD2): Likewise.
40349         (__ASSUME_SIGNALFD4): Likewise.
40350         (__ASSUME_DUP3): Likewise.
40351         (__ASSUME_UTIMES): Undefine.
40352
40353         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
40354         feclearexcept.  Remove symbol versioning code.
40355         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
40356         symbol versioning code.
40357         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
40358         symbol versioning code.
40359         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
40360         feupdateenv.  Remove symbol versioning code.
40361         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
40362         fegetexceptflag.  Remove symbol versioning code.
40363         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
40364         fesetexceptflag.  Remove symbol versioning code.
40365         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
40366         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
40367         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
40368         (__posix_fadvise64_l32): Remove prototype.
40369         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
40370         code.
40371
40372 2014-05-13  Roland McGrath  <roland@hack.frob.com>
40373
40374         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
40375         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
40376         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
40377         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
40378
40379 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
40380
40381         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
40382         current working directory
40383
40384 2014-05-13  Roland McGrath  <roland@hack.frob.com>
40385
40386         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
40387         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
40388         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
40389         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
40390         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
40391         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
40392         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
40393         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
40394         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
40395         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
40396         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
40397         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
40398         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
40399         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
40400         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
40401         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
40402         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
40403         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
40404         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
40405         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
40406         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
40407         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
40408         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
40409         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
40410         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
40411         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
40412         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
40413         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
40414         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
40415         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
40416         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
40417         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
40418         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
40419         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
40420         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
40421         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
40422         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
40423         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
40424         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
40425         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
40426         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
40427         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
40428
40429         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
40430         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
40431
40432         * sysdeps/unix/sysv/linux/arm/Makefile
40433         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
40434         Add rt-aeabi_unwind_cpp_pr1.
40435         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
40436         Add nptl-aeabi_unwind_cpp_pr1.
40437         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
40438         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
40439         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
40440         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
40441         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
40442         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
40443
40444         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
40445         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
40446         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
40447         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
40448
40449         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
40450         Deconditionalize the code that was previously under [RESET_PID].
40451         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
40452
40453         * sysdeps/generic/exit-thread.h: New file.
40454         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
40455         * include/unistd.h (__exit_thread): Remove declaration.
40456         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
40457         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
40458         * csu/libc-start.c: Include <exit-thread.h>.
40459         (LIBC_START_MAIN): Pass no argument to __exit_thread.
40460         * nptl/pthread_create.c: Include <exit-thread.h>.
40461         (start_thread): Call __exit_thread in place of __exit_thread_inline.
40462         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
40463         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
40464         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
40465         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
40466         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
40467         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
40468         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
40469         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
40470         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
40471         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
40472         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
40473         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
40474         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
40475         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
40476         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
40477         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
40478
40479 2014-05-13  Andreas Schwab  <schwab@suse.de>
40480
40481         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
40482
40483 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
40484
40485         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
40486         (__ASSUME_UTIMES): Do not condition on kernel version.
40487         (__ASSUME_PSELECT): Define unconditionally.
40488         (__ASSUME_PPOLL): Likewise.
40489         (__ASSUME_ATFCTS): Likewise.
40490         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
40491         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
40492         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
40493         (__ASSUME_UTIMENSAT): Define unconditionally.
40494         (__ASSUME_PRIVATE_FUTEX): Likewise.
40495         (__ASSUME_FALLOCATE): Likewise.
40496         (__ASSUME_O_CLOEXEC): Likewise.
40497         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
40498         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
40499         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
40500         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
40501         (__ASSUME_IN_NONBLOCK): Likewise.
40502         (__ASSUME_PIPE2): Likewise.
40503         (__ASSUME_EVENTFD2): Likewise.
40504         (__ASSUME_SIGNALFD4): Likewise.
40505         (__ASSUME_DUP3): Likewise.
40506         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
40507         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
40508         (__ASSUME_AT_RANDOM): Likewise.
40509         (__ASSUME_PREADV): Likewise.
40510         (__ASSUME_PWRITEV): Likewise.
40511         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
40512         (__ASSUME_F_GETOWN_EX): Define unconditionally.
40513         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
40514         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
40515         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
40516         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
40517         (__ASSUME_O_CLOEXEC): Define unconditionally.
40518         (__ASSUME_PSELECT): Do not undefine conditionally.
40519         (__ASSUME_PPOLL): Likewise.
40520         (__ASSUME_ATFCTS): Likewise.
40521         (__ASSUME_SET_ROBUST_LIST): Likewise.
40522         (__ASSUME_UTIMENSAT): Likewise.
40523         (__ASSUME_FDATASYNC): Define unconditionally.
40524         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40525         (__ASSUME_SIGFRAME_V2): Likewise.
40526         )__ASSUME_EVENTFD2): Likewise.
40527         (__ASSUME_SIGNALFD4): Likewise.
40528         (__ASSUME_PSELECT): Do not undefine conditionally.
40529         (__ASSUME_PPOLL): Likewise.
40530         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
40531         (__ASSUME_PSELECT): Define unconditionally.
40532         (__ASSUME_PPOLL): Likewise.
40533         (__ASSUME_O_CLOEXEC): Likewise.
40534         (__ASSUME_SOCK_CLOEXEC): Likewise.
40535         (__ASSUME_IN_NONBLOCK): Likewise.
40536         (__ASSUME_PIPE2): Likewise.
40537         (__ASSUME_EVENTFD2): Likewise.
40538         (__ASSUME_SIGNALFD4): Likewise.
40539         (__ASSUME_DUP3): Likewise.
40540         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
40541         (__ASSUME_O_CLOEXEC): Likewise.
40542         (__ASSUME_SOCK_CLOEXEC): Likewise.
40543         (__ASSUME_IN_NONBLOCK): Likewise.
40544         (__ASSUME_PIPE2): Likewise.
40545         (__ASSUME_EVENTFD2): Likewise.
40546         (__ASSUME_SIGNALFD4): Likewise.
40547         (__ASSUME_DUP3): Likewise.
40548         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40549         (__ASSUME_EVENTFD2): Likewise.
40550         (__ASSUME_SIGNALFD4): Likewise.
40551         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
40552
40553 2014-05-12  Andreas Schwab  <schwab@suse.de>
40554
40555         [BZ #16932]
40556         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
40557         (_nss_nis_gethostbyname4_r): Return error if item length is larger
40558         than maximum RPC packet size.
40559         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
40560         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
40561         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
40562         (_nss_nis_getservbyport_r): Likewise.
40563
40564 2014-05-12  Will Newton  <will.newton@linaro.org>
40565
40566         * malloc/Makefile (tests): Add tst-mallopt.
40567         * malloc/tst-mallopt.c: New file.
40568
40569 2014-05-09  Roland McGrath  <roland@hack.frob.com>
40570
40571         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
40572         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
40573
40574 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40575
40576         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
40577         (tst-tlsmod6.so): Likewise.
40578
40579 2014-05-09  Roland McGrath  <roland@hack.frob.com>
40580
40581         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
40582
40583 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
40584
40585         [BZ #16064]
40586         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
40587         and <dl-procinfo.h>.
40588         (__fegetenv): Save SSE state in envp->__eip if supported.
40589         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
40590         envp->__eip if supported.
40591         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
40592         and <dl-procinfo.h>.
40593         (__fesetenv): Always set __eip, __cs_selector, __opcode,
40594         __data_offset and __data_selector in environment to 0.  Set SSE
40595         state if supported.
40596         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
40597         test-fenv-sse.
40598         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
40599         -mfpmath=sse.
40600         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
40601
40602 2014-05-09  Will Newton  <will.newton@linaro.org>
40603
40604         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
40605         and libc_relro_required for ARM.
40606         * sysdeps/arm/preconfigure: Regenerate.
40607
40608 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
40609             Stefan Liebler  <stli@linux.vnet.ibm.com>
40610
40611         * config.make.in (enable-lock-elision): New Makefile variable.
40612         * configure.ac: Likewise.
40613         * configure: Regenerate.
40614         * sysdeps/s390/configure.ac:
40615         Add check for gcc transactions support.
40616         * sysdeps/s390/configure: Regenerate.
40617         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
40618         Build elision files if enabled.
40619         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
40620         Add lock elision support for s390.
40621         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
40622         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
40623         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
40624         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
40625         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
40626         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
40627         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
40628         Likewise.
40629         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
40630         Likewise.
40631         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
40632         Likewise.
40633         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
40634         Likewise.
40635         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
40636         (__lll_timedlock_elision, __lll_lock_elision)
40637         (__lll_unlock_elision, __lll_trylock_elision)
40638         (lll_timedlock_elision, lll_lock_elision)
40639         (lll_unlock_elision, lll_trylock_elision): Add.
40640         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40641         (pthread_mutex_t): Add lock elision support for s390.
40642
40643 2014-05-14  Wilco  <wdijkstr@arm.com>
40644
40645         * sysdeps/arm/fclrexcpt.c: Cleanup.
40646         * sysdeps/arm/fedisblxcpt.c: Cleanup.
40647         * sysdeps/arm/feenablxcpt.c: Cleanup.
40648         * sysdeps/arm/fegetenv.c: Cleanup.
40649         * sysdeps/arm/fegetexcept.c: Cleanup.
40650         * sysdeps/arm/fegetround.c: Cleanup.
40651         * sysdeps/arm/feholdexcpt.c: Cleanup.
40652         * sysdeps/arm/fesetenv.c: Cleanup.
40653         * sysdeps/arm/fesetround.c: Cleanup.
40654         * sysdeps/arm/feupdateenv.c: Cleanup.
40655         * sysdeps/arm/fgetexcptflg.c: Cleanup.
40656         * sysdeps/arm/fraiseexcpt.c: Cleanup.
40657         * sysdeps/arm/fsetexcptflg.c: Cleanup.
40658         * sysdeps/arm/ftestexcept.c: Cleanup.
40659         * sysdeps/arm/get-rounding-mode.h: Cleanup.
40660         * sysdeps/arm/setfpucw.c: Cleanup.
40661
40662 2014-05-09  Will Newton  <will.newton@linaro.org>
40663
40664         * sysdeps/arm/armv7/strcmp.S: New file.
40665         * NEWS: Mention addition of ARMv7 optimized strcmp.
40666
40667 2014-05-08  Roland McGrath  <roland@hack.frob.com>
40668
40669         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
40670         look for %.ac rather than %.in.
40671
40672         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
40673         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
40674         * sysdeps/mach/hurd/configure: Regenerated.
40675         * sysdeps/unix/sysv/linux/configure: Regenerated.
40676
40677         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
40678
40679 2014-05-07  Steve Ellcey  <sellcey@mips.com>
40680
40681         [BZ# 16922]
40682         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
40683         (LONG_SUB): Ditto.
40684         (PTR_SUB): Ditto.
40685
40686 2014-05-07  Andreas Schwab  <schwab@suse.de>
40687
40688         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
40689         when skipping over non-matching result from nscd.
40690
40691 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
40692
40693         [BZ #16876]
40694         * nptl/sockperf.c (client): Check socket return value.
40695
40696         [BZ #16877]
40697         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
40698         nscd security class.
40699
40700 2014-05-06  Roland McGrath  <roland@hack.frob.com>
40701
40702         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
40703         * sysdeps/arm/unwind.h: ... here.
40704
40705 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
40706
40707         [BZ# 16916]
40708         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
40709         Define.
40710
40711 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
40712
40713         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
40714         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
40715         multiarch strncpy for PPC64.
40716         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
40717         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
40718         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
40719         multiarch optimizations.
40720         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40721         (__libc_ifunc_impl_list): Likewise.
40722         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
40723         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
40724         multiarch stpncpy for PPC64.
40725         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
40726         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
40727
40728 2014-05-06  Andreas Schwab  <schwab@suse.de>
40729
40730         [BZ #16912]
40731         * gmon/mcount.c (_MCOUNT_DECL): Use
40732         atomic_compare_and_exchange_bool_acq instead of
40733         catomic_compare_and_exchange_bool_acq.
40734
40735 2014-05-05  Roland McGrath  <roland@hack.frob.com>
40736
40737         * elf/Makefile (others, install-bin): Remove pldd.
40738         (pldd-modules): Variable removed.
40739         ($(objpfx)pldd): Target removed.
40740         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
40741         (others, install-bin): Append pldd here.
40742         ($(objpfx)pldd): New target.
40743
40744         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
40745         to 0, so the first #if test emitted later doesn't see it undefined.
40746         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
40747         * sysdeps/gnu/errlist.c: Regenerated.
40748
40749 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40750
40751         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
40752         [libc_hidden_builtin_def]: Define to empty value.
40753         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
40754         [libc_hidden_builtin_def]: Likewise.
40755         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
40756         [libc_hidden_builtin_def]: Likewise.
40757         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
40758         [libc_hidden_builtin_def]: Likewise.
40759         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
40760         __redirect_memcpy and define ifunc as default hidden symbol.
40761         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
40762         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
40763
40764 2014-05-04  Adam Conrad  <adconrad@0c3.net>
40765
40766         * locale/iso-4217.def: Reintroduce XDR currency.
40767
40768 2014-05-04  Allan McRae  <allan@archlinux.org>
40769
40770         * po/eo.po: Update Esperanto translation from translation project.
40771
40772 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
40773
40774         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
40775         and FEATURE_INDEX_MAX to 1.
40776         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
40777
40778 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40779
40780         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
40781         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
40782         * iconvdata/big5.c (ONE_DIRECTION): Define.
40783         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
40784         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
40785         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
40786         * iconvdata/cp932.c (ONE_DIRECTION): Define.
40787         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
40788         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
40789         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
40790         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
40791         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
40792         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
40793         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
40794         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
40795         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
40796         * iconvdata/gbk.c (ONE_DIRECTION): Define.
40797         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
40798         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
40799         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
40800         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
40801         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
40802         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
40803         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
40804         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
40805         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
40806         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
40807         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
40808         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
40809         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
40810         * iconvdata/iso646.c (ONE_DIRECTION): Define.
40811         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
40812         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
40813         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
40814         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
40815         * iconvdata/johab.c (ONE_DIRECTION): Define.
40816         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
40817         * iconvdata/sjis.c (ONE_DIRECTION): Define.
40818         * iconvdata/t.61.c (ONE_DIRECTION): Define.
40819         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
40820         * iconvdata/tscii.c (ONE_DIRECTION): Define.
40821         * iconvdata/uhc.c (ONE_DIRECTION): Define.
40822         * iconvdata/unicode.c (ONE_DIRECTION): Define.
40823         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
40824         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
40825         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
40826
40827 2014-05-01  Roland McGrath  <roland@hack.frob.com>
40828
40829         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
40830         (_IO_JUMPS_OFFSET): Define to 0.
40831
40832         * nptl/sysdeps/pthread/bits/libc-lock.h
40833         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
40834         (__libc_lock_define_initialized_recursive): Always define using
40835         initializer.  Modern compilers treat uninitialized (implicit zero) and
40836         explicit zero initializers the same (i.e. put the datum in bss).
40837
40838 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40839
40840         * nscd/nscd-client.h: Include <string.h>.
40841
40842 2014-05-01  David S. Miller  <davem@davemloft.net>
40843
40844         [BZ #16885]
40845         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
40846         multiple zero bytes exist at the end of a string.
40847         Reported by Aurelien Jarno <aurelien@aurel32.net>
40848
40849         * string/test-strcmp.c (check): Add explicit test for situations where
40850         there are multiple zero bytes after the first.
40851
40852 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40853
40854         [BZ #16890]
40855         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
40856         when compiling wprintf.
40857         * stdio-common/tstdiomisc.c (t3): New function.
40858         (main): Call it.
40859
40860 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40861
40862         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
40863         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
40864         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
40865         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
40866
40867 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40868
40869         * stdlib/longlong.h: Updated from GCC.
40870
40871 2014-05-01  Will Newton  <will.newton@linaro.org>
40872             Bernard Ogden  <bernie.ogden@linaro.org>
40873
40874         * NEWS: Update fixed bug list.
40875
40876         [BZ #15119]
40877         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
40878
40879 2014-04-30  David S. Miller  <davem@davemloft.net>
40880
40881         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
40882         (libc_feholdexcept_setround_sparc_ctx): New function.
40883         (libc_fesetenv_sparc_ctx): Likewise.
40884         (libc_feupdateenv_sparc_ctx): Likewise.
40885         (libc_feholdsetround_sparc_ctx): Likewise.
40886         (libc_feholdexcept_setround_ctx): Define.
40887         (libc_feholdexcept_setroundf_ctx): Likewise.
40888         (libc_feholdexcept_setroundl_ctx): Likewise.
40889         (libc_fesetenv_ctx): Likewise.
40890         (libc_fesetenvf_ctx): Likewise.
40891         (libc_fesetenvl_ctx): Likewise.
40892         (libc_feupdateenv_ctx): Likewise.
40893         (libc_feupdateenvf_ctx): Likewise.
40894         (libc_feupdateenvl_ctx): Likewise.
40895         (libc_feresetround_ctx): Likewise.
40896         (libc_feresetroundf_ctx): Likewise.
40897         (libc_feresetroundl_ctx): Likewise.
40898         (libc_feholdsetround_ctx): Likewise.
40899         (libc_feholdsetroundf_ctx): Likewise.
40900         (libc_feholdsetroundl_ctx): Likewise.
40901
40902         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40903         with __USE_GNU instead of XOPEN cpp guards.
40904
40905         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
40906         0.
40907
40908         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40909         with XOPEN cpp guards.
40910
40911 2014-04-30  Julian Brown  <julian@codesourcery.com>
40912
40913         [BZ #16888]
40914         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
40915         handling.
40916
40917 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
40918
40919         [BZ #9894]
40920         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
40921         Change to 2.6.32.
40922         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
40923         * sysdeps/unix/sysv/linux/configure: Regenerated.
40924         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
40925         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
40926         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
40927         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
40928         * README: Update reference to required Linux kernel version.
40929         * manual/install.texi (Linux): Update reference to required Linux
40930         kernel headers version.
40931         * INSTALL: Regenerated.
40932
40933         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
40934         header inclusion.
40935         [POSIX] (limits.h): Likewise.
40936         [POSIX] (math.h): Likewise.
40937         [POSIX] (sys/wait.h): Likewise.
40938         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
40939         function.
40940         [POSIX] (stddef.h): Do not allow header inclusion.
40941
40942 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40943
40944         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
40945
40946 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
40947
40948         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
40949         Return immediately after lll_futex_wake.
40950
40951 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40952
40953         [BZ #16791]
40954         * nscd/nscd-client.h (datahead_init_common): Initialize entire
40955         structure.
40956         (datahead_init_pos): Call datahead_init_common early.
40957         (datahead_init_neg): Likewise.
40958
40959         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
40960         datahead_init_neg): New functions.
40961         * nscd/aicache.c (addhstaiX): Use them.
40962         * nscd/grpcache.c (cache_addgr): Likewise.
40963         * nscd/hstcache.c (cache_addhst): Likewise.
40964         * nscd/initgrcache.c (addinitgroupsX): Likewise.
40965         * nscd/netgroupcache.c (do_notfound): Likewise.
40966         (addgetnetgrentX): Likewise.
40967         (addinnetgrX): Likewise.
40968         * nscd/pwdcache.c (cache_addpw): Likewise.
40969         * nscd/servicescache.c (cache_addserv): Likewise.
40970
40971 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40972             Atsushi Onoe  <atsushi@onoe.org>
40973
40974         [BZ #14308]
40975         [BZ #12994]
40976         [BZ #13651]
40977         * resolv/res_query.c (__libc_res_nsearch): Return if at least
40978         one response is valid.
40979         * resolv/res_send.c (send_dg): Check for validity of other
40980         response if the current response is a referral.
40981
40982 2014-04-29  Steve Ellcey  <sellcey@mips.com>
40983
40984         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
40985
40986 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
40987
40988         [BZ #16823]
40989         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
40990         Always divide by positive zero when computing -Inf result.
40991         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
40992         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
40993
40994 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40995
40996         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
40997         FPSCR if value do not change.
40998         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
40999         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
41000         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
41001         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41002         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
41003         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
41004         function.
41005
41006 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
41007
41008         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
41009         * sysdeps/unix/sysv/linux/hppa: Move directory from
41010         ports/systeps/unix/sysv/linux/hppa.
41011         * README: Update listing for hppa-*-linux-gnu.
41012
41013 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
41014
41015         [BZ #16754]
41016         * manual/stdio.texi (Hook functions): Fix types of stream hook
41017         functions.
41018         [BZ #16854]
41019         * socket/sys/socket.h: Fix typo in comment.
41020
41021 2014-04-28  Wilco  <wdijkstr@arm.com>
41022
41023         * sysdeps/arm/fenv_private.h: New file.
41024         * sysdeps/arm/math_private.h: New file.
41025         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
41026
41027 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
41028
41029         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
41030         with __int128_t.
41031         (La_x86_64_retval): Likewise.
41032
41033 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
41034
41035         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
41036         fpsr if value didn't change.
41037         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
41038         to fpcr if value didn't change.
41039         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
41040         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
41041         fpsr or fpcr if value didn't change.
41042         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
41043         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
41044         fpcr if value didn't change.
41045         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
41046         to fpsr if value didn't change.
41047
41048 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
41049
41050         * nptl/tst-sem3.c: Use test-skeleton.c
41051         (main): Rename to do_test.  Use return instead of
41052         exit.
41053         * nptl/tst-sem4.c: Use test-skeleton.c
41054         (main): Rename to do_test.
41055
41056 2014-04-22  David S. Miller  <davem@davemloft.net>
41057
41058         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
41059         (struct sigaction): New struct member __glibc_reserved0, change
41060         type of sa_flags to int.
41061
41062 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
41063
41064         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
41065         (COUNT_LEADING_ZEROS_0): Define for AArch64.
41066
41067 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
41068
41069         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
41070         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
41071
41072 2014-04-22  Will Newton  <will.newton@linaro.org>
41073             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
41074
41075         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
41076         (__longjmp): Add longjmp and longjmp_target SystemTap
41077         probes.
41078         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
41079         (__sigsetjmp): Add setjmp SystemTap probe.
41080
41081 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
41082
41083         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
41084         match manual order.
41085
41086 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41087
41088         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
41089
41090         * sysdeps/powerpc/fpu/fenv_private.h
41091         (libc_feholdexcept_setroundl_ctx): Define to
41092         libc_feholdexcept_setround_ppc_ctx.
41093         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
41094         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
41095         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
41096         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
41097
41098 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
41099
41100         * sysdeps/aarch64/math-tests.h: New file.
41101
41102 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
41103
41104         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
41105         New.
41106         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
41107         Check and set bit_AVX2_Usable.
41108         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
41109         macro.
41110         (bit_AVX2): Likewise.
41111         (index_AVX2_Usable): Likewise.
41112         (CPUID_AVX2): Likewise.
41113         (HAS_AVX2): Likewise.
41114
41115 2014-04-17  Will Newton  <will.newton@linaro.org>
41116
41117         * manual/setjmp.texi (System V contexts): Add note that
41118         calling setcontext on a context created by a call to a
41119         signal handler is undefined.  Update text to note that
41120         setcontext from a signal handler is possible but not
41121         recommended.
41122
41123         [BZ #16629]
41124         * stdlib/tst-setcontext.c: Include signal.h.
41125         (main): Check that the signal stack before and
41126         after swapcontext is the same.
41127
41128         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
41129         Re-implement to restore registers in user code and avoid
41130         rt_sigreturn system call.
41131
41132 2014-04-17  Wilco  <wdijkstr@arm.com>
41133
41134         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
41135         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
41136         * math/test-fenv.c: Skip exception trap tests on targets which only
41137         support non-stop mode.
41138
41139 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
41140             Wilco Dijkstra  <wilco.dijkstra@arm.com>
41141
41142         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
41143         (libc_feholdsetround_aarch64_ctx)
41144         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
41145         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
41146         (libc_feresetround_ctx, libc_feresetroundf_ctx)
41147         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
41148         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
41149         (libc_feresetround_noexl_ctx): Define.
41150
41151 2014-04-16  Richard Henderson  <rth@redhat.com>
41152
41153         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
41154
41155         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
41156         unwind tables.
41157
41158         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
41159         const from the non-libc, non-ldso copy.
41160
41161         * sysdeps/alpha/libm-test-ulps: Regenerate.
41162
41163 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
41164             Wilco Dijkstra  <wilco.dijkstra@arm.com>
41165
41166         * sysdeps/aarch64/fpu/math_private.h: New file.
41167
41168 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
41169
41170         * sysdeps/aarch64/libm-test-ulps: Regenerate.
41171
41172 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
41173
41174         [BZ #16275]
41175         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
41176         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
41177         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
41178         Intel MPX bound registers before _dl_profile_fixup.
41179         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
41180         registers after _dl_profile_fixup.  Save and restore bound
41181         registers bnd0/bnd1 when calling _dl_call_pltexit.
41182         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
41183         (LR_BND_OFFSET): Likewise.
41184         (LRV_BND0_OFFSET): Likewise.
41185         (LRV_BND1_OFFSET): Likewise.
41186
41187 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41188
41189         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
41190         to...
41191         * sysdeps/mach/hurd/i386/tls.h: ... here.
41192         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
41193         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
41194         fields.
41195
41196 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41197
41198         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
41199
41200 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
41201
41202         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
41203
41204 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
41205
41206         [BZ #14770]
41207         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
41208         * sysdeps/s390/configure: Regenerate.
41209
41210         [BZ #16824]
41211         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
41212         Set round-to-nearest internally to reduce error accumulation.
41213
41214 2014-04-16  Alan Modra  <amodra@gmail.com>
41215
41216         [BZ #16740]
41217         [BZ #16619]
41218         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
41219         * math/libm-test.inc (frexp_test_data): Add tests.
41220         * NEWS: Update fixed bug list.
41221
41222 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
41223
41224         * benchtests/Makefile: Depend on libraries in build directory.
41225         (bench-math): Separate out math tests.
41226         (bench-pthread): Separate out pthread tests.
41227         (bench): Include math and pthread tests.
41228
41229 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
41230
41231         [BZ #16831]
41232         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
41233         _dl_debug_initialize.
41234
41235         * configure.ac: Remove SELinux header check.
41236         * configure: Regenerate.
41237         * nscd/selinux.c (perms): Array of const char* to permission names.
41238         (nscd_request_avc_has_perm): Call security_deny_unknown to find
41239         default policy. Call string_to_security_class and string_to_av_perm to
41240         translate strings. Enforce default policy and call avs_has_perm with
41241         results of translated strings.
41242
41243 2014-04-13  David S. Miller  <davem@davemloft.net>
41244
41245         * sysdeps/sparc/fpu/libm-test-ulps: Update.
41246
41247 2014-04-12  Allan McRae  <allan@archlinux.org>
41248
41249         [BZ #16838]
41250         * manual/string.texi (Collation Functions): Fix qsort argument
41251         order in example.
41252         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
41253
41254 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
41255
41256         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
41257         Make the test a no-op if there are no exceptions defined.
41258
41259 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
41260
41261         * elf/Makefile (tests): make tst-dlopen-aout conditional on
41262         enable-hardcoded-path-in-tests
41263
41264 2014-04-11  Will Newton  <will.newton@linaro.org>
41265
41266         * benchtests/Makefile (extra-objs): Add json-lib.o.
41267         (bench-func): Tidy up JSON output.
41268         * benchtests/bench-skeleton.c: Include json-lib.h.
41269         (main): Use JSON library functions to do output of
41270         benchmark results.
41271         * benchtests/bench-timing-type.c (main): Output the
41272         timing type simply, leaving formatting to the user.
41273         * benchtests/json-lib.c: New file.
41274         * benchtests/json-lib.h: Likewise.
41275
41276 2014-04-11  Torvald Riegel  <triegel@redhat.com>
41277
41278         [BZ #15215]
41279         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
41280         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
41281         memory barriers.  Add comments.
41282         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
41283         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
41284         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
41285         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
41286         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
41287         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
41288
41289 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
41290
41291         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
41292         * sysdeps/s390/s390-64/configure.ac: ... this ...
41293         * sysdeps/s390/configure.ac: ... to here.
41294         * sysdeps/s390/s390-32/configure: Delete file.
41295         * sysdeps/s390/s390-64/configure: Delete file.
41296         * sysdeps/s390/configure: Regenerate.
41297
41298 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
41299
41300         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
41301
41302 2014-04-11  Will Newton  <will.newton@linaro.org>
41303
41304         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
41305         to zero if it is not defined elsewhere.  (mtrim): Test
41306         the value of MALLOC_DEBUG with #if rather than #ifdef.
41307
41308 2014-04-10 Torvald Riegel  <triegel@redhat.com>
41309
41310         * benchtests/pthread_once-inputs: New file.
41311         * benchtests/pthread_once-source.c: New file.
41312         * benchtests/README: Update documentation.
41313
41314 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
41315             H.J. Lu  <hongjiu.lu@intel.com>
41316
41317         [BZ #16275]
41318         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
41319         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
41320         * sysdeps/x86_64/configure: Regenerated.
41321         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
41322         macro.
41323         (REGISTER_SAVE_RAX): Likewise.
41324         (REGISTER_SAVE_RCX): Likewise.
41325         (REGISTER_SAVE_RDX): Likewise.
41326         (REGISTER_SAVE_RSI): Likewise.
41327         (REGISTER_SAVE_RDI): Likewise.
41328         (REGISTER_SAVE_R8): Likewise.
41329         (REGISTER_SAVE_R9): Likewise.
41330         (REGISTER_SAVE_BND0): Likewise.
41331         (REGISTER_SAVE_BND1): Likewise.
41332         (REGISTER_SAVE_BND2): Likewise.
41333         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
41334         bound registers when calling _dl_fixup.
41335
41336 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41337
41338         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
41339         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
41340         of its definition.
41341         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
41342         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
41343         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
41344         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
41345         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
41346         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
41347         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
41348
41349 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
41350
41351         [BZ #15514]
41352         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
41353         pathconf(_PC_NAME_MAX).
41354
41355 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41356
41357         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
41358         Remove macro usage.
41359         (__PTHREAD_SPINS): Move definition to ...
41360         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
41361         (__PTHREAD_SPINS): ... here.
41362         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
41363         (__PTHREAD_SPIN): Likewise.
41364         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
41365         (__PTHREAD_SPIN): Likewise.
41366         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
41367         (__PTHREAD_SPIN): Likewise.
41368         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
41369         (__PTHREAD_SPIN): Likewise.
41370         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
41371         (__PTHREAD_SPIN): Likewise.
41372         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
41373         (__PTHREAD_SPIN): Likewise.
41374         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
41375         (__PTHREAD_SPIN): Likewise.
41376         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
41377         (__PTHREAD_SPIN): Likewise.
41378         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
41379         (__PTHREAD_SPIN): Likewise.
41380         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
41381         (__PTHREAD_SPIN): Likewise.
41382         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
41383         (__PTHREAD_SPIN): Likewise.
41384         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
41385         (__PTHREAD_SPIN): Likewise.
41386
41387         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
41388         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
41389         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
41390         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
41391         imply folder.
41392         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
41393         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
41394         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
41395         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
41396         correct imply path.
41397         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
41398         strlen symbol for non multi-arch builds.
41399         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
41400         missing hidden_def and weak_alias.
41401
41402 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
41403
41404         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
41405
41406 2014-04-07  Will Newton  <will.newton@linaro.org>
41407
41408         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
41409         and contents.  [!_LIBC] Remove #ifndef and contents.
41410         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
41411         * string/memccpy.c (__memccpy): Use ANSI prototype.
41412         * string/memfrob.c (memfrob): Likewise.
41413         * string/strcoll.c (STRCOLL): Likewise.
41414         * string/strlen.c (strlen): Likewise.
41415         * string/strtok.c (STRTOK): Likewise.
41416         * string/strcat.c: Remove unused #include of memcopy.h.
41417         (strcat): Use ANSI prototype.
41418         * string/strchr.c: Remove unused #include of memcopy.h.
41419         (strchr): Use ANSI prototype.
41420         * string/strcmp.c: Remove unused #include of memcopy.h.
41421         (strcmp): Use ANSI prototype.
41422         * string/strcpy.c: Remove unused #include of memcopy.h.
41423         (strcpy): Use ANSI prototype.
41424
41425 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41426
41427         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
41428         * config.make.in (config-extra-cppflags): Set it from
41429         libc_extra_cppflags.
41430         * configure.ac (libc_extra_cflags): Make it accumulate over
41431         configure fragments.
41432         (libc_extra_cppflags): New flag.
41433         * configure. Regenerate.
41434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
41435         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
41436         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
41437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
41438
41439         [BZ #16815]
41440         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
41441         result for FE_DOWNWARD rounding mode.
41442         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
41443         Likewise.
41444         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41445
41446 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
41447
41448         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
41449         in function argument name.
41450
41451 2014-04-03  David Svoboda  <svoboda@cert.org>
41452
41453         [BZ #5666]
41454         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
41455         explicitly.
41456
41457 2014-04-03  Roland McGrath  <roland@hack.frob.com>
41458
41459         * elf/dl-unmap-segments.h: New file.
41460         * sysdeps/generic/ldsodefs.h
41461         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
41462         * elf/dl-close.c: Include <dl-unmap-segments.h>.
41463         * elf/dl-fptr.c: Likewise.
41464         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
41465         * sysdeps/aarch64/tlsdesc.c: Likewise.
41466         * sysdeps/arm/tlsdesc.c: Likewise.
41467         * sysdeps/i386/tlsdesc.c: Likewise.
41468         * sysdeps/tile/dl-runtime.c: Likewise.
41469         * sysdeps/x86_64/tlsdesc.c: Likewise.
41470         * elf/dl-load.h: New file.
41471         * elf/dl-load.c: Include it.
41472         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
41473         Macros moved to dl-load.h.
41474         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
41475         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
41476         Use _dl_unmap_segments in place of __munmap.
41477         Break out segment-mapping loop into ...
41478         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
41479
41480 2014-04-03  Will Newton  <will.newton@linaro.org>
41481
41482         * elf/dl-lookup.c (do_lookup_x): Remove comment
41483         referring to nested function and move variable
41484         declarations down to before first use.
41485
41486 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
41487
41488         [BZ #16799]
41489         [BZ #16800]
41490         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
41491         with 0 numerator.
41492         * math/s_catanf.c (__catanf): Likewise.
41493         * math/s_catanh.c (__catanh): Likewise.
41494         * math/s_catanhf.c (__catanhf): Likewise.
41495         * math/s_catanhl.c (__catanhl): Likewise.
41496         * math/s_catanl.c (__catanl): Likewise.
41497         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
41498         by positive zero when computing -Inf result.
41499         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
41500         (catanh_test): Likewise.
41501         * sysdeps/i386/fpu/libm-test-ulps: Update.
41502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41503
41504         [BZ #16789]
41505         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
41506         instead of using underflowing value in computing result.
41507         * math/s_clog10.c (__clog10): Likewise.
41508         * math/s_clog10f.c (__clog10f): Likewise.
41509         * math/s_clog10l.c (__clog10l): Likewise.
41510         * math/s_clogf.c (__clogf): Likewise.
41511         * math/s_clogl.c (__clogl): Likewise.
41512         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
41513         (clog10_test): Likewise.
41514         * sysdeps/i386/fpu/libm-test-ulps: Update.
41515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41516
41517 2014-04-02  Alan Modra  <amodra@gmail.com>
41518
41519         [BZ #16739]
41520         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
41521         output when value is near a power of two.  Use int64_t for lx and
41522         remove casts.  Use decimal rather than hex exponent constants.
41523         Don't use long double multiplication when double will suffice.
41524         * math/libm-test.inc (nextafter_test_data): Add tests.
41525         * NEWS: Add 16739 and 16786 to bug list.
41526
41527         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
41528
41529         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
41530
41531 2014-04-01  Will Newton  <will.newton@linaro.org>
41532
41533         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
41534         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
41535
41536 2014-04-01  Florian Weimer  <fweimer@redhat.com>
41537
41538         [BZ #13347]
41539         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
41540         * nptl/tst-setuid2.c: New file.
41541         * nptl/Makefile (xtests): Add tst-setuid2.
41542
41543 2014-04-01  Alan Modra  <amodra@gmail.com>
41544
41545         [BZ #16786]
41546         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
41547
41548 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
41549
41550         [BZ #6803]
41551         [BZ #6804]
41552         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
41553         set errno as appropriate.
41554         * math/w_scalbf.c (__scalbf): Likewise.
41555         * math/w_scalbl.c (__scalbl): Likewise.
41556         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
41557         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
41558         * math/libm-test.inc (scalb_test_data): Add errno expectations.
41559         Add more NaN tests.
41560
41561         [BZ #16349]
41562         * math/w_atan2.c: Include <errno.h>.
41563         (__atan2): Set errno for result underflowing to zero.
41564         * math/w_atan2f.c: Include <errno.h>.
41565         (__atan2f): Set errno for result underflowing to zero.
41566         * math/w_atan2l.c: Include <errno.h>.
41567         (__atan2l): Set errno for result underflowing to zero.
41568         * math/auto-libm-test-in: Don't allow missing errno for some atan2
41569         tests.
41570         * math/auto-libm-test-out: Regenerated.
41571
41572 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41573
41574         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
41575         Encode instruction correctly in little endian.
41576         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
41577         Likewise.
41578         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
41579         Likewise.
41580         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
41581         Likewise.
41582         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
41583         Likewise.
41584
41585 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
41586
41587         [BZ #9894]
41588         * sysdeps/unix/sysv/linux/kernel-features.h
41589         [__sparc__ && !__arch64__ && !__sparc_v9__]
41590         (__ASSUME_SET_ROBUST_LIST): Do not define.
41591         [__sparc__ && !__arch64__ && !__sparc_v9__]
41592         (__ASSUME_FUTEX_LOCK_PI): Likewise.
41593         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
41594         Likewise.
41595         * sysdeps/unix/sysv/linux/arm/kernel-features.h
41596         (__ASSUME_FUTEX_LOCK_PI): Undefine.
41597         (__ASSUME_REQUEUE_PI): Likewise.
41598         (__ASSUME_SET_ROBUST_LIST): Likewise.
41599         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
41600         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
41601         Undefine.
41602         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41603         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
41604         Likewise.
41605         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
41606         Likewise.
41607         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
41608         Likewise.
41609         * sysdeps/unix/sysv/linux/mips/kernel-features.h
41610         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
41611         Undefine.
41612         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
41613         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
41614         Likewise.
41615
41616         [BZ #16648]
41617         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41618         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
41619         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
41620
41621 2014-03-31  Will Newton  <will.newton@linaro.org>
41622
41623         * benchtests/Makefile (bench): Add ffs and ffsll to list
41624         of tests.
41625         * benchtests/ffs-inputs: New file.
41626         * benchtests/ffsll-inputs: Likewise.
41627
41628 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
41629
41630         [BZ #16770]
41631         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
41632         too large before casting to int.
41633         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
41634         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
41635         * math/libm-test.inc (scalb_test_data): Add more tests.
41636
41637 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41638
41639         * benchtests/Makefile (DETAILED_OPT): New make option.
41640         (bench-func): Run benchmark program with -d if DETAILED_OPT is
41641         set.
41642         * benchtests/bench-skeleton.c: Include stdbool.h.
41643         (main): Store and print timings per input.
41644         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
41645         member to each argument value.
41646         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
41647         (_print_arg_data): Initialize per-input timing to 0.
41648
41649         * benchtests/Makefile (timing-type): New binary.
41650         (bench-clean): Also remove bench-timing-type.
41651         (bench): New target for timing-type.
41652         (bench-func): Print output in JSON format.
41653         * benchtests/bench-skeleton.c (main): Print output in JSON
41654         format.
41655         * benchtests/bench-timing-type.c: New file.
41656         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
41657         (TIMING_PRINT_STATS): Remove.
41658         * benchtests/scripts/bench.py (_print_arg_data): Store variant
41659         name separately.
41660
41661         * benchtests/bench-modf.c: Remove.
41662         * benchtests/modf-inputs: New inputs file.
41663
41664 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
41665
41666         [BZ #16362]
41667         * math/s_clog10.c (M_PI_LOG10E): New macro.
41668         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
41669         imaginary parts are 0.
41670         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
41671         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
41672         imaginary parts are 0.
41673         * math/s_clog10l.c (M_PI_LOG10El): New macro.
41674         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
41675         imaginary parts are 0.
41676         * math/libm-test.inc (clog10_test_data): Update expected results
41677         for when real and imaginary parts are 0.
41678
41679 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
41680
41681         * elf/dl-load.c: Finish conversion of __builtin_expect into
41682         __glibc_{un}likely.
41683
41684 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
41685
41686         [BZ #16348]
41687         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
41688         1+x for argument with exponent below -67.
41689         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
41690         Likewise.
41691         * math/auto-libm-test-in: Add more tests of exp.
41692         * math/auto-libm-test-out: Regenerated.
41693
41694 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
41695
41696         [BZ #16759]
41697         * inet/getnetgrent_r.c (get_nonempty_val): New function.
41698         (nscd_getnetgrent): Use it.
41699
41700         [BZ #16760]
41701         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
41702         of stpcpy.
41703
41704 2014-03-27  Andi Kleen  <ak@linux.intel.com>
41705
41706         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
41707         (lll_robust_lock, lll_cond_lock, lll_timedlock)
41708         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
41709         (lll_robust_unlock): Remove out of line section. Use cfi
41710         intrinsics.
41711         (LLL_STUB_UNWIND_INFO*): Remove.
41712         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
41713         (lll_robust_lock, lll_cond_lock, lll_timedlock)
41714         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
41715         (lll_robust_unlock): Remove out of line section. Use cfi
41716         intrinsics.
41717         (LLL_STUB_UNWIND_INFO*): Remove.
41718
41719 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
41720
41721         [BZ #16758]
41722         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
41723         blank values.
41724
41725 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
41726
41727         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
41728
41729 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
41730
41731         [BZ #16198]
41732         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
41733         fnstenv.
41734         * math/test-fenv-preserve.c: New file.
41735         * math/Makefile (tests): Add test-fenv-preserve.
41736
41737 2014-03-26  Will Newton <will.newton@linaro.org>
41738
41739         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
41740
41741 2014-03-25  Roland McGrath  <roland@hack.frob.com>
41742
41743         * scripts/versionlist.awk: Partition the version sets and emit all
41744         GLIBC_* (sorted) before all others (sorted).
41745
41746 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
41747
41748         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
41749         GLIBC_2.2.5 version.
41750
41751 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41752
41753         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
41754         calls.
41755
41756         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
41757         previous change.
41758
41759         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41760
41761 2014-03-25  Andreas Schwab  <schwab@suse.de>
41762
41763         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
41764         label to be used after in6ailist is initialized.
41765
41766 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41767
41768         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
41769         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
41770
41771 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
41772
41773         [BZ #16357]
41774         [BZ #16599]
41775         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
41776         min_plus_half.
41777         (fp_formats): Update initializers.
41778         (init_fp_formats): Initialize new field.
41779         (output_for_one_input_case): Allow underflow for results up to
41780         min_plus_half.
41781         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
41782         * math/auto-libm-test-in: Don't mark some underflows from asin and
41783         atanh as spurious.
41784         * math/auto-libm-test-out: Regenerated.
41785         * sysdeps/i386/fpu/libm-test-ulps: Update.
41786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41787
41788 2014-03-25  Andreas Schwab  <schwab@suse.de>
41789
41790         * libio/Makefile (tst-ftell-partial-wide-ENV)
41791         (tst-ftell-active-handler-ENV): Define.
41792
41793 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
41794
41795         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
41796
41797 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
41798
41799         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
41800
41801 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
41802
41803         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
41804         * sysdeps/x86_64/fpu/multiarch/e_exp.c
41805         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
41806
41807 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
41808
41809         [BZ #16634]
41810         * elf/dl-load.c (open_verify): Add mode parameter.
41811         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
41812         (open_path): Change from boolean 'secure' to complete flag 'mode'
41813         (_dl_map_object): Adjust.
41814         * elf/Makefile (tests): Add tst-dlopen-aout.
41815         * elf/tst-dlopen-aout.c: New test.
41816
41817 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
41818
41819         [BZ #16714]
41820         * sysdeps/unix/sysv/linux/s390/bits/stat.h
41821         (struct stat): Rename member pad0 to __glibc_reserved0.
41822
41823         [BZ #16712]
41824         * sysdeps/s390/s390-32/bits/wordsize.h
41825         (__WORDSIZE32_SIZE_ULONG): New define.
41826         * sysdeps/s390/s390-64/bits/wordsize.h
41827         (__WORDSIZE32_SIZE_ULONG): Likewise.
41828         * sysdeps/generic/stdint.h (SIZE_MAX):
41829         Define as UL if __WORDSIZE32_SIZE_ULONG.
41830
41831         [BZ #16713]
41832         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
41833         (__glibc_reserved0): New variable.
41834         (sa_flags): Change type to int.
41835
41836         * posix/Makefile (before-compile): Use += before-compile instead
41837         of a :=.
41838
41839         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
41840         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
41841
41842 2014-03-20  Andreas Schwab  <schwab@suse.de>
41843
41844         [BZ #16743]
41845         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
41846         non-matching result from nscd.
41847
41848 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
41849
41850         * scripts/bench.py: Moved to ...
41851         * benchtests/scripts/bench.py: ... here.
41852         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
41853
41854 2014-03-24  Andreas Schwab  <schwab@suse.de>
41855
41856         [BZ #16002]
41857         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
41858         alloca_account and account alloca use for struct in6ailist.
41859
41860 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
41861
41862         [BZ #16284]
41863         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
41864         rounding mode to recompute results that overflow to infinity or
41865         underflow to zero.
41866         * math/auto-libm-test-in: Don't mark tests as expected to fail for
41867         bug 16284.
41868         * math/auto-libm-test-out: Regenerated.
41869         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
41870         (ccosh_test): Likewise.
41871         (csin_test_data): Use plus_oflow.
41872         (csin_test): Use ALL_RM_TEST.
41873         (csinh_test_data): Use plus_oflow.
41874         (csinh_test): Use ALL_RM_TEST.
41875         * sysdeps/i386/fpu/libm-test-ulps: Update.
41876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41877
41878 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
41879
41880         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
41881         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
41882         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
41883
41884         [BZ #16731]
41885         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
41886         when x - 1 is zero.
41887         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
41888         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
41889         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
41890         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
41891         argument is 1.
41892         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
41893         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
41894         zero.
41895         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
41896         * sysdeps/i386/fpu/libm-test-ulps: Update.
41897         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41898
41899 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
41900
41901         * scripts/bench.pl: Remove file.
41902         * scripts/bench.py: New benchmark script.
41903         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
41904         * benchtests/README: Mention python dependency.
41905         * scripts/pylintrc: New file.
41906         * scripts/pylint: New file.
41907
41908         * bits/mathdef.h: Use #ifdef instead of #if.
41909         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
41910         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41911         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
41912         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41913         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
41914         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41915
41916 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41917             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41918
41919         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
41920         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
41921         and strpbrk-ppc64 objects.
41922         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41923         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
41924         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
41925         multiarch strpbrk for POWER7.
41926         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
41927         multiarch strpbrk for PPC64.
41928         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
41929         ifunc selector.
41930         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
41931         strpbrk for POWER7.
41932
41933 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41934
41935         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
41936         (atan_test): Likewise.
41937         (atanh_test_data): Use NO_TEST_INLINE for two tests.
41938         (atanh_test): Use ALL_RM_TEST.
41939         (atan2_test_data): Likewise.
41940         (cabs_test): Likewise.
41941         (cacosh_test): Likewise.
41942         (carg_test): Likewise.
41943         (casin_test): Likewise.
41944         (casinh_test): Likewise.
41945         (cbrt_test): Likewise.
41946         (csqrt_test): Likewise.
41947         (erf_test): Likewise.
41948         (erfc_test): Likewise.
41949         (pow10_test): Likewise.
41950         (exp2_test): Likewise.
41951         (hypot_test): Likewise.
41952         (j0_test): Likewise.
41953         (j1_test): Likewise.
41954         (lgamma_test): Likewise.
41955         (gamma_test): Likewise.
41956         (sincos_test): Likewise.
41957         (tanh_test): Likewise.
41958         (y0_test): Likewise.
41959         (y1_test): Likewise.
41960         * sysdeps/i386/fpu/libm-test-ulps: Update.
41961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41962
41963 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41964
41965         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
41966         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
41967         and strcspn-ppc64 objects.
41968         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41969         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
41970         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
41971         multiarch strcspn for POWER7.
41972         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
41973         multiarch strcspn for PPC64.
41974         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
41975         ifunc selector.
41976         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
41977         strcspn for POWER7.
41978
41979 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41980
41981         * math/gen-libm-test.pl (generate_testfile): Expect only function
41982         name as argument to AUTO_TESTS_* and pass results for all rounding
41983         modes to parse_args.
41984         (parse_auto_input): Separate inputs of automatic tests from
41985         outputs before storing in %auto_tests.
41986         * math/libm-test.inc (acos_test_data): Update call to
41987         AUTO_TESTS_f_f.
41988         (acos_test): Use ALL_RM_TEST.
41989         (acos_tonearest_test_data): Remove.
41990         (acos_test_tonearest): Likewise.
41991         (acos_towardzero_test_data): Likewise.
41992         (acos_test_towardzero): Likewise.
41993         (acos_downward_test_data): Likewise.
41994         (acos_test_downward): Likewise.
41995         (acos_upward_test_data): Likewise.
41996         (acos_test_upward): Likewise.
41997         (acosh_test_data): Update call to AUTO_TESTS_f_f.
41998         (asin_test_data): Likewise.
41999         (asin_test): Use ALL_RM_TEST.
42000         (asin_tonearest_test_data): Remove.
42001         (asin_test_tonearest): Likewise.
42002         (asin_towardzero_test_data): Likewise.
42003         (asin_test_towardzero): Likewise.
42004         (asin_downward_test_data): Likewise.
42005         (asin_test_downward): Likewise.
42006         (asin_upward_test_data): Likewise.
42007         (asin_test_upward): Likewise.
42008         (asinh_test_data): Update call to AUTO_TESTS_f_f.
42009         (atan_test_data): Likewise.
42010         (atanh_test_data): Likewise.
42011         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
42012         (cabs_test_data): Update call to AUTO_TESTS_c_f.
42013         (carg_test_data): Likewise.
42014         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
42015         (ccos_test_data): Update call to AUTO_TESTS_c_c.
42016         (ccosh_test_data): Likewise.
42017         (cexp_test_data): Likewise.
42018         (clog_test_data): Likewise.
42019         (clog10_test_data): Likewise.
42020         (cos_test_data): Update call to AUTO_TESTS_f_f.
42021         (cos_test): Use ALL_RM_TEST.
42022         (cos_tonearest_test_data): Remove.
42023         (cos_test_tonearest): Likewise.
42024         (cos_towardzero_test_data): Likewise.
42025         (cos_test_towardzero): Likewise.
42026         (cos_downward_test_data): Likewise.
42027         (cos_test_downward): Likewise.
42028         (cos_upward_test_data): Likewise.
42029         (cos_test_upward): Likewise.
42030         (cosh_test_data): Update call to AUTO_TESTS_f_f.
42031         (cosh_test): Use ALL_RM_TEST.
42032         (cosh_tonearest_test_data): Remove.
42033         (cosh_test_tonearest): Likewise.
42034         (cosh_towardzero_test_data): Likewise.
42035         (cosh_test_towardzero): Likewise.
42036         (cosh_downward_test_data): Likewise.
42037         (cosh_test_downward): Likewise.
42038         (cosh_upward_test_data): Likewise.
42039         (cosh_test_upward): Likewise.
42040         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
42041         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
42042         (ctan_test_data): Likewise.
42043         (ctan_test): Use ALL_RM_TEST.
42044         (ctan_tonearest_test_data): Remove.
42045         (ctan_test_tonearest): Likewise.
42046         (ctan_towardzero_test_data): Likewise.
42047         (ctan_test_towardzero): Likewise.
42048         (ctan_downward_test_data): Likewise.
42049         (ctan_test_downward): Likewise.
42050         (ctan_upward_test_data): Likewise.
42051         (ctan_test_upward): Likewise.
42052         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
42053         (ctanh_test): Use ALL_RM_TEST.
42054         (ctanh_tonearest_test_data): Remove.
42055         (ctanh_test_tonearest): Likewise.
42056         (ctanh_towardzero_test_data): Likewise.
42057         (ctanh_test_towardzero): Likewise.
42058         (ctanh_downward_test_data): Likewise.
42059         (ctanh_test_downward): Likewise.
42060         (ctanh_upward_test_data): Likewise.
42061         (ctanh_test_upward): Likewise.
42062         (erf_test_data): Update call to AUTO_TESTS_f_f.
42063         (erfc_test_data): Likewise.
42064         (exp_test_data): Likewise.
42065         (exp_test): Use ALL_RM_TEST.
42066         (exp_tonearest_test_data): Remove.
42067         (exp_test_tonearest): Likewise.
42068         (exp_towardzero_test_data): Likewise.
42069         (exp_test_towardzero): Likewise.
42070         (exp_downward_test_data): Likewise.
42071         (exp_test_downward): Likewise.
42072         (exp_upward_test_data): Likewise.
42073         (exp_test_upward): Likewise.
42074         (exp10_test_data): Update call to AUTO_TESTS_f_f.
42075         (exp10_test): Use ALL_RM_TEST.
42076         (exp10_tonearest_test_data): Remove.
42077         (exp10_test_tonearest): Likewise.
42078         (exp10_towardzero_test_data): Likewise.
42079         (exp10_test_towardzero): Likewise.
42080         (exp10_downward_test_data): Likewise.
42081         (exp10_test_downward): Likewise.
42082         (exp10_upward_test_data): Likewise.
42083         (exp10_test_upward): Likewise.
42084         (exp2_test_data): Update call to AUTO_TESTS_f_f.
42085         (expm1_test_data): Likewise.
42086         (expm1_test): Use ALL_RM_TEST.
42087         (expm1_tonearest_test_data): Remove.
42088         (expm1_test_tonearest): Likewise.
42089         (expm1_towardzero_test_data): Likewise.
42090         (expm1_test_towardzero): Likewise.
42091         (expm1_downward_test_data): Likewise.
42092         (expm1_test_downward): Likewise.
42093         (expm1_upward_test_data): Likewise.
42094         (expm1_test_upward): Likewise.
42095         (fma_test_data): Update call to AUTO_TESTS_fff_f.
42096         (fma_test): Use ALL_RM_TEST.
42097         (fma_towardzero_test_data): Remove.
42098         (fma_test_towardzero): Likewise.
42099         (fma_downward_test_data): Likewise.
42100         (fma_test_downward): Likewise.
42101         (fma_upward_test_data): Likewise.
42102         (fma_test_upward): Likewise.
42103         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
42104         (j0_test_data): Update call to AUTO_TESTS_f_f.
42105         (j1_test_data): Likewise.
42106         (jn_test_data): Update call to AUTO_TESTS_if_f.
42107         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
42108         (log_test_data): Update call to AUTO_TESTS_f_f.
42109         (log10_test_data): Likewise.
42110         (log1p_test_data): Likewise.
42111         (log2_test_data): Likewise.
42112         (pow_test_data): Update call to AUTO_TESTS_ff_f.
42113         (pow_tonearest_test_data): Likewise.
42114         (sin_test_data): Update call to AUTO_TESTS_f_f.
42115         (sin_test): Use ALL_RM_TEST.
42116         (sin_tonearest_test_data): Remove.
42117         (sin_test_tonearest): Likewise.
42118         (sin_towardzero_test_data): Likewise.
42119         (sin_test_towardzero): Likewise.
42120         (sin_downward_test_data): Likewise.
42121         (sin_test_downward): Likewise.
42122         (sin_upward_test_data): Likewise.
42123         (sin_test_upward): Likewise.
42124         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
42125         (sinh_test_data): Update call to AUTO_TESTS_f_f.
42126         (sinh_test): Use ALL_RM_TEST.
42127         (sinh_tonearest_test_data): Remove.
42128         (sinh_test_tonearest): Likewise.
42129         (sinh_towardzero_test_data): Likewise.
42130         (sinh_test_towardzero): Likewise.
42131         (sinh_downward_test_data): Likewise.
42132         (sinh_test_downward): Likewise.
42133         (sinh_upward_test_data): Likewise.
42134         (sinh_test_upward): Likewise.
42135         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
42136         (sqrt_test): Use ALL_RM_TEST.
42137         (sqrt_tonearest_test_data): Remove.
42138         (sqrt_test_tonearest): Likewise.
42139         (sqrt_towardzero_test_data): Likewise.
42140         (sqrt_test_towardzero): Likewise.
42141         (sqrt_downward_test_data): Likewise.
42142         (sqrt_test_downward): Likewise.
42143         (sqrt_upward_test_data): Likewise.
42144         (sqrt_test_upward): Likewise.
42145         (tan_test_data): Update call to AUTO_TESTS_f_f.
42146         (tan_test): Use ALL_RM_TEST.
42147         (tan_tonearest_test_data): Remove.
42148         (tan_test_tonearest): Likewise.
42149         (tan_towardzero_test_data): Likewise.
42150         (tan_test_towardzero): Likewise.
42151         (tan_downward_test_data): Likewise.
42152         (tan_test_downward): Likewise.
42153         (tan_upward_test_data): Likewise.
42154         (tan_test_upward): Likewise.
42155         (tanh_test_data): Update call to AUTO_TESTS_f_f.
42156         (tgamma_test_data): Likewise.
42157         (y0_test_data): Likewise.
42158         (y1_test_data): Likewise.
42159         (yn_test_data): Update call to AUTO_TESTS_if_f.
42160         (main): Do not call removed functions.
42161
42162 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
42163
42164         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
42165         (ldexp_test_data): Remove.
42166         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
42167         scalbn_test_data.
42168         (scalb_test): Use ALL_RM_TEST.
42169
42170 2014-03-19  Andreas Schwab  <schwab@suse.de>
42171
42172         * nscd/nscd.service: Also invalidate netgroup cache on reload.
42173
42174 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
42175
42176         [BZ #16649]
42177         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
42178         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
42179         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
42180         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
42181         (__ASSUME_PREADV): Undefine.
42182         (__ASSUME_PWRITEV): Likewise.
42183
42184 2014-03-18  Roland McGrath  <roland@hack.frob.com>
42185
42186         * bits/mman-linux.h: Add comment about non-Linux use.
42187         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
42188         bits/mman-linux.h resting place.
42189
42190         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
42191         * bits/mman-linux.h: ... here.
42192
42193 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42194
42195         * conform/conformtest.pl: Add standard definition when calling C
42196         preprocessor on data files.
42197         (checknamespace): Remove unused variable.
42198
42199 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
42200
42201         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
42202         minus_oflow, plus_uflow and minus_uflow in expected results.
42203         * math/libm-test.inc (scalbn_test_data): Add more tests of
42204         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
42205         minus_uflow.
42206         (scalbn_test): Use ALL_RM_TEST.
42207         (scalbln_test_data): Add more tests of negative arguments.  Use
42208         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
42209         (scalbln_test): Use ALL_RM_TEST.
42210
42211 2014-03-18  Roland McGrath  <roland@hack.frob.com>
42212
42213         * scripts/abilist.awk: Ignore symbols marked with .hidden.
42214
42215 2014-03-18  Will Newton  <will.newton@linaro.org>
42216
42217         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
42218         inaccurate comment.
42219
42220 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
42221
42222         * Makerules [!subdir] (check-abi): Exit with error status if a
42223         test failed.
42224
42225 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
42226
42227         * math/libm-test.inc (nearbyint_test_data): Include all tests used
42228         for rint.  Include results for all rounding modes.
42229         (nearbyint_test): Use ALL_RM_TEST.
42230         (rint_test_data): Include all tests used for nearbyint.
42231
42232 2014-03-17  Will Newton  <will.newton@linaro.org>
42233
42234         * nptl/sysdeps/pthread/pthread.h: Revert previous
42235         change.
42236
42237         * sysdeps/generic/ldsodefs.h: Revert previous
42238         change.
42239
42240         * libio/genops.c: Revert previous change.
42241         * libio/libioP.h: Likewise.
42242         * stdio-common/vfprintf.c: Likewise.
42243
42244         * sysdeps/generic/math_private.h: Revert previous
42245         change.
42246
42247         * sysdeps/generic/math_private.h: Check whether
42248         HAVE_RM_CTX is defined with #ifdef rather
42249         than #if.
42250
42251         * argp/argp-fmtstream.h: Check whether
42252         __STRICT_ANSI__ is defined with #ifdef rather
42253         than #if.
42254         * argp/argp.h: Likewise.
42255
42256         * libio/genops.c: Check whether
42257         _IO_JUMPS_OFFSET is defined with #ifdef rather
42258         than #if.
42259         * libio/libioP.h: Likewise.
42260         * stdio-common/vfprintf.c: Likewise.
42261
42262         * sysdeps/generic/ldsodefs.h: Check whether
42263         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
42264         than #if.
42265
42266         * nptl/sysdeps/pthread/pthread.h: Check
42267         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
42268         its value.
42269
42270 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
42271
42272         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
42273         setting O_APPEND.
42274         * libio/tst-ftell-active-handler.c (do_append_test): Add a
42275         test case.
42276
42277         [BZ #16680]
42278         * libio/fileops.c (_IO_file_open): Seek to end of file but
42279         don't cache the offset.
42280         (get_file_offset): Remove function.
42281         (do_ftell): Use cached offset when available.
42282         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
42283         don't cache the offset.
42284         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
42285         case.
42286         (do_one_test): Call it.
42287         (do_ftell_test): Fix up expected old offset for a+ mode.
42288         * libio/wfileops.c (do_ftell_wide): Used cached offset when
42289         available.
42290
42291         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
42292         up test status with function return status.
42293         (do_write_test): Likewise.
42294         (do_append_test): Likewise.
42295
42296         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
42297         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
42298         Remove.
42299
42300 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
42301
42302         * math/gen-libm-test.pl (parse_args): Handle results specified for
42303         each rounding mode separately.
42304         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
42305         tests and results from lrint_tonearest_test_data,
42306         lrint_towardzero_test_data, lrint_downward_test_data and
42307         lrint_upward_test_data.
42308         (lrint_test): Use ALL_RM_TEST.
42309         (lrint_tonearest_test_data): Remove.
42310         (lrint_test_tonearest): Likewise.
42311         (lrint_towardzero_test_data): Likewise.
42312         (lrint_test_towardzero): Likewise.
42313         (lrint_downward_test_data): Likewise.
42314         (lrint_test_downward): Likewise.
42315         (lrint_upward_test_data): Likewise.
42316         (lrint_test_upward): Likewise.
42317         (llrint_test_data): Merge in per-rounding-mode tests and results
42318         from llrint_tonearest_test_data, llrint_towardzero_test_data,
42319         llrint_downward_test_data and llrint_upward_test_data.
42320         (llrint_test): Use ALL_RM_TEST.
42321         (llrint_tonearest_test_data): Remove.
42322         (llrint_test_tonearest): Likewise.
42323         (llrint_towardzero_test_data): Likewise.
42324         (llrint_test_towardzero): Likewise.
42325         (llrint_downward_test_data): Likewise.
42326         (llrint_test_downward): Likewise.
42327         (llrint_upward_test_data): Likewise.
42328         (llrint_test_upward): Likewise.
42329         (rint_test_data): Merge in per-rounding-mode tests and results
42330         from rint_tonearest_test_data, rint_towardzero_test_data,
42331         rint_downward_test_data and rint_upward_test_data.  Add
42332         per-rounding-mode results for tests not in those arrays.
42333         (rint_test): Use ALL_RM_TEST.
42334         (rint_tonearest_test_data): Remove.
42335         (rint_test_tonearest): Likewise.
42336         (rint_towardzero_test_data): Likewise.
42337         (rint_test_towardzero): Likewise.
42338         (rint_downward_test_data): Likewise.
42339         (rint_test_downward): Likewise.
42340         (rint_upward_test_data): Likewise.
42341         (rint_test_upward): Likewise.
42342         (main): Don't call removed functions.
42343
42344 2014-03-14  Roland McGrath  <roland@hack.frob.com>
42345
42346         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
42347         "Compiled on ..." crapola.  It is anti-useful.
42348
42349 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
42350
42351         * scripts/evaluate-test.sh: Handle fourth argument to determine
42352         whether test run should stop on failure.
42353         * Makeconfig (stop-on-test-failure): New variable.
42354         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
42355         $(stop-on-test-failure).
42356         * Makefile (tests): Give a summary of results from testing and
42357         exit with failure status if they include an ERROR or FAIL.
42358         (xtests): Likewise.
42359         * manual/install.texi (Configuring and compiling): Mention
42360         stop-on-test-failure=y.
42361         * INSTALL: Regenerated.
42362
42363 2014-03-14  Roland McGrath  <roland@hack.frob.com>
42364
42365         * scripts/versionlist.awk: New file.
42366         * Makerules [$(build-shared) = yes]
42367         (postclean-generated): Add Versions.def, not Versions.def.v and
42368         Versions.def.v.i.
42369         ($(common-objpfx)Versions.def.v.i): Target removed.
42370         ($(common-objpfx)Versions.def): New target.
42371         ($(common-objpfx)Versions.all): Depend on that rather that
42372         $(common-objpfx)Versions.def.v.
42373         * Versions.def: File removed.
42374
42375         * Makeconfig (+gccwarn): Add -Wundef.
42376         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
42377         a dl-sysdep.h breaking its contract.
42378         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
42379         * include/stackinfo.h: New file.
42380         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
42381         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
42382         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
42383         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
42384         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
42385         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
42386         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
42387         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
42388         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
42389         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
42390         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
42391         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
42392         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
42393         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
42394         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
42395
42396 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42397
42398         [BZ #16707]
42399         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
42400         implementation.
42401         * math/libm-test.inc (round_test_data): Add more tests.
42402
42403         [BZ #16706]
42404         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
42405         implementation.
42406         * math/libm-test.inc (nearbyint_test_data): Add more tests.
42407
42408         [BZ #16701]
42409         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
42410         implementation.
42411         * math/libm-test.inc (ceil_test_data): Add more tests.
42412
42413         * math/libm-test.inc (trunc_test_data): Add more tests related to
42414         BZ#16414.
42415
42416 2014-03-14  Roland McGrath  <roland@hack.frob.com>
42417
42418         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
42419         with #if rather than #ifdef.
42420         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
42421
42422 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
42423
42424         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
42425         first.  Disable AVX-512 GCC support if assembler doesn't support
42426         it.
42427         * sysdeps/x86_64/configure: Regenerated.
42428
42429 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
42430
42431         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
42432         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
42433         (__old_pthread_attr_setstack): Likewise.
42434         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
42435         [!_STACK_GROWS_DOWN]: Likewise.
42436
42437 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
42438
42439         * config.make.in (have-bash2): Delete.
42440         * configure.ac (libc_cv_have_bash2): Delete.
42441         * configure: Regenerate.
42442         * elf/Makefile (common-ldd-rewrite): Rename to ...
42443         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
42444         (sh-ldd-rewrite): Delete.
42445         (bash-ldd-rewrite): Delete.
42446         (have-bash2): Delete checks.
42447         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
42448         ldd-rewrite.
42449
42450         * config.make.in (have-ksh): Delete.
42451         (KSH): Delete.
42452         * configure.ac (libc_cv_have_ksh): Delete.
42453         * configure: Regenerate.
42454
42455         * elf/Makefile: Delete $(have-ksh) check.
42456         ($(objpfx)sotruss): Change KSH to BASH.
42457         * elf/sotruss.ksh: Rename to ...
42458         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
42459         function style to match POSIX.  Drop ksh vim mode setting.
42460
42461         * manual/time.texi (Specifying the Time Zone with TZ): Change
42462         Tuesday to Thursday.
42463
42464         * debug/tst-longjmp_chk2.c: Update header comment.
42465         (stackoverflow_handler): Add comment.  Call assert on pass value.
42466
42467 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
42468
42469         [BZ #16194]
42470         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
42471         (HAVE_AVX512_ASM_SUPPORT): Likewise.
42472         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
42473         (La_x86_64_vector): Add zmm.
42474         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
42475         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
42476         ($(objpfx)tst-audit10): New target.
42477         ($(objpfx)tst-audit10.out): Likewise.
42478         (tst-audit10-ENV): New.
42479         (AVX512-CFLAGS): Likewise.
42480         (CFLAGS-tst-audit10.c): Likewise.
42481         (CFLAGS-tst-auditmod10a.c): Likewise.
42482         (CFLAGS-tst-auditmod10b.c): Likewise.
42483         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
42484         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
42485         * sysdeps/x86_64/configure: Regenerated.
42486         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
42487         AVX-512 zmm register support.
42488         (_dl_x86_64_save_sse): Likewise.
42489         (_dl_x86_64_restore_sse): Likewise.
42490         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
42491         size vector registers.
42492         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
42493         (ZMM_SIZE): Likewise.
42494         * sysdeps/x86_64/tst-audit10.c: New file.
42495         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
42496         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
42497
42498 2014-03-13  Roland McGrath  <roland@hack.frob.com>
42499
42500         * configure.ac (HAVE_EHDR_START): New check.
42501         * configure: Regenerated.
42502         * config.h.in (HAVE_EHDR_START): New #undef.
42503         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
42504         assuming the lowest-addressed segment maps the start of the file.
42505
42506 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
42507
42508         * INSTALL: Regenerated.
42509
42510 2014-03-13  Will Newton  <will.newton@linaro.org>
42511
42512         * manual/setjmp.texi (System V contexts): Improve
42513         clarity and grammar of documentation.
42514
42515 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
42516
42517         [BZ #16381]
42518         * elf/Makefile (tests): Add tst-pie2.
42519         (tests-pie): Add tst-pie2.
42520         * elf/tst-pie2.c: New file.
42521         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
42522         for ET_EXEC.
42523         * elf/rtld.c (map_doit): Load executable as lt_executable.
42524         (dl_main): Likewise.
42525
42526 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
42527
42528         [BZ #16642]
42529         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
42530         (__ASSUME_PSELECT): Undefine.
42531
42532 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42533
42534         [BZ #16689]
42535         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
42536         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
42537         static build.
42538         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
42539         selector for static builds.
42540
42541 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
42542
42543         [BZ #16695]
42544         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
42545         key in the buffer.
42546
42547 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42548
42549         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
42550         IFUNC selector for static builds.
42551
42552 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
42553
42554         * sysdeps/mips/math_private.h [__mips_hard_float]
42555         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
42556         libc_feresetround_mips_ctx.
42557         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
42558         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
42559         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
42560
42561         [BZ #16677]
42562         * math/s_nextafter.c (__nextafter): Do not return value from
42563         overflowing computation.
42564         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
42565         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
42566         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
42567         Likewise.
42568         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
42569         Likewise.
42570         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
42571         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
42572
42573 2014-03-11  Roland McGrath  <roland@hack.frob.com>
42574
42575         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
42576         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
42577         Move sfi_sp use from the load-multiple (that no longer sets sp) to
42578         the new mov targetting sp.
42579
42580 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42581
42582         [BZ #16683]
42583         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
42584         Define it for static builds as well.
42585         (NO_BZERO_IMPL): Likewise.
42586
42587 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42588
42589         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
42590         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
42591         multiarch strspn for PPC64.
42592         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
42593         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
42594         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42595         (__libc_ifunc_impl_list): Likewise.
42596         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
42597         multiarch optimizations
42598         * string/strspn.c (strspn): Using macro to redefine symbol name.
42599
42600 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42601             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42602
42603         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
42604         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
42605         multiarch strncat for PPC64.
42606         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
42607         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
42608         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42609         (__libc_ifunc_impl_list): Likewise.
42610         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
42611         multiarch optimizations
42612
42613 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
42614
42615         [BZ #16639]
42616         * nscd/nscd.service: Make service type forking.
42617
42618 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42619
42620         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
42621         sign in non default rounding modes.
42622         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
42623
42624 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
42625
42626         * math/libm-test.inc (ALL_RM_TEST): New macro.
42627         (ceil_test): Use ALL_RM_TEST.
42628         (cimag_test): Likewise.
42629         (conj_test): Likewise.
42630         (copysign_test): Likewise.
42631         (cproj_test): Likewise.
42632         (creal_test): Likewise.
42633         (fabs_test): Likewise.
42634         (floor_test): Likewise.
42635         (fmax_test): Likewise.
42636         (fmin_test): Likewise.
42637         (fmod_test): Likewise.
42638         (fpclassify_test): Likewise.
42639         (frexp_test): Likewise.
42640         (ilogb_test): Likewise.
42641         (isfinite_test): Likewise.
42642         (finite_test): Likewise.
42643         (isgreater_test): Likewise.
42644         (isgreaterequal_test): Likewise.
42645         (isinf_test): Likewise.
42646         (isless_test): Likewise.
42647         (islessequal_test): Likewise.
42648         (islessgreater_test): Likewise.
42649         (isnan_test): Likewise.
42650         (isnormal_test): Likewise.
42651         (issignaling_test): Likewise.
42652         (isunordered_test): Likewise.
42653         (logb_test): Likewise.
42654         (logb_downward_test_data): Remove.
42655         (logb_test_downward): Likewise.
42656         (lround_test): Use ALL_RM_TEST.
42657         (llround_test): Likewise.
42658         (modf_test): Likewise.
42659         (nexttoward_test): Likewise.
42660         (remainder_test): Likewise.
42661         (drem_test): Likewise.
42662         (remainder_tonearest_test_data): Likewise.
42663         (remainder_test_tonearest): Likewise.
42664         (drem_test_tonearest): Likewise.
42665         (remainder_towardzero_test_data): Likewise.
42666         (remainder_test_towardzero): Likewise.
42667         (drem_test_towardzero): Likewise.
42668         (remainder_downward_test_data): Likewise.
42669         (remainder_test_downward): Likewise.
42670         (drem_test_downward): Likewise.
42671         (remainder_upward_test_data): Likewise.
42672         (remainder_test_upward): Likewise.
42673         (drem_test_upward): Likewise.
42674         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
42675         (round_test): Use ALL_RM_TEST.
42676         (signbit_test): Likewise.
42677         (trunc_test): Likewise.
42678         (significand_test): Likewise.
42679         (main): Don't call removed functions.
42680
42681 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
42682
42683         [BZ #16674]
42684         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
42685         || __USE_XOPEN2K8].
42686         (ILL_ILLOPN): Likewise.
42687         (ILL_ILLADR): Likewise.
42688         (ILL_ILLTRP): Likewise.
42689         (ILL_PRVOPC): Likewise.
42690         (ILL_PRVREG): Likewise.
42691         (ILL_COPROC): Likewise.
42692         (ILL_BADSTK): Likewise.
42693         (FPE_INTDIV): Likewise.
42694         (FPE_INTOVF): Likewise.
42695         (FPE_FLTDIV): Likewise.
42696         (FPE_FLTOVF): Likewise.
42697         (FPE_FLTUND): Likewise.
42698         (FPE_FLTRES): Likewise.
42699         (FPE_FLTINV): Likewise.
42700         (FPE_FLTSUB): Likewise.
42701         (SEGV_MAPERR): Likewise.
42702         (SEGV_ACCERR): Likewise.
42703         (BUS_ADRALN): Likewise.
42704         (BUS_ADRERR): Likewise.
42705         (BUS_OBJERR): Likewise.
42706         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42707         (TRAP_TRACE): Likewise.
42708         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42709         __USE_XOPEN2K8].
42710         (CLD_KILLED): Likewise.
42711         (CLD_DUMPED): Likewise.
42712         (CLD_TRAPPED): Likewise.
42713         (CLD_STOPPED): Likewise.
42714         (CLD_CONTINUED): Likewise.
42715         (POLL_IN): Likewise.
42716         (POLL_OUT): Likewise.
42717         (POLL_MSG): Likewise.
42718         (POLL_ERR): Likewise.
42719         (POLL_PRI): Likewise.
42720         (POLL_HUP): Likewise.
42721         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
42722         Likewise.
42723         (ILL_ILLOPN): Likewise.
42724         (ILL_ILLADR): Likewise.
42725         (ILL_ILLTRP): Likewise.
42726         (ILL_PRVOPC): Likewise.
42727         (ILL_PRVREG): Likewise.
42728         (ILL_COPROC): Likewise.
42729         (ILL_BADSTK): Likewise.
42730         (FPE_INTDIV): Likewise.
42731         (FPE_INTOVF): Likewise.
42732         (FPE_FLTDIV): Likewise.
42733         (FPE_FLTOVF): Likewise.
42734         (FPE_FLTUND): Likewise.
42735         (FPE_FLTRES): Likewise.
42736         (FPE_FLTINV): Likewise.
42737         (FPE_FLTSUB): Likewise.
42738         (SEGV_MAPERR): Likewise.
42739         (SEGV_ACCERR): Likewise.
42740         (BUS_ADRALN): Likewise.
42741         (BUS_ADRERR): Likewise.
42742         (BUS_OBJERR): Likewise.
42743         (BUS_MCEERR_AR): Likewise.
42744         (BUS_MCEERR_AO): Likewise.
42745         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42746         (TRAP_TRACE): Likewise.
42747         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42748         __USE_XOPEN2K8].
42749         (CLD_KILLED): Likewise.
42750         (CLD_DUMPED): Likewise.
42751         (CLD_TRAPPED): Likewise.
42752         (CLD_STOPPED): Likewise.
42753         (CLD_CONTINUED): Likewise.
42754         (POLL_IN): Likewise.
42755         (POLL_OUT): Likewise.
42756         (POLL_MSG): Likewise.
42757         (POLL_ERR): Likewise.
42758         (POLL_PRI): Likewise.
42759         (POLL_HUP): Likewise.
42760         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
42761         (ILL_ILLOPN): Likewise.
42762         (ILL_ILLADR): Likewise.
42763         (ILL_ILLTRP): Likewise.
42764         (ILL_PRVOPC): Likewise.
42765         (ILL_PRVREG): Likewise.
42766         (ILL_COPROC): Likewise.
42767         (ILL_BADSTK): Likewise.
42768         (FPE_INTDIV): Likewise.
42769         (FPE_INTOVF): Likewise.
42770         (FPE_FLTDIV): Likewise.
42771         (FPE_FLTOVF): Likewise.
42772         (FPE_FLTUND): Likewise.
42773         (FPE_FLTRES): Likewise.
42774         (FPE_FLTINV): Likewise.
42775         (FPE_FLTSUB): Likewise.
42776         (SEGV_MAPERR): Likewise.
42777         (SEGV_ACCERR): Likewise.
42778         (BUS_ADRALN): Likewise.
42779         (BUS_ADRERR): Likewise.
42780         (BUS_OBJERR): Likewise.
42781         (BUS_MCEERR_AR): Likewise.
42782         (BUS_MCEERR_AO): Likewise.
42783         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42784         (TRAP_TRACE): Likewise.
42785         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42786         __USE_XOPEN2K8].
42787         (CLD_KILLED): Likewise.
42788         (CLD_DUMPED): Likewise.
42789         (CLD_TRAPPED): Likewise.
42790         (CLD_STOPPED): Likewise.
42791         (CLD_CONTINUED): Likewise.
42792         (POLL_IN): Likewise.
42793         (POLL_OUT): Likewise.
42794         (POLL_MSG): Likewise.
42795         (POLL_ERR): Likewise.
42796         (POLL_PRI): Likewise.
42797         (POLL_HUP): Likewise.
42798         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
42799         Likewise.
42800         (ILL_ILLOPN): Likewise.
42801         (ILL_ILLADR): Likewise.
42802         (ILL_ILLTRP): Likewise.
42803         (ILL_PRVOPC): Likewise.
42804         (ILL_PRVREG): Likewise.
42805         (ILL_COPROC): Likewise.
42806         (ILL_BADSTK): Likewise.
42807         (ILL_BADIADDR): Likewise.
42808         (ILL_BREAK): Likewise.
42809         (FPE_INTDIV): Likewise.
42810         (FPE_INTOVF): Likewise.
42811         (FPE_FLTDIV): Likewise.
42812         (FPE_FLTOVF): Likewise.
42813         (FPE_FLTUND): Likewise.
42814         (FPE_FLTRES): Likewise.
42815         (FPE_FLTINV): Likewise.
42816         (FPE_FLTSUB): Likewise.
42817         (FPE_DECOVF): Likewise.
42818         (FPE_DECDIV): Likewise.
42819         (FPE_DECERR): Likewise.
42820         (FPE_INVASC): Likewise.
42821         (FPE_INVDEC): Likewise.
42822         (SEGV_MAPERR): Likewise.
42823         (SEGV_ACCERR): Likewise.
42824         (SEGV_PSTKOVF): Likewise.
42825         (BUS_ADRALN): Likewise.
42826         (BUS_ADRERR): Likewise.
42827         (BUS_OBJERR): Likewise.
42828         (BUS_MCEERR_AR): Likewise.
42829         (BUS_MCEERR_AO): Likewise.
42830         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42831         (TRAP_TRACE): Likewise.
42832         (TRAP_BRANCH): Likewise.
42833         (TRAP_HWBKPT): Likewise.
42834         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42835         __USE_XOPEN2K8].
42836         (CLD_KILLED): Likewise.
42837         (CLD_DUMPED): Likewise.
42838         (CLD_TRAPPED): Likewise.
42839         (CLD_STOPPED): Likewise.
42840         (CLD_CONTINUED): Likewise.
42841         (POLL_IN): Likewise.
42842         (POLL_OUT): Likewise.
42843         (POLL_MSG): Likewise.
42844         (POLL_ERR): Likewise.
42845         (POLL_PRI): Likewise.
42846         (POLL_HUP): Likewise.
42847         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
42848         (ILL_ILLOPN): Likewise.
42849         (ILL_ILLADR): Likewise.
42850         (ILL_ILLTRP): Likewise.
42851         (ILL_PRVOPC): Likewise.
42852         (ILL_PRVREG): Likewise.
42853         (ILL_COPROC): Likewise.
42854         (ILL_BADSTK): Likewise.
42855         (FPE_INTDIV): Likewise.
42856         (FPE_INTOVF): Likewise.
42857         (FPE_FLTDIV): Likewise.
42858         (FPE_FLTOVF): Likewise.
42859         (FPE_FLTUND): Likewise.
42860         (FPE_FLTRES): Likewise.
42861         (FPE_FLTINV): Likewise.
42862         (FPE_FLTSUB): Likewise.
42863         (SEGV_MAPERR): Likewise.
42864         (SEGV_ACCERR): Likewise.
42865         (BUS_ADRALN): Likewise.
42866         (BUS_ADRERR): Likewise.
42867         (BUS_OBJERR): Likewise.
42868         (BUS_MCEERR_AR): Likewise.
42869         (BUS_MCEERR_AO): Likewise.
42870         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42871         (TRAP_TRACE): Likewise.
42872         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42873         __USE_XOPEN2K8].
42874         (CLD_KILLED): Likewise.
42875         (CLD_DUMPED): Likewise.
42876         (CLD_TRAPPED): Likewise.
42877         (CLD_STOPPED): Likewise.
42878         (CLD_CONTINUED): Likewise.
42879         (POLL_IN): Likewise.
42880         (POLL_OUT): Likewise.
42881         (POLL_MSG): Likewise.
42882         (POLL_ERR): Likewise.
42883         (POLL_PRI): Likewise.
42884         (POLL_HUP): Likewise.
42885         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
42886         (ILL_ILLOPN): Likewise.
42887         (ILL_ILLADR): Likewise.
42888         (ILL_ILLTRP): Likewise.
42889         (ILL_PRVOPC): Likewise.
42890         (ILL_PRVREG): Likewise.
42891         (ILL_COPROC): Likewise.
42892         (ILL_BADSTK): Likewise.
42893         (FPE_INTDIV): Likewise.
42894         (FPE_INTOVF): Likewise.
42895         (FPE_FLTDIV): Likewise.
42896         (FPE_FLTOVF): Likewise.
42897         (FPE_FLTUND): Likewise.
42898         (FPE_FLTRES): Likewise.
42899         (FPE_FLTINV): Likewise.
42900         (FPE_FLTSUB): Likewise.
42901         (SEGV_MAPERR): Likewise.
42902         (SEGV_ACCERR): Likewise.
42903         (BUS_ADRALN): Likewise.
42904         (BUS_ADRERR): Likewise.
42905         (BUS_OBJERR): Likewise.
42906         (BUS_MCEERR_AR): Likewise.
42907         (BUS_MCEERR_AO): Likewise.
42908         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42909         (TRAP_TRACE): Likewise.
42910         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42911         __USE_XOPEN2K8].
42912         (CLD_KILLED): Likewise.
42913         (CLD_DUMPED): Likewise.
42914         (CLD_TRAPPED): Likewise.
42915         (CLD_STOPPED): Likewise.
42916         (CLD_CONTINUED): Likewise.
42917         (POLL_IN): Likewise.
42918         (POLL_OUT): Likewise.
42919         (POLL_MSG): Likewise.
42920         (POLL_ERR): Likewise.
42921         (POLL_PRI): Likewise.
42922         (POLL_HUP): Likewise.
42923         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
42924         (ILL_ILLOPN): Likewise.
42925         (ILL_ILLADR): Likewise.
42926         (ILL_ILLTRP): Likewise.
42927         (ILL_PRVOPC): Likewise.
42928         (ILL_PRVREG): Likewise.
42929         (ILL_COPROC): Likewise.
42930         (ILL_BADSTK): Likewise.
42931         (FPE_INTDIV): Likewise.
42932         (FPE_INTOVF): Likewise.
42933         (FPE_FLTDIV): Likewise.
42934         (FPE_FLTOVF): Likewise.
42935         (FPE_FLTUND): Likewise.
42936         (FPE_FLTRES): Likewise.
42937         (FPE_FLTINV): Likewise.
42938         (FPE_FLTSUB): Likewise.
42939         (SEGV_MAPERR): Likewise.
42940         (SEGV_ACCERR): Likewise.
42941         (BUS_ADRALN): Likewise.
42942         (BUS_ADRERR): Likewise.
42943         (BUS_OBJERR): Likewise.
42944         (BUS_MCEERR_AR): Likewise.
42945         (BUS_MCEERR_AO): Likewise.
42946         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42947         (TRAP_TRACE): Likewise.
42948         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42949         __USE_XOPEN2K8].
42950         (CLD_KILLED): Likewise.
42951         (CLD_DUMPED): Likewise.
42952         (CLD_TRAPPED): Likewise.
42953         (CLD_STOPPED): Likewise.
42954         (CLD_CONTINUED): Likewise.
42955         (POLL_IN): Likewise.
42956         (POLL_OUT): Likewise.
42957         (POLL_MSG): Likewise.
42958         (POLL_ERR): Likewise.
42959         (POLL_PRI): Likewise.
42960         (POLL_HUP): Likewise.
42961         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
42962         (ILL_ILLOPN): Likewise.
42963         (ILL_ILLADR): Likewise.
42964         (ILL_ILLTRP): Likewise.
42965         (ILL_PRVOPC): Likewise.
42966         (ILL_PRVREG): Likewise.
42967         (ILL_COPROC): Likewise.
42968         (ILL_BADSTK): Likewise.
42969         (ILL_DBLFLT): Likewise.
42970         (ILL_HARDWALL): Likewise.
42971         (FPE_INTDIV): Likewise.
42972         (FPE_INTOVF): Likewise.
42973         (FPE_FLTDIV): Likewise.
42974         (FPE_FLTOVF): Likewise.
42975         (FPE_FLTUND): Likewise.
42976         (FPE_FLTRES): Likewise.
42977         (FPE_FLTINV): Likewise.
42978         (FPE_FLTSUB): Likewise.
42979         (SEGV_MAPERR): Likewise.
42980         (SEGV_ACCERR): Likewise.
42981         (BUS_ADRALN): Likewise.
42982         (BUS_ADRERR): Likewise.
42983         (BUS_OBJERR): Likewise.
42984         (BUS_MCEERR_AR): Likewise.
42985         (BUS_MCEERR_AO): Likewise.
42986         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42987         (TRAP_TRACE): Likewise.
42988         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42989         __USE_XOPEN2K8].
42990         (CLD_KILLED): Likewise.
42991         (CLD_DUMPED): Likewise.
42992         (CLD_TRAPPED): Likewise.
42993         (CLD_STOPPED): Likewise.
42994         (CLD_CONTINUED): Likewise.
42995         (POLL_IN): Likewise.
42996         (POLL_OUT): Likewise.
42997         (POLL_MSG): Likewise.
42998         (POLL_ERR): Likewise.
42999         (POLL_PRI): Likewise.
43000         (POLL_HUP): Likewise.
43001         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
43002         (ILL_ILLOPN): Likewise.
43003         (ILL_ILLADR): Likewise.
43004         (ILL_ILLTRP): Likewise.
43005         (ILL_PRVOPC): Likewise.
43006         (ILL_PRVREG): Likewise.
43007         (ILL_COPROC): Likewise.
43008         (ILL_BADSTK): Likewise.
43009         (FPE_INTDIV): Likewise.
43010         (FPE_INTOVF): Likewise.
43011         (FPE_FLTDIV): Likewise.
43012         (FPE_FLTOVF): Likewise.
43013         (FPE_FLTUND): Likewise.
43014         (FPE_FLTRES): Likewise.
43015         (FPE_FLTINV): Likewise.
43016         (FPE_FLTSUB): Likewise.
43017         (SEGV_MAPERR): Likewise.
43018         (SEGV_ACCERR): Likewise.
43019         (BUS_ADRALN): Likewise.
43020         (BUS_ADRERR): Likewise.
43021         (BUS_OBJERR): Likewise.
43022         (BUS_MCEERR_AR): Likewise.
43023         (BUS_MCEERR_AO): Likewise.
43024         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
43025         (TRAP_TRACE): Likewise.
43026         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
43027         __USE_XOPEN2K8].
43028         (CLD_KILLED): Likewise.
43029         (CLD_DUMPED): Likewise.
43030         (CLD_TRAPPED): Likewise.
43031         (CLD_STOPPED): Likewise.
43032         (CLD_CONTINUED): Likewise.
43033         (POLL_IN): Likewise.
43034         (POLL_OUT): Likewise.
43035         (POLL_MSG): Likewise.
43036         (POLL_ERR): Likewise.
43037         (POLL_PRI): Likewise.
43038         (POLL_HUP): Likewise.
43039         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
43040         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
43041
43042         [BZ #16670]
43043         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
43044         before #include of <time.h>.
43045         [!__USE_XOPEN2K] (__need_timespec): Likewise.
43046         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
43047         (test-xfail-UNIX98/sched.h/conform): Likewise.
43048
43049 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
43050
43051         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
43052         error absence of trapping exception support.
43053         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
43054
43055 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
43056
43057         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
43058         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
43059         * timezone/Makefile (testdata): Move definition above include of
43060         Rules.
43061         (test-zones): New variable.
43062         (tests-special): Add zone files.
43063         (build-testdata): Use $(evaluate-test).
43064
43065         * elf/Makefile (tests-special): Rename tests to end with .out.
43066         ($(objpfx)noload-mem): Likewise.
43067         ($(objpfx)tst-leaks1-mem): Likewise.
43068         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
43069         * iconv/Makefile (xtests-special): Change test-iconvconfig to
43070         $(objpfx)test-iconvconfig.out.
43071         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
43072         set -e inside subshell and redirect output to file.
43073         * iconvdata/Makefile (generated): Rename tests to end with .out.
43074         Correct type.
43075         (tests-special): Rename tests to end with .out.
43076         ($(objpfx)mtrace-tst-loading): Likewise.
43077         * intl/Makefile (generated): Likewise.
43078         (tests-special): Likewise.
43079         ($(objpfx)mtrace-tst-gettext): Likewise.
43080         * misc/Makefile (generated): Likewise.
43081         (tests-special): Likewise.
43082         ($(objpfx)tst-error1-mem): Likewise.
43083         * nptl/Makefile (tests-special): Likewise.
43084         ($(objpfx)tst-stack3-mem): Likewise.
43085         (generated): Likewise.
43086         * posix/Makefile (generated): Likewise.
43087         (tests-special): Likewise.
43088         (xtests-special): Likewise.
43089         ($(objpfx)tst-fnmatch-mem): Likewise.
43090         ($(objpfx)bug-regex2-mem): Likewise.
43091         ($(objpfx)bug-regex14-mem): Likewise.
43092         ($(objpfx)bug-regex21-mem): Likewise.
43093         ($(objpfx)bug-regex31-mem): Likewise.
43094         ($(objpfx)tst-vfork3-mem): Likewise.
43095         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
43096         ($(objpfx)tst-pcre-mem): Likewise.
43097         ($(objpfx)tst-boost-mem): Likewise.
43098         ($(objpfx)bug-ga2-mem): Likewise.
43099         ($(objpfx)bug-glob2-mem): Likewise.
43100         * resolv/Makefile (generate): Likewise.
43101         (tests-special): Likewise.
43102         (xtests-special): Likewise.
43103         (generated): Likewise.
43104         ($(objpfx)mtrace-tst-leaks): Likewise.
43105         ($(objpfx)mtrace-tst-leaks2): Likewise.
43106
43107         * scripts/merge-test-results.sh: New file.
43108         * Makefile (tests-special-notdir): New variable.
43109         (tests): Run merge-test-results.sh.
43110         (xtests): Likewise.
43111         * Rules (tests-special-notdir): New variable.
43112         (xtests-special-notdir): Likewise.
43113         (tests): Run merge-test-results.sh
43114         (xtests): Likewise.
43115
43116         * Makeconfig (test-xfail-name): New variable.
43117         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
43118         compute variable name for expected failures.
43119         * conform/Makefile (conformtest-headers-data): New variable.
43120         (conformtest-standards): Likewise.
43121         (conformtest-headers-ISO): Likewise.
43122         (conformtest-headers-ISO99): Likewise.
43123         (conformtest-headers-ISO11): Likewise.
43124         (conformtest-headers-POSIX): Likewise.
43125         (conformtest-headers-XPG3): Likewise.
43126         (conformtest-headers-XPG4): Likewise.
43127         (conformtest-headers-UNIX98): Likewise.
43128         (conformtest-headers-XOPEN2K): Likewise.
43129         (conformtest-headers-POSIX2008): Likewise.
43130         (conformtest-headers-XOPEN2K8): Likewise.
43131         (conformtest-header-list-base): Likewise.
43132         (conformtest-header-list-tests): Likewise.
43133         (conformtest-header-base): Likewise.
43134         (conformtest-header-tests): Likewise.
43135         (tests-special): Add $(conformtest-header-list-tests).  If
43136         [$(fast-check) && !$(cross-compiling)], add
43137         $(conformtest-header-tests) instead of
43138         $(objpfx)run-conformtest.out.
43139         (generated): Add $(conformtest-header-list-base).  If
43140         [$(fast-check) && !$(cross-compiling)], add
43141         $(conformtest-header-base).  Remove previous setting.
43142         ($(conformtest-header-list-tests)): New target.
43143         (test-xfail-run-conformtest): Remove variable.
43144         ($(objpfx)run-conformtest.out): Remove target.
43145         (test-xfail-ISO11/complex.h/conform): New variable.
43146         (test-xfail-ISO11/stdalign.h/conform): Likewise.
43147         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
43148         (test-xfail-XPG3/varargs.h/conform): Likewise.
43149         (test-xfail-XPG4/varargs.h/conform): Likewise.
43150         (test-xfail-UNIX98/varargs.h/conform): Likewise.
43151         (test-xfail-XPG4/ndbm.h/conform): Likewise.
43152         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
43153         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
43154         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
43155         (test-xfail-XPG3/fcntl.h/conform): Likewise.
43156         (test-xfail-XPG3/ftw.h/conform): Likewise.
43157         (test-xfail-XPG3/grp.h/conform): Likewise.
43158         (test-xfail-XPG3/langinfo.h/conform): Likewise.
43159         (test-xfail-XPG3/limits.h/conform): Likewise.
43160         (test-xfail-XPG3/pwd.h/conform): Likewise.
43161         (test-xfail-XPG3/search.h/conform): Likewise.
43162         (test-xfail-XPG3/signal.h/conform): Likewise.
43163         (test-xfail-XPG3/stdio.h/conform): Likewise.
43164         (test-xfail-XPG3/stdlib.h/conform): Likewise.
43165         (test-xfail-XPG3/string.h/conform): Likewise.
43166         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
43167         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
43168         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
43169         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
43170         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
43171         (test-xfail-XPG3/sys/types.h/conform): Likewise.
43172         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
43173         (test-xfail-XPG3/termios.h/conform): Likewise.
43174         (test-xfail-XPG3/time.h/conform): Likewise.
43175         (test-xfail-XPG3/unistd.h/conform): Likewise.
43176         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
43177         (test-xfail-XPG4/fcntl.h/conform): Likewise.
43178         (test-xfail-XPG4/langinfo.h/conform): Likewise.
43179         (test-xfail-XPG4/netdb.h/conform): Likewise.
43180         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
43181         (test-xfail-XPG4/signal.h/conform): Likewise.
43182         (test-xfail-XPG4/stdio.h/conform): Likewise.
43183         (test-xfail-XPG4/stdlib.h/conform): Likewise.
43184         (test-xfail-XPG4/stropts.h/conform): Likewise.
43185         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
43186         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
43187         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
43188         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
43189         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
43190         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
43191         (test-xfail-XPG4/sys/time.h/conform): Likewise.
43192         (test-xfail-XPG4/sys/types.h/conform): Likewise.
43193         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
43194         (test-xfail-XPG4/termios.h/conform): Likewise.
43195         (test-xfail-XPG4/ucontext.h/conform): Likewise.
43196         (test-xfail-XPG4/unistd.h/conform): Likewise.
43197         (test-xfail-XPG4/utmpx.h/conform): Likewise.
43198         (test-xfail-POSIX/sched.h/conform): Likewise.
43199         (test-xfail-POSIX/signal.h/conform): Likewise.
43200         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
43201         (test-xfail-POSIX/tar.h/conform): Likewise.
43202         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
43203         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
43204         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
43205         (test-xfail-UNIX98/netdb.h/conform): Likewise.
43206         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
43207         (test-xfail-UNIX98/sched.h/conform): Likewise.
43208         (test-xfail-UNIX98/signal.h/conform): Likewise.
43209         (test-xfail-UNIX98/stdio.h/conform): Likewise.
43210         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
43211         (test-xfail-UNIX98/stropts.h/conform): Likewise.
43212         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
43213         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
43214         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
43215         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
43216         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
43217         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
43218         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
43219         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
43220         (test-xfail-UNIX98/unistd.h/conform): Likewise.
43221         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
43222         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
43223         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
43224         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
43225         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
43226         (test-xfail-XOPEN2K/math.h/conform): Likewise.
43227         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
43228         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
43229         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
43230         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
43231         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
43232         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
43233         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
43234         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
43235         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
43236         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
43237         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
43238         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
43239         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
43240         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
43241         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
43242         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
43243         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
43244         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
43245         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
43246         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
43247         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
43248         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
43249         (test-xfail-POSIX2008/signal.h/conform): Likewise.
43250         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
43251         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
43252         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
43253         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
43254         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
43255         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
43256         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
43257         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
43258         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
43259         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
43260         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
43261         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
43262         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
43263         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
43264         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
43265         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
43266         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
43267         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
43268         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
43269         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
43270         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
43271         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
43272         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
43273         (conformtest-cc-flags): Likewise.
43274         ($(conformtest-header-tests): New target.
43275         * conform/check-header-lists.sh: New file.
43276         * conform/run-conformtest.sh: Remove.
43277
43278         * conform/conformtest.pl: Allow ' and \ in values given for
43279         constants.
43280         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
43281         inclusion.
43282         [POSIX] (sys/types.h): Likewise.
43283         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
43284         inclusion.
43285         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
43286         inclusion.
43287         * conform/data/signal.h-data (SIGIO): Remove expectation.
43288         [XPG3] (SIGBUS): Do not expect.
43289         [POSIX || XPG3] (SIGPOLL): Likewise.
43290         [POSIX || XPG3] (SIGPROF): Likewise.
43291         [POSIX || XPG3] (SIGSYS): Likewise.
43292         [XPG3] (SIGTRAP): Likewise.
43293         [POSIX || XPG3] (SIGURG): Likewise.
43294         [POSIX || XPG3] (SIGVTALRM): Likewise.
43295         [POSIX || XPG3] (SIGXCPU): Likewise.
43296         [POSIX || XPG3] (SIGXFSZ): Likewise.
43297         [POSIX] (SA_SIGINFO): Expect.
43298         [XPG3] (siginfo_t): Do not expect type or contents.
43299         [POSIX] (si_pid): Do not expect element.
43300         [POSIX] (si_uid): Likewise.
43301         [POSIX] (si_addr): Likewise.
43302         [POSIX] (si_status): Likewise.
43303         [POSIX] (si_band): Likewise.
43304         [XPG4] (si_value): Likewise.
43305         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
43306         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
43307         [POSIX || XPG3] (ILL_ILLADR): Likewise.
43308         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
43309         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
43310         [POSIX || XPG3] (ILL_PRVREG): Likewise.
43311         [POSIX || XPG3] (ILL_COPROC): Likewise.
43312         [POSIX || XPG3] (ILL_BADSTK): Likewise.
43313         [POSIX || XPG3] (FPE_INTDIV): Likewise.
43314         [POSIX || XPG3] (FPE_INTOVF): Likewise.
43315         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
43316         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
43317         [POSIX || XPG3] (FPE_FLTUND): Likewise.
43318         [POSIX || XPG3] (FPE_FLTRES): Likewise.
43319         [POSIX || XPG3] (FPE_FLTINV): Likewise.
43320         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
43321         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
43322         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
43323         [POSIX || XPG3] (BUS_ADRALN): Likewise.
43324         [POSIX || XPG3] (BUS_ADRERR): Likewise.
43325         [POSIX || XPG3] (BUS_OBJERR): Likewise.
43326         [POSIX || XPG3] (CLD_EXITED): Likewise.
43327         [POSIX || XPG3] (CLD_KILLED): Likewise.
43328         [POSIX || XPG3] (CLD_DUMPED): Likewise.
43329         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
43330         [POSIX || XPG3] (CLD_STOPPED): Likewise.
43331         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
43332         [POSIX || XPG3] (POLL_IN): Likewise.
43333         [POSIX || XPG3] (POLL_OUT): Likewise.
43334         [POSIX || XPG3] (POLL_MSG): Likewise.
43335         [POSIX || XPG3] (POLL_ERR): Likewise.
43336         [POSIX || XPG3] (POLL_PRI): Likewise.
43337         [POSIX || XPG3] (POLL_HUP): Likewise.
43338         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
43339         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
43340         (SIG*): Do not allow.
43341         [XPG3] (si_*): Likewise.
43342         [XPG3] (SI_*): Likewise.
43343         [XPG3 || XPG4] (sigev_*): Likewise.
43344         [XPG3 || XPG4] (SIGEV_*): Likewise.
43345         [XPG3 || XPG4] (sival_*): Likewise.
43346         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
43347         [POSIX || XPG3] (BUS_*): Likewise.
43348         [POSIX || XPG3] (CLD_*): Likewise.
43349         [POSIX || XPG3] (FPE_*): Likewise.
43350         [POSIX || XPG3] (ILL_*): Likewise.
43351         [POSIX || XPG3] (POLL_*): Likewise.
43352         [POSIX || XPG3] (SEGV_*): Likewise.
43353         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
43354         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
43355         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
43356         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
43357         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
43358         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
43359         Specify type and value.
43360         (TVERSLEN): Likewise.
43361         (REGTYPE): Likewise.
43362         (AREGTYPE): Likewise.
43363         (LNKTYPE): Likewise.
43364         (SYMTYPE): Likewise.
43365         (CHRTYPE): Likewise.
43366         (BLKTYPE): Likewise.
43367         (DIRTYPE): Likewise.
43368         (FIFOTYPE): Likewise.
43369         (CONTTYPE): Likewise.
43370         (TSUID): Likewise.
43371         (TSGID): Likewise.
43372         (TSVTX): Likewise.
43373         (TUREAD): Likewise.
43374         (TUWRITE): Likewise.
43375         (TUEXEC): Likewise.
43376         (TGREAD): Likewise.
43377         (TGWRITE): Likewise.
43378         (TGEXEC): Likewise.
43379         (TOREAD): Likewise.
43380         (TOWRITE): Likewise.
43381         (TOEXEC): Likewise.
43382         [POSIX] (TSVTX): Expect constant.
43383
43384 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
43385
43386         * Makefile (tests): Change dependencies to ....
43387         (tests-special): ... additions to this variable.
43388         (tests): Depend on $(tests-special).
43389         * Makerules (check-abi-list): New variable.
43390         (check-abi): Depend on $(check-abi-list).
43391         [$(subdir) = elf] (tests-special): Add
43392         $(objpfx)check-abi-libc.out.
43393         [$(build-shared) = yes && subdir] (tests-special): Add
43394         $(check-abi-list).
43395         [$(build-shared) = yes && subdir] (tests): Do not depend on
43396         check-abi.
43397         * Rules (tests): Depend on $(tests-special).
43398         (xtests): Depend on $(xtests-special).
43399         * catgets/Makefile (tests): Change dependencies to ....
43400         (tests-special): ... additions to this variable.
43401         * conform/Makefile (tests): Change dependencies to ....
43402         (tests-special): ... additions to this variable.
43403         * elf/Makefile (tests): Change dependencies to ....
43404         (tests-special): ... additions to this variable.
43405         * grp/Makefile (tests): Change dependencies to ....
43406         (tests-special): ... additions to this variable.
43407         * iconv/Makefile (xtests): Change dependencies to ....
43408         (xtests-special): ... additions to this variable.
43409         * iconvdata/Makefile (tests): Change dependencies to ....
43410         (tests-special): ... additions to this variable.
43411         * intl/Makefile (tests): Change dependencies to ....
43412         (tests-special): ... additions to this variable.  Also add
43413         $(objpfx)tst-gettext.out.
43414         * io/Makefile (tests): Change dependencies to ....
43415         (tests-special): ... additions to this variable.
43416         * libio/Makefile (tests): Change dependencies to ....
43417         (tests-special): ... additions to this variable.
43418         * malloc/Makefile (tests): Change dependencies to ....
43419         (tests-special): ... additions to this variable.
43420         * misc/Makefile (tests): Change dependencies to ....
43421         (tests-special): ... additions to this variable.
43422         * nptl/Makefile (tests): Change dependencies to ....
43423         (tests-special): ... additions to this variable.
43424         * nptl_db/Makefile (tests): Change dependencies to ....
43425         (tests-special): ... additions to this variable.
43426         * posix/Makefile (tests): Change dependencies to ....
43427         (tests-special): ... additions to this variable.
43428         (xtests): Change dependencies to ....
43429         (xtests-special): ... additions to this variable.
43430         * resolv/Makefile (tests): Change dependencies to ....
43431         (tests-special): ... additions to this variable.
43432         (xtests): Change dependencies to ....
43433         (xtests-special): ... additions to this variable.
43434         * stdio-common/Makefile (tests): Change dependencies to ....
43435         (tests-special): ... additions to this variable.
43436         (do-tst-unbputc): Remove target.
43437         (do-tst-printf): Likewise.
43438         * stdlib/Makefile (tests): Change dependencies to ....
43439         (tests-special): ... additions to this variable.
43440         * string/Makefile (tests): Change dependencies to ....
43441         (tests-special): ... additions to this variable.
43442         * sysdeps/x86/Makefile (tests): Change dependencies to ....
43443         (tests-special): ... additions to this variable.
43444
43445         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
43446         whole file.
43447         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
43448         whole file.
43449         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
43450         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
43451
43452         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
43453         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
43454         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
43455         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
43456         * conform/data/libgen.h-data [XPG3]: Likewise.
43457         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
43458         * conform/data/ndbm.h-data [XPG3]: Likewise.
43459         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
43460         * conform/data/netdb.h-data [XPG3]: Likewise.
43461         * conform/data/netinet/in.h-data [XPG3]: Likewise.
43462         * conform/data/poll.h-data [XPG3]: Likewise.
43463         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
43464         * conform/data/strings.h-data [XPG3]: Likewise.
43465         * conform/data/stropts.h-data [XPG3]: Likewise.
43466         * conform/data/sys/mman.h-data [XPG3]: Likewise.
43467         * conform/data/sys/resource.h-data [XPG3]: Likewise.
43468         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
43469         Likewise.
43470         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
43471         * conform/data/sys/time.h-data [XPG3]: Likewise.
43472         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
43473         * conform/data/sys/uio.h-data [XPG3]: Likewise.
43474         * conform/data/sys/un.h-data [XPG3]: Likewise.
43475         * conform/data/syslog.h-data [XPG3]: Likewise.
43476         * conform/data/ucontext.h-data [XPG3]: Likewise.
43477         * conform/data/utmpx.h-data [XPG3]: Likewise.
43478         * conform/data/varargs.h-data [UNIX98]: Enable file.
43479
43480         * manual/Makefile (INSTALL_INFO): Remove variable setting.
43481
43482         * math/libm-test.inc (struct test_f_f_data): Move expected results
43483         into structure for each rounding mode.
43484         (struct test_ff_f_data): Likewise.
43485         (struct test_ff_f_data_nexttoward): Likewise.
43486         (struct test_fi_f_data): Likewise.
43487         (struct test_fl_f_data): Likewise.
43488         (struct test_if_f_data): Likewise.
43489         (struct test_fff_f_data): Likewise.
43490         (struct test_c_f_data): Likewise.
43491         (struct test_f_f1_data): Likewise.
43492         (struct test_fF_f1_data): Likewise.
43493         (struct test_ffI_f1_data): Likewise.
43494         (struct test_c_c_data): Likewise.
43495         (struct test_cc_c_data): Likewise.
43496         (struct test_f_i_data): Likewise.
43497         (struct test_ff_i_data): Likewise.
43498         (struct test_f_l_data): Likewise.
43499         (struct test_f_L_data): Likewise.
43500         (struct test_fFF_11_data): Likewise.
43501         (RM_): New macro.
43502         (RM_FE_DOWNWARD): Likewise.
43503         (RM_FE_TONEAREST): Likewise.
43504         (RM_FE_TOWARDZERO): Likewise.
43505         (RM_FE_UPWARD): Likewise.
43506         (RUN_TEST_LOOP_f_f): Update references to expected results.
43507         (RUN_TEST_LOOP_2_f): Likewise.
43508         (RUN_TEST_LOOP_fff_f): Likewise.
43509         (RUN_TEST_LOOP_c_f): Likewise.
43510         (RUN_TEST_LOOP_f_f1): Likewise.
43511         (RUN_TEST_LOOP_fF_f1): Likewise.
43512         (RUN_TEST_LOOP_fI_f1): Likewise.
43513         (RUN_TEST_LOOP_ffI_f1): Likewise.
43514         (RUN_TEST_LOOP_c_c): Likewise.
43515         (RUN_TEST_LOOP_cc_c): Likewise.
43516         (RUN_TEST_LOOP_f_i): Likewise.
43517         (RUN_TEST_LOOP_f_i_tg): Likewise.
43518         (RUN_TEST_LOOP_ff_i_tg): Likewise.
43519         (RUN_TEST_LOOP_f_b): Likewise.
43520         (RUN_TEST_LOOP_f_b_tg): Likewise.
43521         (RUN_TEST_LOOP_f_l): Likewise.
43522         (RUN_TEST_LOOP_f_L): Likewise.
43523         (RUN_TEST_LOOP_fFF_11): Likewise.
43524         * math/gen-libm-test.pl (parse_args): Output four copies of
43525         expected results for each test.
43526
43527         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43528         (__ASSUME_UTIMES): Remove.
43529         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43530         (__ASSUME_UTIMES): Likewise.
43531
43532         * math/gen-auto-libm-tests.c: Update comment on output format.
43533         (output_for_one_input_case): Generate before-rounding and
43534         after-rounding information as conditions on output flags not
43535         floating-point format.
43536         * math/auto-libm-test-out: Regenerated.
43537         * math/gen-libm-test.pl (cond_value): New function.
43538         (or_cond_value): Use cond_value.
43539         (generate_testfile): Handle conditional exceptions.
43540
43541 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
43542
43543         * math/libm-test.inc (max_valid_error): New variable.
43544         (init_max_error): Take new argument specifying whether function
43545         results are exactly determined.  Set max_valid_error and bound
43546         other variables for errors based on this argument.
43547         (set_max_error): Do not record results above max_valid_error.
43548         (check_float_internal): Only accept errors of up to 0.5ulps if
43549         also at most max_valid_error.
43550         (START): Take new argument EXACT and pass it to init_max_error.
43551         (acos_test): Update call to START.
43552         (acos_test_tonearest): Likewise.
43553         (acos_test_towardzero): Likewise.
43554         (acos_test_downward): Likewise.
43555         (acos_test_upward): Likewise.
43556         (acosh_test): Likewise.
43557         (asin_test): Likewise.
43558         (asin_test_tonearest): Likewise.
43559         (asin_test_towardzero): Likewise.
43560         (asin_test_downward): Likewise.
43561         (asin_test_upward): Likewise.
43562         (asinh_test): Likewise.
43563         (atan_test): Likewise.
43564         (atanh_test): Likewise.
43565         (atan2_test): Likewise.
43566         (cabs_test): Likewise.
43567         (cacos_test): Likewise.
43568         (cacosh_test): Likewise.
43569         (carg_test): Likewise.
43570         (casin_test): Likewise.
43571         (casinh_test): Likewise.
43572         (catan_test): Likewise.
43573         (catanh_test): Likewise.
43574         (cbrt_test): Likewise.
43575         (ccos_test): Likewise.
43576         (ccosh_test): Likewise.
43577         (ceil_test): Likewise.
43578         (cexp_test): Likewise.
43579         (cimag_test): Likewise.
43580         (clog_test): Likewise.
43581         (clog10_test): Likewise.
43582         (conj_test): Likewise.
43583         (copysign_test): Likewise.
43584         (cos_test): Likewise.
43585         (cos_test_tonearest): Likewise.
43586         (cos_test_towardzero): Likewise.
43587         (cos_test_downward): Likewise.
43588         (cos_test_upward): Likewise.
43589         (cosh_test): Likewise.
43590         (cosh_test_tonearest): Likewise.
43591         (cosh_test_towardzero): Likewise.
43592         (cosh_test_downward): Likewise.
43593         (cosh_test_upward): Likewise.
43594         (cpow_test): Likewise.
43595         (cproj_test): Likewise.
43596         (creal_test): Likewise.
43597         (csin_test): Likewise.
43598         (csinh_test): Likewise.
43599         (csqrt_test): Likewise.
43600         (ctan_test): Likewise.
43601         (ctan_test_tonearest): Likewise.
43602         (ctan_test_towardzero): Likewise.
43603         (ctan_test_downward): Likewise.
43604         (ctan_test_upward): Likewise.
43605         (ctanh_test): Likewise.
43606         (ctanh_test_tonearest): Likewise.
43607         (ctanh_test_towardzero): Likewise.
43608         (ctanh_test_downward): Likewise.
43609         (ctanh_test_upward): Likewise.
43610         (erf_test): Likewise.
43611         (erfc_test): Likewise.
43612         (exp_test): Likewise.
43613         (exp_test_tonearest): Likewise.
43614         (exp_test_towardzero): Likewise.
43615         (exp_test_downward): Likewise.
43616         (exp_test_upward): Likewise.
43617         (exp10_test): Likewise.
43618         (exp10_test_tonearest): Likewise.
43619         (exp10_test_towardzero): Likewise.
43620         (exp10_test_downward): Likewise.
43621         (exp10_test_upward): Likewise.
43622         (pow10_test): Likewise.
43623         (exp2_test): Likewise.
43624         (expm1_test): Likewise.
43625         (expm1_test_tonearest): Likewise.
43626         (expm1_test_towardzero): Likewise.
43627         (expm1_test_downward): Likewise.
43628         (expm1_test_upward): Likewise.
43629         (fabs_test): Likewise.
43630         (fdim_test): Likewise.
43631         (floor_test): Likewise.
43632         (fma_test): Likewise.
43633         (fma_test_towardzero): Likewise.
43634         (fma_test_downward): Likewise.
43635         (fma_test_upward): Likewise.
43636         (fmax_test): Likewise.
43637         (fmin_test): Likewise.
43638         (fmod_test): Likewise.
43639         (fpclassify_test): Likewise.
43640         (frexp_test): Likewise.
43641         (hypot_test): Likewise.
43642         (ilogb_test): Likewise.
43643         (isfinite_test): Likewise.
43644         (finite_test): Likewise.
43645         (isgreater_test): Likewise.
43646         (isgreaterequal_test): Likewise.
43647         (isinf_test): Likewise.
43648         (isless_test): Likewise.
43649         (islessequal_test): Likewise.
43650         (islessgreater_test): Likewise.
43651         (isnan_test): Likewise.
43652         (isnormal_test): Likewise.
43653         (issignaling_test): Likewise.
43654         (isunordered_test): Likewise.
43655         (j0_test): Likewise.
43656         (j1_test): Likewise.
43657         (jn_test): Likewise.
43658         (ldexp_test): Likewise.
43659         (lgamma_test): Likewise.
43660         (gamma_test): Likewise.
43661         (lrint_test): Likewise.
43662         (lrint_test_tonearest): Likewise.
43663         (lrint_test_towardzero): Likewise.
43664         (lrint_test_downward): Likewise.
43665         (lrint_test_upward): Likewise.
43666         (llrint_test): Likewise.
43667         (llrint_test_tonearest): Likewise.
43668         (llrint_test_towardzero): Likewise.
43669         (llrint_test_downward): Likewise.
43670         (llrint_test_upward): Likewise.
43671         (log_test): Likewise.
43672         (log10_test): Likewise.
43673         (log1p_test): Likewise.
43674         (log2_test): Likewise.
43675         (logb_test): Likewise.
43676         (logb_test_downward): Likewise.
43677         (lround_test): Likewise.
43678         (llround_test): Likewise.
43679         (modf_test): Likewise.
43680         (nearbyint_test): Likewise.
43681         (nextafter_test): Likewise.
43682         (nexttoward_test): Likewise.
43683         (pow_test): Likewise.
43684         (pow_test_tonearest): Likewise.
43685         (pow_test_towardzero): Likewise.
43686         (pow_test_downward): Likewise.
43687         (pow_test_upward): Likewise.
43688         (remainder_test): Likewise.
43689         (drem_test): Likewise.
43690         (remainder_test_tonearest): Likewise.
43691         (drem_test_tonearest): Likewise.
43692         (remainder_test_towardzero): Likewise.
43693         (drem_test_towardzero): Likewise.
43694         (remainder_test_downward): Likewise.
43695         (drem_test_downward): Likewise.
43696         (remainder_test_upward): Likewise.
43697         (drem_test_upward): Likewise.
43698         (remquo_test): Likewise.
43699         (rint_test): Likewise.
43700         (rint_test_tonearest): Likewise.
43701         (rint_test_towardzero): Likewise.
43702         (rint_test_downward): Likewise.
43703         (rint_test_upward): Likewise.
43704         (round_test): Likewise.
43705         (scalb_test): Likewise.
43706         (scalbn_test): Likewise.
43707         (scalbln_test): Likewise.
43708         (signbit_test): Likewise.
43709         (sin_test): Likewise.
43710         (sin_test_tonearest): Likewise.
43711         (sin_test_towardzero): Likewise.
43712         (sin_test_downward): Likewise.
43713         (sin_test_upward): Likewise.
43714         (sincos_test): Likewise.
43715         (sinh_test): Likewise.
43716         (sinh_test_tonearest): Likewise.
43717         (sinh_test_towardzero): Likewise.
43718         (sinh_test_downward): Likewise.
43719         (sinh_test_upward): Likewise.
43720         (sqrt_test): Likewise.
43721         (sqrt_test_tonearest): Likewise.
43722         (sqrt_test_towardzero): Likewise.
43723         (sqrt_test_downward): Likewise.
43724         (sqrt_test_upward): Likewise.
43725         (tan_test): Likewise.
43726         (tan_test_tonearest): Likewise.
43727         (tan_test_towardzero): Likewise.
43728         (tan_test_downward): Likewise.
43729         (tan_test_upward): Likewise.
43730         (tanh_test): Likewise.
43731         (tgamma_test): Likewise.
43732         (trunc_test): Likewise.
43733         (y0_test): Likewise.
43734         (y1_test): Likewise.
43735         (yn_test): Likewise.
43736         (significand_test): Likewise.
43737
43738         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
43739         individual tests in comment.
43740         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
43741         (prev_max_error): New variable.
43742         (prev_real_max_error): Likewise.
43743         (prev_imag_max_error): Likewise.
43744         (compare_ulp_data): Don't refer to test names in comment.
43745         (find_test_ulps): Remove function.
43746         (find_function_ulps): Likewise.
43747         (find_complex_function_ulps): Likewise.
43748         (init_max_error): Take function name as argument.  Look up ulps
43749         for that function.
43750         (print_ulps): Remove function.
43751         (print_max_error): Use prev_max_error instead of calling
43752         find_function_ulps.
43753         (print_complex_max_error): Use prev_real_max_error and
43754         prev_imag_max_error instead of calling find_complex_function_ulps.
43755         (check_float_internal): Take max_ulp parameter instead of calling
43756         find_test_ulps.  Don't call print_ulps.
43757         (check_float): Update call to check_float_internal.
43758         (check_complex): Update calls to check_float_internal.
43759         (START): Pass argument to init_max_error.
43760         * math/gen-libm-test.pl (%results): Don't include "kind"
43761         information.
43762         (parse_ulps): Don't handle ulps of individual tests.
43763         (print_ulps_file): Likewise.
43764         (output_ulps): Likewise.
43765         * math/README.libm-test: Update.
43766         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
43767         individual tests.
43768         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
43769         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
43770         * sysdeps/arm/libm-test-ulps: Likewise.
43771         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
43772         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
43773         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
43774         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
43775         * sysdeps/microblaze/libm-test-ulps: Likewise.
43776         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
43777         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
43778         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
43779         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
43780         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
43781         * sysdeps/sh/libm-test-ulps: Likewise.
43782         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
43783         * sysdeps/tile/libm-test-ulps: Likewise.
43784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43785
43786 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
43787
43788         * math/libm-test.inc (print_complex_max_error): Check separately
43789         whether real and imaginary errors are within allowed range and
43790         pass 0 to print_complex_function_ulps instead of value within
43791         allowed range.
43792
43793 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43794
43795         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
43796         formatting.
43797         (get_handles_fopen): Likewise.
43798         (do_write_test): Likewise.
43799
43800         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
43801
43802         * libio/fileops.c (do_ftell): Use cached offset when
43803         available.
43804         * libio/iofwide.c (do_ftell_wide): Likewise.
43805         * libio/iofdopen.c (_IO_new_fdopen): Don't use
43806         _IO_file_attach.
43807         * libio/wfileops.c (_IO_fwide): Don't cache offset.
43808
43809         [BZ #16532]
43810         * libio/libioP.h (get_file_offset): New function.
43811         * libio/fileops.c (get_file_offset): Likewise.
43812         (do_ftell): Likewise.
43813         (_IO_new_file_seekoff): Split out ftell logic.
43814         * libio/wfileops.c (do_ftell_wide): Likewise.
43815         (_IO_wfile_seekoff): Split out ftell logic.
43816         * libio/tst-ftell-active-handler.c: New test case.
43817         * libio/Makefile (tests): Add it.
43818
43819 2014-03-03  Roland McGrath  <roland@hack.frob.com>
43820
43821         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
43822         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
43823
43824 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
43825
43826         [BZ #16639]
43827         * nscd/connections.c (nscd_init): Call do_exit.
43828         (start_threads): Call do_exit and notify_parent.
43829         (begin_drop_privileges): Call do_exit.
43830         (finish_drop_privileges): Likewise.
43831         * nscd/selinux.c (preserve_capabilities): Likewise.
43832         (install_real_capabilities): Likewise.
43833         (nscd_selinux_enabled): Likewise.
43834         (avc_create_thread): Likewise.
43835         (avc_alloc_lock): Likewise.
43836         (nscd_avc_init): Likewise.
43837         * nscd/nscd.c (parent_fd): New static variable.
43838         (main): Create a pipe between parent and child processes.
43839         Skip closing parent_fd.
43840         (monitor_child): New function.
43841         (do_exit): Likewise.
43842         (notify_parent): Likewise.
43843         * nscd/nscd.h (notify_parent): Likewise.
43844         (do_exit): Likewise.
43845
43846 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
43847
43848         * malloc/malloc.c (__libc_calloc): Revert last change.
43849
43850 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43851
43852         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43853
43854 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
43855
43856         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
43857         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
43858         implementation.
43859         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
43860         (__libc_ifunc_impl_list): Likewise.
43861         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
43862         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
43863         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
43864         * string/strrchr.c: Define STRRCHR.
43865
43866 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
43867
43868         * benchtest/bench-strtok.c (simple_strtok): Delete.
43869         (strtok_string): Use as benchmark.
43870         * string/strtok (STRTOK): New macro.
43871
43872 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
43873
43874         * manual/threads.texi: Add header and standard comments to all
43875         functions.
43876
43877         * elf/dl-lookup.c (check_match): New function.
43878         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
43879         (do_lookup_x): Remove nested function check_match. Use non-nested
43880         function check_match.
43881
43882 2014-02-28  Roland McGrath  <roland@hack.frob.com>
43883
43884         * csu/Makefile (generated, before-compile): Use += rather than =.
43885         * catgets/Makefile (generated, generated-dirs): Likewise.
43886         * debug/Makefile (generated): Likewise.
43887         * dlfcn/Makefile (generated): Likewise.
43888         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
43889         * iconvdata/Makefile (before-compile, generated): Likewise.
43890         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
43891         * libio/Makefile (generated): Likewise.
43892         * malloc/Makefile (generated): Likewise.
43893         * manual/Makefile (generated, generated-dirs): Likewise.
43894         * misc/Makefile (generated): Likewise.
43895         * posix/Makefile (generated): Likewise.
43896         * resolv/Makefile (generated): Likewise.
43897         * sunrpc/Makefile (generated, generated-dirs): Likewise.
43898         * timezone/Makefile (generated, generated-dirs): Likewise.
43899
43900         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
43901
43902 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43903
43904         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
43905         power8 implementation.
43906         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
43907         file: POWER8 llround ifunc implementation.
43908         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
43909         (__lllround): Add POWER8 implementation.
43910         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
43911         POWER8 llround implementation.
43912
43913         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
43914         power8 implementation.
43915         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
43916         file: POWER8 llrint ifunc implementation.
43917         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
43918         Add POWER8 implementation.
43919         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
43920         POWER8 llrint implementation.
43921
43922         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
43923         power8 implementation.
43924         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
43925         file: POWER8 finite ifunc implementation.
43926         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
43927         Add POWER8 implementation.
43928         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
43929         Likewise.
43930         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
43931         POWER8 finite implementation.
43932         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
43933
43934         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
43935         power8 implementation.
43936         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
43937         file: POWER8 isinf ifunc implementation.
43938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
43939         POWER8 implementation.
43940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
43941         Likewise.
43942         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
43943         isinf implementation.
43944         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
43945
43946         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
43947         (INIT_ARCH): Add hwcap2 initialization.
43948         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
43949         power8 implementation.
43950         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
43951         file: POWER8 isnan ifunc implementation.
43952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
43953         POWER8 implementation.
43954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
43955         Likewise.
43956         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
43957         isnan implementation.
43958         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
43959
43960 2014-02-27  Joey Ye  <joey.ye@arm.com>
43961
43962         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
43963         (_FP_NANFRAC_Q): Set to zero.
43964
43965 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
43966
43967         [BZ #16623]
43968         * math/auto-libm-test-in: New test inputs.
43969         * math/auto-libm-test-out: Regenerate.
43970         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
43971         and DA.
43972         (__cos): Likewise.
43973         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
43974
43975 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
43976
43977         * scripts/evaluate-test.sh: Take new argument indicating whether
43978         failure is expected.
43979         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
43980         indicating whether failure is expected.
43981         * conform/Makefile (test-xfail-run-conformtest): New variable.
43982         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
43983         level.
43984         * posix/Makefile (test-xfail-annexc): New variable.
43985         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
43986
43987 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
43988
43989         * argp/Makefile: Include Makeconfig immediately after defining
43990         subdir.
43991         * assert/Makefile: Likewise.
43992         * benchtests/Makefile: Likewise.
43993         * catgets/Makefile: Likewise.
43994         * conform/Makefile: Likewise.
43995         * crypt/Makefile: Likewise.
43996         * csu/Makefile: Likewise.
43997         (all): Remove target.
43998         * ctype/Makefile: Include Makeconfig immediately after defining
43999         subdir.
44000         * debug/Makefile: Likewise.
44001         * dirent/Makefile: Likewise.
44002         * dlfcn/Makefile: Likewise.
44003         * gmon/Makefile: Likewise.
44004         * gnulib/Makefile: Likewise.
44005         * grp/Makefile: Likewise.
44006         * gshadow/Makefile: Likewise.
44007         * hesiod/Makefile: Likewise.
44008         * hurd/Makefile: Likewise.
44009         (all): Remove target.
44010         * iconvdata/Makefile: Include Makeconfig immediately after
44011         defining subdir.
44012         * inet/Makefile: Likewise.
44013         * intl/Makefile: Likewise.
44014         * io/Makefile: Likewise.
44015         * libio/Makefile: Likewise.
44016         (all): Remove target.
44017         * locale/Makefile: Include Makeconfig immediately after defining
44018         subdir.
44019         * login/Makefile: Likewise.
44020         * mach/Makefile: Likewise.
44021         (all): Remove target.
44022         * malloc/Makefile: Include Makeconfig immediately after defining
44023         subdir.
44024         (all): Remove target.
44025         * manual/Makefile: Include Makeconfig immediately after defining
44026         subdir.
44027         * math/Makefile: Likewise.
44028         * misc/Makefile: Likewise.
44029         * nis/Makefile: Likewise.
44030         * nss/Makefile: Likewise.
44031         * po/Makefile: Likewise.
44032         (all): Remove target.
44033         * posix/Makefile: Include Makeconfig immediately after defining
44034         subdir.
44035         * pwd/Makefile: Likewise.
44036         * resolv/Makefile: Likewise.
44037         * resource/Makefile: Likewise.
44038         * rt/Makefile: Likewise.
44039         * setjmp/Makefile: Likewise.
44040         * shadow/Makefile: Likewise.
44041         * signal/Makefile: Likewise.
44042         * socket/Makefile: Likewise.
44043         * soft-fp/Makefile: Likewise.
44044         * stdio-common/Makefile: Likewise.
44045         * stdlib/Makefile: Likewise.
44046         * streams/Makefile: Likewise.
44047         * string/Makefile: Likewise.
44048         * sunrpc/Makefile: Likewise.
44049         (all): Remove target.
44050         * sysvipc/Makefile: Include Makeconfig immediately after defining
44051         subdir.
44052         * termios/Makefile: Likewise.
44053         * time/Makefile: Likewise.
44054         * timezone/Makefile: Likewise.
44055         (all): Remove target.
44056         * wcsmbs/Makefile: Include Makeconfig immediately after defining
44057         subdir.
44058         * wctype/Makefile: Likewise.
44059
44060 2014-02-26  Steve Ellcey  <sellcey@mips.com>
44061
44062         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
44063         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
44064         (libc_feholdexcept_setround_mips): Ditto.
44065         (libc_feholdsetround): New.
44066         (libc_feholdsetroundf): New.
44067         (libc_feholdsetroundl): New.
44068         (libc_feupdateenv_test_mips): New.
44069         (libc_feupdateenv_test): New.
44070         (libc_feupdateenv_testf): New.
44071         (libc_feupdateenv_testl): New.
44072         (libc_feresetround): New.
44073         (libc_feresetroundf): New.
44074         (libc_feresetroundl): New.
44075         (libc_fetestexcept_mips): New.
44076         (libc_fetestexcept): New.
44077         (libc_fetestexceptf): New.
44078         (libc_fetestexceptl): New.
44079         (HAVE_RM_CTX): New.
44080         (libc_feholdexcept_setround_mips_ctx): New.
44081         (libc_feholdexcept_setround_ctx): New.
44082         (libc_feholdexcept_setroundf_ctx): New.
44083         (libc_feholdexcept_setroundl_ctx): New.
44084         (libc_fesetenv_mips_ctx): New.
44085         (libc_fesetenv_ctx): New.
44086         (libc_fesetenv_ctxf): New.
44087         (libc_fesetenv_ctxl): New.
44088         (libc_feupdateenv_mips_ctx): New.
44089         (libc_feupdateenv_ctx): New.
44090         (libc_feupdateenvf_ctx): New.
44091         (libc_feupdateenvl_ctx): New.
44092         (libc_feholdsetround_mips_ctx): New.
44093         (libc_feholdsetround_ctx): New.
44094         (libc_feholdsetroundf_ctx): New.
44095         (libc_feholdsetroundl_ctx): New.
44096         (libc_feresetround_mips_ctx): New.
44097         (libc_feresetround_ctx): New.
44098         (libc_feresetroundf_ctx): New.
44099         (libc_feresetroundl_ctx): New.
44100
44101 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
44102
44103         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
44104
44105         * manual/ipc.texi: New file.
44106         * manual/Makefile (chapters): Add ipc.
44107         * manual/job.texi: Add "Inter-Process Communication" to next.
44108         * manual/process.texi: Add "Inter-Process Communication" to prev.
44109
44110 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44111
44112         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44113
44114 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
44115
44116         * malloc/malloc.c (__libc_calloc): Simplify implementation.
44117
44118         * manual/arith.texi: Fix spaces after sentences.
44119         * manual/charset.texi: Likewise.
44120         * manual/errno.texi: Likewise.
44121         * manual/install.texi: Likewise.
44122         * manual/llio.texi: Likewise.
44123         * manual/locale.texi: Likewise.
44124         * manual/maint.texi: Likewise.
44125         * manual/math.texi: Likewise.
44126         * manual/memory.texi: Likewise.
44127         * manual/message.texi: Likewise.
44128         * manual/probes.texi: Likewise.
44129         * manual/resource.texi: Likewise.
44130         * manual/signal.texi: Likewise.
44131         * manual/socket.texi: Likewise.
44132         * manual/stdio.texi: Likewise.
44133         * manual/string.texi: Likewise.
44134         * manual/time.texi: Likewise.
44135         * manual/users.texi: Likewise.
44136
44137 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
44138
44139         [BZ #16632]
44140         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
44141         _DEFAULT_SOURCE is defined.
44142
44143 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
44144             Carlos O'Donell  <carlos@redhat.com>
44145
44146         [BZ #16613]
44147         * elf/dl-tls.c (_dl_count_modids): New function.
44148         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
44149         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
44150         audit library and increment generation counter.
44151         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
44152         * elf/tst-audit9.c: New file.
44153         * elf/tst-auditmod9a.c: New file.
44154         * elf/tst-auditmod9b.c: New file.
44155         * elf/Makefile: Add rules to build and run tst-audit9.
44156
44157 2014-02-25  Florian Weimer  <fweimer@redhat.com>
44158
44159         [BZ #15347]
44160         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
44161
44162 2014-02-25  Will Newton  <will.newton@linaro.org>
44163
44164         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
44165         (__longjmp): Restore sp and lr before restoring callee
44166         saved registers.  Add longjmp and longjmp_target
44167         SystemTap probe point.
44168         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
44169         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
44170         Define to zero to match jmpbuf layout.
44171         * sysdeps/arm/setjmp.S: Include stap-probe.h.
44172         (__sigsetjmp): Save sp and lr before saving callee
44173         saved registers.  Add setjmp SystemTap probe point.
44174
44175 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
44176
44177         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
44178
44179 2014-02-24  Andreas Schwab  <schwab@suse.de>
44180
44181         [BZ #15804]
44182         * elf/pldd.c (wait_for_ptrace_stop): New function.
44183         (main): Call it after attaching.
44184
44185 2014-02-22  Roland McGrath  <roland@hack.frob.com>
44186
44187         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
44188         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
44189         Versions files is now verboten.
44190         * hurd/Versions (libc: GLIBC_2.0):
44191         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
44192         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
44193         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
44194         * mach/Versions: Likewise.
44195
44196         * csu/Versions: Remove unused %include.
44197         * resolv/Versions: Likewise.
44198
44199 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
44200
44201         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
44202         ($(objpfx)check-local-headers.out): Likewise.
44203         ($(objpfx)begin-end-check.out): Likewise.
44204         * Makerules (check-abi-%.out): Likewise.
44205         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
44206         ($(objpfx)test2.cat): Likewise.
44207         ($(objpfx)de/libc.cat): Likewise.
44208         ($(objpfx)test-gencat.out): Likewise.
44209         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
44210         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
44211         ($(objpfx)noload-mem): Likewise.
44212         ($(objpfx)tst-pathopt.out): Likewise.
44213         ($(objpfx)tst-rtld-load-self.out): Likewise.
44214         ($(objpfx)tst-array1-cmp.out): Likewise.
44215         ($(objpfx)tst-array1-static-cmp.out): Likewise.
44216         ($(objpfx)tst-array2-cmp.out): Likewise.
44217         ($(objpfx)tst-array3-cmp.out): Likewise.
44218         ($(objpfx)tst-array4-cmp.out): Likewise.
44219         ($(objpfx)tst-array5-cmp.out): Likewise.
44220         ($(objpfx)tst-array5-static-cmp.out): Likewise.
44221         ($(objpfx)check-textrel.out): Likewise.
44222         ($(objpfx)check-execstack.out): Likewise.
44223         ($(objpfx)check-localplt.out): Likewise.
44224         ($(objpfx)order2-cmp.out): Likewise.
44225         ($(objpfx)tst-leaks1-mem): Likewise.
44226         ($(objpfx)tst-leaks1-static-mem): Likewise.
44227         ($(objpfx)tst-initorder-cmp.out): Likewise.
44228         ($(objpfx)tst-initorder2-cmp.out): Likewise.
44229         ($(objpfx)tst-unused-dep.out): Likewise.
44230         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
44231         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
44232         * iconv/Makefile (test-iconvconfig): Likewise.
44233         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
44234         ($(objpfx)iconv-test.out): Likewise.
44235         ($(objpfx)tst-tables.out): Likewise.
44236         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
44237         ($(objpfx)tst-gettext.out): Likewise.
44238         ($(objpfx)tst-translit.out): Likewise.
44239         ($(objpfx)tst-gettext2.out): Likewise.
44240         ($(objpfx)tst-gettext4.out): Likewise.
44241         ($(objpfx)tst-gettext6.out): Likewise.
44242         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
44243         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
44244         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
44245         ($(objpfx)tst-fopenloc-mem.out): Likewise.
44246         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
44247         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
44248         * posix/Makefile ($(objpfx)globtest.out): Likewise.
44249         ($(objpfx)wordexp-tst.out): Likewise.
44250         ($(objpfx)annexc.out): Likewise.
44251         ($(objpfx)tst-fnmatch-mem): Likewise.
44252         ($(objpfx)bug-regex2-mem): Likewise.
44253         ($(objpfx)bug-regex14-mem): Likewise.
44254         ($(objpfx)bug-regex21-mem): Likewise.
44255         ($(objpfx)bug-regex31-mem): Likewise.
44256         ($(objpfx)tst-vfork3-mem): Likewise.
44257         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
44258         ($(objpfx)tst-pcre-mem): Likewise.
44259         ($(objpfx)tst-boost-mem): Likewise.
44260         ($(objpfx)tst-getconf.out): Likewise.
44261         ($(objpfx)bug-ga2-mem): Likewise.
44262         ($(objpfx)bug-glob2-mem): Likewise.
44263         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
44264         ($(objpfx)mtrace-tst-leaks2): Likewise.
44265         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
44266         ($(objpfx)tst-printf.out): Likewise.
44267         ($(objpfx)tst-setvbuf1.out): Likewise.
44268         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
44269         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
44270         ($(objpfx)tst-fmtmsg.out): Likewise.
44271         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
44272         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
44273
44274         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
44275         * bits/sigaction.h [__USE_MISC]: Likewise.
44276         * bits/waitstatus.h: Update #endif comments.
44277         * ctype/ctype.h: Likewise.
44278         * dirent/dirent.h: Likewise.
44279         [__USE_MISC]: Remove redundant conditionals.
44280         * grp/grp.h: Update #endif comments.
44281         [__USE_GNU]: Remove redundant conditionals.
44282         [__USE_MISC]: Likewise.
44283         * inet/netinet/in.h [__USE_GNU]: Likewise.
44284         * io/sys/stat.h [__USE_MISC]: Likewise.
44285         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
44286         * libio/bits/stdio.h: Update #endif comments.
44287         [__USE_MISC]: Remove redundant conditionals.
44288         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
44289         * libio/stdio.h: Update #endif comments.
44290         [__USE_MISC]: Remove redundant conditionals.
44291         * math/bits/math-finite.h [__USE_MISC]: Likewise.
44292         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
44293         * math/math.h: Update #else and #endif comments.
44294         [__USE_MISC]: Remove redundant conditionals.
44295         * misc/sys/uio.h: Update #endif comments.
44296         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
44297         * posix/glob.h [__USE_MISC]: Likewise.
44298         * posix/sys/types.h: Update #endif comments.
44299         [__USE_MISC]: Remove redundant conditionals.
44300         * posix/sys/wait.h: Update #endif comments.
44301         [__USE_MISC]: Remove redundant conditionals.
44302         * posix/unistd.h: Update #endif comments.
44303         [__USE_MISC]: Remove redundant conditionals.
44304         * pwd/pwd.h [__USE_GNU]: Likewise.
44305         [__USE_MISC]: Likewise.
44306         * resolv/netdb.h [__USE_GNU]: Likewise.
44307         * signal/signal.h: Update #endif comments.
44308         [__USE_MISC]: Remove redundant conditionals.
44309         * stdlib/stdlib.h: Update #else and #endif comments.
44310         [__USE_MISC]: Remove redundant conditionals.
44311         [__USE_GNU]: Likewise.
44312         * string/bits/string2.h [__USE_MISC]: Likewise.
44313         * string/string.h: Update #endif comments.
44314         [__USE_MISC]: Remove redundant conditionals.
44315         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
44316         Likewise.
44317         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
44318         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
44319         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
44320         Likewise.
44321         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
44322         Likewise.
44323         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
44324         comments.
44325         [__USE_MISC]: Remove redundant conditionals.
44326         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
44327         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
44328         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
44329         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
44330         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
44331         Likewise.
44332         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
44333         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
44334         Likewise.
44335         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
44336         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
44337         Likewise.
44338         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
44339         Likewise.
44340         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
44341         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
44342         Likewise.
44343         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
44344         Likewise.
44345         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
44346         * sysdeps/x86/bits/string.h: Update #endif comments.
44347         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
44348         conditionals.
44349         * time/sys/time.h: Update #endif comments.
44350         * time/time.h: Likewise.
44351         [__USE_MISC]: Remove redundant conditionals.
44352
44353 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
44354
44355         [BZ #16600]
44356         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
44357
44358 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
44359
44360         * Versions.def (librt): Add GLIBC_2.17.
44361
44362 2014-02-21  Adam Conrad  <adconrad@0c3.net>
44363
44364         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
44365         synonym for _SYS_AUXV_H to allow direct inclusion.
44366         * sysdeps/sparc/bits/hwcap.h: Likewise.
44367         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
44368         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
44369         * sysdeps/sparc/sysdep.h: Likewise.
44370
44371 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44372
44373         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
44374
44375 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
44376
44377         * benchtests/bench-strrchr.c: Print length instead of position.
44378
44379 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
44380
44381         [BZ #16611]
44382         * sysdeps/unix/sysv/linux/kernel-features.h
44383         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
44384         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
44385         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
44386         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
44387         Likewise.
44388         [__i386__ || __powerpc__ || __sh__ || __sparc__]
44389         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
44390         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
44391         (__ASSUME_SENDMMSG): Define instead of using previous
44392         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
44393         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
44394         (__ASSUME_SENDMMSG_SYSCALL): Define.
44395         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
44396         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
44397         Likewise.
44398         * sysdeps/unix/sysv/linux/arm/kernel-features.h
44399         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
44400         Likewise.
44401         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
44402         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
44403         Likewise.
44404         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
44405         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
44406         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
44407         [__ASSUME_SENDMMSG]: Change conditionals to
44408         [__ASSUME_SENDMMSG_SOCKETCALL].
44409         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
44410         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
44411         Define.
44412         * sysdeps/unix/sysv/linux/mips/kernel-features.h
44413         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
44414         Likewise.
44415         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
44416         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
44417         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
44418         [!__ASSUME_SENDMMSG]: Change conditional to
44419         [!__ASSUME_SENDMMSG_SOCKETCALL].
44420         * sysdeps/unix/sysv/linux/tile/kernel-features.h
44421         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
44422         Define.
44423
44424         [BZ #16610]
44425         * sysdeps/unix/sysv/linux/kernel-features.h
44426         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
44427         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
44428         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
44429         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
44430         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
44431         [__i386__ || __sparc__]
44432         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
44433         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
44434         (__ASSUME_RECVMMSG): Define instead of using previous
44435         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
44436         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
44437         (__ASSUME_RECVMMSG_SYSCALL): Define.
44438         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
44439         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
44440         Likewise.
44441         * sysdeps/unix/sysv/linux/arm/kernel-features.h
44442         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
44443         Likewise.
44444         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
44445         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
44446         Likewise.
44447         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
44448         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
44449         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
44450         [__ASSUME_RECVMMSG]: Change condition to
44451         [__ASSUME_RECVMMSG_SOCKETCALL].
44452         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
44453         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
44454         Define.
44455         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
44456         * sysdeps/unix/sysv/linux/mips/kernel-features.h
44457         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
44458         Likewise.
44459         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
44460         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
44461         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
44462         [!__ASSUME_RECVMMSG]: Change condition to
44463         [!__ASSUME_RECVMMSG_SOCKETCALL].
44464         * sysdeps/unix/sysv/linux/tile/kernel-features.h
44465         (__ASSUME_RECVMMSG_SYSCALL): Define.
44466
44467         [BZ #16609]
44468         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
44469         __powerpc__ || __s390__ || __sh__ || __sparc__]
44470         (__ASSUME_SOCKETCALL): Define.
44471         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
44472         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
44473         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
44474         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
44475         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
44476         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
44477         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
44478         (__ASSUME_ACCEPT4): Define instead of using previous
44479         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
44480         __powerpc__ || __sparc__ || __s390__)] condition.
44481         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
44482         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
44483         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
44484         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
44485         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
44486         [!__ASSUME_ACCEPT4]: Change condition to
44487         [!__ASSUME_ACCEPT4_SOCKETCALL].
44488         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
44489         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
44490         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
44491         * sysdeps/unix/sysv/linux/arm/kernel-features.h
44492         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
44493         __ASSUME_ACCEPT4_SYSCALL.
44494         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
44495         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
44496         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
44497         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
44498         __ASSUME_ACCEPT4_SYSCALL.
44499         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
44500         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
44501         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
44502         [__ASSUME_ACCEPT4]: Change condition to
44503         [__ASSUME_ACCEPT4_SOCKETCALL].
44504         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
44505         (__ASSUME_SOCKETCALL): Define.
44506         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
44507         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
44508         (__ASSUME_SOCKETCALL): Define.
44509         (__ASSUME_ACCEPT4): Remove.
44510         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
44511         Define.
44512         * sysdeps/unix/sysv/linux/mips/kernel-features.h
44513         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
44514         Likewise.
44515         * sysdeps/unix/sysv/linux/tile/kernel-features.h
44516         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
44517
44518         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
44519         macro.
44520         (HWCAP_ARM_LPAE): Likewise.
44521         (HWCAP_ARM_EVTSTRM): Likewise.
44522         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
44523         Add vpfd32, lpae and evtstrm.
44524         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
44525         Increase to 22.
44526
44527 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
44528
44529         * math/auto-libm-test-in: Add tests of clog10.
44530         * math/auto-libm-test-out: Regenerated.
44531         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
44532         * sysdeps/i386/fpu/libm-test-ulps: Update.
44533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44534
44535 2014-02-18  Andreas Schwab  <schwab@suse.de>
44536
44537         [BZ #16574]
44538         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
44539         Store non-zero if the second buffer was newly allocated.
44540         (send_dg): Likewise.
44541         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
44542         to send_vc and send_dg.
44543         (res_nsend): Pass NULL for ansp2_malloced.
44544         * resolv/res_query.c (__libc_res_nquery): Add parameter
44545         answerp2_malloced and pass it down to __libc_res_nsend.
44546         (res_nquery): Pass additional NULL to __libc_res_nquery.
44547         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
44548         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
44549         second answer buffer if answerp2_malloced was set.
44550         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
44551         (__libc_res_nquerydomain): Add parameter
44552         answerp2_malloced and pass it down to __libc_res_nquery.
44553         (res_nquerydomain): Pass additional NULL to
44554         __libc_res_nquerydomain.
44555         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
44556         additional NULL to __libc_res_nsend and __libc_res_nquery.
44557         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
44558         additional NULL to __libc_res_nsearch.
44559         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
44560         parameter of __libc_res_nsearch to check for separately allocated
44561         second buffer.
44562         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
44563         __libc_res_nquery.
44564         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
44565         additional NULL to __libc_res_nquery.
44566         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
44567         __libc_res_nsearch.
44568         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
44569         * include/resolv.h: Update prototypes of __libc_res_nquery,
44570         __libc_res_nsearch, __libc_res_nsend.
44571
44572 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
44573
44574         * math/auto-libm-test-in: Add tests of fma.
44575         * math/auto-libm-test-out: Regenerated.
44576         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
44577         (fma_towardzero_test_data): Likewise.
44578         (fma_downward_test_data): Likewise.
44579         (fma_upward_test_data): Likewise.
44580         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
44581         mpc_mode.
44582         (rounding_modes): Add values for new field.
44583         (func_calc_method): Add value mpfr_fff_f.
44584         (func_calc_desc): Add mpfr_fff_f union field.
44585         (test_function): Add field exact_args.
44586         (FUNC): Add macro argument EXACT_ARGS.
44587         (FUNC_mpfr_f_f): Update call to FUNC.
44588         (FUNC_mpfr_f_f): Likewise.
44589         (FUNC_mpfr_ff_f): Likewise.
44590         (FUNC_mpfr_if_f): Likewise.
44591         (FUNC_mpc_c_f): Likewise.
44592         (FUNC_mpc_c_c): Likewise.
44593         (test_functions): Add fma.  Update calls to FUNC.
44594         (handle_input_arg): Add argument exact_args.
44595         (add_test): Update call to handle_input_arg.
44596         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
44597         (output_for_one_input_case): Update call to calc_generic_results.
44598         Recalculate exact zero results in each rounding mode.
44599
44600         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
44601         non-negative before setting low bit.
44602         * math/auto-libm-test-in: Mark one asin test possibly having
44603         spurious underflow.
44604         * math/auto-libm-test-out: Regenerated.
44605         * sysdeps/i386/fpu/libm-test-ulps: Update.
44606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44607
44608 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
44609
44610         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
44611         * sysdeps/unix/sysv/linux/microblaze: Move directory from
44612         ports/sysdeps/unix/sysv/linux/microblaze.
44613         * README: Add missing listing for microblaze*-*-linux-gnu.
44614
44615 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
44616
44617         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
44618         duplicate code
44619
44620 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
44621
44622         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
44623         * sysdeps/unix/sysv/linux/ia64: Move directory from
44624         ports/sysdeps/unix/sysv/linux/ia64.
44625         * README: Update listing for ia64-*-linux-gnu.
44626
44627 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
44628             Joseph Myers  <joseph@codesourcery.com>
44629
44630         * Makeconfig (test-name): New variable.
44631         (evaluate-test): Likewise.
44632         * Makerules (do-test-clean): Remove .test-result files.
44633         (common-mostlyclean): Likewise.
44634         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
44635         * scripts/evaluate-test.sh: New file.
44636
44637 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
44638
44639         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
44640         separate $(objpfx)tst-fopenloc-cmp.out and
44641         $(objpfx)tst-fopenloc-mem.out targets.
44642         (tests): Update dependencies.
44643         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
44644         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
44645         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
44646         (tst-rxspencer-no-utf8-ARGS): New variable.
44647         (tst-rxspencer-no-utf8-ENV): Likewise.
44648         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
44649         instead of $(objpfx)tst-rxspencer-mem.
44650         ($(objpfx)tst-rxspencer-mem): Change target to
44651         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
44652         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
44653         * posix/tst-rxspencer-no-utf8.c: New file.
44654
44655         * elf/Makefile ($(objpfx)order.out): Remove rule.
44656         [$(run-built-tests) = yes] (tests): Depend on
44657         $(objpfx)order-cmp.out.
44658         ($(objpfx)order-cmp.out): New rule.
44659         [$(run-built-tests) = yes] (tests): Depend on
44660         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
44661         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
44662         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
44663         $(objpfx)tst-array5-static-cmp.out.
44664         ($(objpfx)tst-array1.out): Remove rule.
44665         ($(objpfx)tst-array1-cmp.out): New rule.
44666         ($(objpfx)tst-array1-static.out): Remove rule.
44667         ($(objpfx)tst-array1-static-cmp.out): New rule.
44668         ($(objpfx)tst-array2.out): Remove rule.
44669         ($(objpfx)tst-array2-cmp.out): New rule.
44670         ($(objpfx)tst-array3.out): Remove rule.
44671         ($(objpfx)tst-array3-cmp.out): New rule.
44672         ($(objpfx)tst-array4.out): Remove rule.
44673         ($(objpfx)tst-array4-cmp.out): New rule.
44674         ($(objpfx)tst-array5.out): Remove rule.
44675         ($(objpfx)tst-array5-cmp.out): New rule.
44676         ($(objpfx)tst-array5-static.out): Remove rule.
44677         ($(objpfx)tst-array5-static-cmp.out): New rule.
44678         [$(run-built-tests) = yes] (tests): Depend on
44679         $(objpfx)order2-cmp.out.
44680         ($(objpfx)order2.out): Remove rule.
44681         ($(objpfx)order2-cmp.out): New rule.
44682         ($(objpfx)tst-initorder.out): Remove rule.
44683         [$(run-built-tests) = yes] (tests): Depend on
44684         $(objpfx)tst-initorder-cmp.out.
44685         ($(objpfx)tst-initorder-cmp.out): New rule.
44686         ($(objpfx)tst-initorder2.out): Remove rule.
44687         [$(run-built-tests) = yes] (tests): Depend on
44688         $(objpfx)tst-initorder2-cmp.out.
44689         ($(objpfx)tst-initorder2-cmp.out): New rule.
44690         [$(run-built-tests) = yes] (tests): Depend on
44691         $(objpfx)tst-unused-dep-cmp.out.
44692         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
44693         ($(objpfx)tst-unused-dep-cmp.out): New rule.
44694         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
44695         on $(objpfx)tst-setvbuf1-cmp.out.
44696         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
44697         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
44698         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
44699         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
44700         ($(objpfx)tst-svc.out): Remove rule.
44701         ($(objpfx)tst-svc-cmp.out): New rule.
44702
44703 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
44704
44705         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
44706         * ctype/ctype.h [__USE_MISC]: Likewise.
44707         * dirent/dirent.h [__USE_MISC]: Likewise.
44708         * grp/grp.h [__USE_MISC]: Likewise.
44709         * io/fcntl.h [__USE_MISC]: Likewise.
44710         * io/sys/stat.h [__USE_MISC]: Likewise.
44711         * libio/stdio.h [__USE_MISC]: Likewise.
44712         * posix/unistd.h [__USE_MISC]: Likewise.
44713         * pwd/pwd.h [__USE_MISC]: Likewise.
44714         * stdlib.h [__USE_MISC]: Likewise.
44715         * string/bits/string2.h [__USE_MISC]: Likewise.
44716         * string/string.h [__USE_MISC]: Likewise.
44717         * time/time.h [__USE_MISC]: Likewise.
44718
44719 2014-02-13  Andreas Schwab  <schwab@suse.de>
44720
44721         [BZ #16574]
44722         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
44723         second answer buffer if it was separately allocated.
44724
44725 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
44726
44727         * sysdeps/mips/math-tests.h: Include <features.h>.
44728         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
44729         (ROUNDING_TESTS_long_double): Do not define.
44730         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
44731         (EXCEPTION_TESTS_long_double): Likewise.
44732         * sysdeps/mips/mips64/libm-test-ulps: Update.
44733
44734         * include/features.h (__USE_BSD): Remove macro definitions.
44735         (__USE_SVID): Likewise.
44736         (_BSD_SOURCE): Likewise.
44737         (_SVID_SOURCE): Likewise.
44738         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
44739         from definition of _DEFAULT_SOURCE.
44740         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
44741         [_DEFAULT_SOURCE].
44742         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
44743         * bits/mman.h [__USE_BSD]: Likewise.
44744         * bits/termios.h [__USE_BSD]: Likewise.
44745         * bits/waitstatus.h [__USE_BSD]: Likewise.
44746         * ctype/ctype.h [__USE_SVID]: Likewise.
44747         * dirent/dirent.h [__USE_BSD]: Likewise.
44748         * grp/grp.h [__USE_SVID]: Likewise.
44749         [__USE_BSD]: Likewise.
44750         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
44751         * io/fcntl.h [__USE_BSD]: Likewise.
44752         * io/ftw.h [__USE_BSD]: Likewise.
44753         * io/sys/stat.h [__USE_BSD]: Likewise.
44754         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
44755         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
44756         * libio/stdio.h [__USE_SVID]: Likewise.
44757         [__USE_BSD]: Likewise.
44758         * math/math.h [__USE_SVID]: Likewise.
44759         [__USE_BSD]: Likewise.
44760         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
44761         * misc/bits/syslog.h [__USE_BSD]: Likewise.
44762         * misc/search.h [__USE_SVID]: Likewise.
44763         * misc/sys/mman.h [__USE_BSD]: Likewise.
44764         * misc/sys/syslog.h [__USE_BSD]: Likewise.
44765         * misc/sys/uio.h [__USE_BSD]: Likewise.
44766         * posix/bits/unistd.h [__USE_BSD]: Likewise.
44767         * posix/glob.h [__USE_BSD]: Likewise.
44768         * posix/regex.h [__USE_BSD]: Likewise.
44769         * posix/sys/types.h [__USE_BSD]: Likewise.
44770         [__USE_SVID]: Likewise.
44771         * posix/sys/utsname.h [__USE_SVID]: Likewise.
44772         * posix/sys/wait.h [__USE_BSD]: Likewise.
44773         [__USE_SVID]: Likewise.
44774         * posix/unistd.h [__USE_BSD]: Likewise.
44775         [__USE_SVID]: Likewise.
44776         * pwd/pwd.h [__USE_SVID]: Likewise.
44777         * resolv/netdb.h [__USE_BSD]: Likewise.
44778         * setjmp/setjmp.h [__USE_BSD]: Likewise.
44779         * signal/signal.h [__USE_BSD]: Likewise.
44780         [__USE_SVID]: Likewise.
44781         * socket/sys/socket.h [__USE_BSD]: Likewise.
44782         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
44783         * stdlib/stdlib.h [__USE_BSD]: Likewise.
44784         [__USE_SVID]: Likewise.
44785         * string/bits/string2.h [__USE_BSD]: Likewise.
44786         [__USE_SVID]: Likewise.
44787         * string/bits/string3.h [__USE_BSD]: Likewise.
44788         * string/endian.h [__USE_BSD]: Likewise.
44789         * string/string.h [__USE_SVID]: Likewise.
44790         [__USE_BSD]: Likewise.
44791         * string/strings.h [__USE_BSD]: Likewise.
44792         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
44793         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
44794         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
44795         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
44796         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
44797         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
44798         Likewise.
44799         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
44800         Likewise.
44801         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
44802         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
44803         Likewise.
44804         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
44805         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
44806         Likewise.
44807         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
44808         Likewise.
44809         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
44810         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
44811         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
44812         Likewise.
44813         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
44814         Likewise.
44815         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
44816         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
44817         * termios/termios.h [__USE_BSD]: Likewise.
44818         * time/sys/time.h [__USE_BSD]: Likewise.
44819         * time/time.h [__USE_BSD]: Likewise.
44820         [__USE_SVID]: Likewise.
44821
44822         * Makefile (subdir_targets): Remove subdir_lint.out.
44823
44824         * stdio-common/Makefile (do-tst-unbputc): Remove target.
44825         (do-tst-printf): Likewise.
44826         (tests): Depend directly on $(objpfx)tst-unbputc.out and
44827         $(objpfx)tst-printf.out.
44828
44829         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
44830
44831         * Makerules (check-abi-%): Change target to
44832         $(objpfx)check-abi-%.out.
44833         (check-abi target): Update dependencies.
44834         (check-abi-pattern variable): Redirect output of diff to $@.
44835         (check-abi variable): Likewise.
44836         * elf/Makefile (check-abi): Update dependencies.
44837
44838         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
44839         unused.
44840         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
44841         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
44842         subnormal range.
44843         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
44844         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
44845         value has largest subnormal exponent.
44846         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
44847         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
44848         * sysdeps/aarch64/soft-fp/sfp-machine.h
44849         (_FP_TININESS_AFTER_ROUNDING): New macro.
44850         * sysdeps/alpha/soft-fp/sfp-machine.h
44851         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44852         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44853         Likewise.
44854         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
44855         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44856         * sysdeps/mips/soft-fp/sfp-machine.h
44857         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44858         * sysdeps/powerpc/soft-fp/sfp-machine.h
44859         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44860         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44861         Likewise.
44862         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
44863         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44864         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
44865         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44866         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44867         Likewise.
44868
44869 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
44870
44871         [BZ #16545]
44872         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
44873         model 1.
44874
44875 2014-02-12  Richard Henderson  <rth@redhat.com>
44876
44877         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
44878         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
44879         * sysdeps/unix/sysv/linux/alpha: Move directory from
44880         ports/sysdeps/unix/sysv/linux/alpha.
44881         * README: Update listing for alpha-*-linux-gnu.
44882
44883 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
44884
44885         * include/features.h: Update comment documenting feature test
44886         macros.
44887         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
44888         _DEFAULT_SOURCE.
44889         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
44890         (_SVID_SOURCE): Likewise.
44891         (_DEFAULT_SOURCE): Update description of default features.
44892         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
44893         with _GNU_SOURCE.
44894         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
44895         (S_ISVTX): Likewise.
44896         * manual/math.texi (Mathematical Constants): Likewise.
44897         * manual/signal.texi (Interrupted Primitives): Likewise.
44898         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
44899         * math/test-matherr.c (_SVID_SOURCE): Do not define.
44900         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
44901         Don't refer to _SVID_SOURCE in warning text.
44902
44903         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44904
44905         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
44906         already defined.
44907         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
44908         * sysdeps/mips/dl-lookup.c: Remove.
44909         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
44910
44911 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
44912
44913         [BZ #16447]
44914         * math/auto-libm-test-in: Add testcase for expl.
44915         * math/auto-libm-test-out: Regenerate.
44916         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
44917         calculation of unsafe.
44918         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
44919
44920 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44921
44922         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
44923         * sysdeps/unix/sysv/linux/aarch64: Move directory from
44924         ports/sysdeps/unix/sysv/linux/aarch64.
44925         * README: Update listing for aarch64*-*-linux-gnu.
44926
44927 2014-02-11  Will Newton  <will.newton@linaro.org>
44928
44929         * manual/probes.texi (Mathematical Function Probes): Use
44930         "triggered" instead of "hit".
44931
44932         * manual/probes.texi (Internal Probes): Add documentation
44933         of setjmp, longjmp and longjmp_target probes.
44934
44935         * include/stap-probe.h: Add comment about probe argument
44936         format.
44937
44938         * malloc/mtrace.c (attribute_hidden): Remove unused macro
44939         definition.  (tr_where, tr_freehook, tr_mallochook,
44940         tr_reallochook, tr_memalignhook): Use ANSI protoype.
44941
44942 2014-02-11  David S. Miller  <davem@davemloft.net>
44943
44944         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
44945         processing int_tests.
44946
44947 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
44948
44949         * sysdeps/mips: Move directory from ports/sysdeps/mips.
44950         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
44951         * sysdeps/unix/sysv/linux/mips: Move directory from
44952         ports/sysdeps/unix/sysv/linux/mips.
44953         * README: Update listing for mips-*-linux-gnu and
44954         mips64-*-linux-gnu.
44955
44956 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
44957
44958         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
44959         * sysdeps/unix/sysv/linux/m68k: Move directory from
44960         ports/sysdeps/unix/sysv/linux/m68k.
44961         * README: Update listing for m68k-*-linux-gnu.
44962
44963 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
44964
44965         * sysdeps/tile: Move directory from ports/sysdeps/tile.
44966         * sysdeps/unix/sysv/linux/generic: Move directory from
44967         ports/sysdeps/unix/sysv/linux/generic.
44968         * sysdeps/unix/sysv/linux/tile: Move directory from
44969         ports/sysdeps/unix/sysv/linux/tile.
44970         * README: Update listing for tile*-*-linux-gnu.
44971
44972 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
44973
44974         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
44975         __builtin_expect.
44976         * benchtests/bench-memmem.c (simple_memmem): Likewise.
44977         * catgets/open_catalog.c (__open_catalog): Likewise.
44978         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
44979         * debug/confstr_chk.c: Likewise.
44980         * debug/fread_chk.c (__fread_chk): Likewise.
44981         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
44982         * debug/getgroups_chk.c: Likewise.
44983         * debug/mbsnrtowcs_chk.c: Likewise.
44984         * debug/mbsrtowcs_chk.c: Likewise.
44985         * debug/mbstowcs_chk.c: Likewise.
44986         * debug/memcpy_chk.c: Likewise.
44987         * debug/memmove_chk.c: Likewise.
44988         * debug/mempcpy_chk.c: Likewise.
44989         * debug/memset_chk.c: Likewise.
44990         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
44991         * debug/strcat_chk.c (__strcat_chk): Likewise.
44992         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
44993         * debug/strncat_chk.c (__strncat_chk): Likewise.
44994         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
44995         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
44996         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
44997         * debug/wcpncpy_chk.c: Likewise.
44998         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
44999         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
45000         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
45001         * debug/wcsncpy_chk.c: Likewise.
45002         * debug/wcsnrtombs_chk.c: Likewise.
45003         * debug/wcsrtombs_chk.c: Likewise.
45004         * debug/wcstombs_chk.c: Likewise.
45005         * debug/wmemcpy_chk.c: Likewise.
45006         * debug/wmemmove_chk.c: Likewise.
45007         * debug/wmempcpy_chk.c: Likewise.
45008         * debug/wmemset_chk.c: Likewise.
45009         * dirent/scandirat.c (SCANDIRAT): Likewise.
45010         * dlfcn/dladdr1.c (dladdr1): Likewise.
45011         * dlfcn/dladdr.c (dladdr): Likewise.
45012         * dlfcn/dlclose.c (dlclose_doit): Likewise.
45013         * dlfcn/dlerror.c (__dlerror): Likewise.
45014         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
45015         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
45016         * dlfcn/dlopen.c (dlopen_doit): Likewise.
45017         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
45018         * dlfcn/dlsym.c (dlsym_doit): Likewise.
45019         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
45020         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
45021         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
45022         Likewise.
45023         * elf/dl-conflict.c: Likewise.
45024         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
45025         * elf/dl-dst.h: Likewise.
45026         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
45027         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
45028         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
45029         * elf/dl-init.c (call_init, _dl_init): Likewise.
45030         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
45031         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
45032         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
45033         Likewise.
45034         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
45035         Likewise.
45036         * elf/dl-minimal.c (__libc_memalign): Likewise.
45037         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
45038         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
45039         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
45040         * elf/dl-sym.c (do_sym): Likewise.
45041         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
45042         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
45043         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
45044         * elf/dl-writev.h (_dl_writev): Likewise.
45045         * elf/ldconfig.c (search_dir): Likewise.
45046         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
45047         (dl_main): Likewise.
45048         * elf/setup-vdso.h (setup_vdso): Likewise.
45049         * grp/compat-initgroups.c (compat_call): Likewise.
45050         * grp/fgetgrent.c (fgetgrent): Likewise.
45051         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
45052         * grp/putgrent.c (putgrent): Likewise.
45053         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
45054         Likewise.
45055         * hurd/hurdinit.c: Likewise.
45056         * iconvdata/8bit-gap.c (struct): Likewise.
45057         * iconvdata/ansi_x3.110.c : Likewise.
45058         * iconvdata/big5.c : Likewise.
45059         * iconvdata/big5hkscs.c : Likewise.
45060         * iconvdata/cp1255.c: Likewise.
45061         * iconvdata/cp1258.c : Likewise.
45062         * iconvdata/cp932.c : Likewise.
45063         * iconvdata/euc-cn.c: Likewise.
45064         * iconvdata/euc-jisx0213.c : Likewise.
45065         * iconvdata/euc-jp.c: Likewise.
45066         * iconvdata/euc-jp-ms.c : Likewise.
45067         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
45068         * iconvdata/gb18030.c : Likewise.
45069         * iconvdata/gbbig5.c (const): Likewise.
45070         * iconvdata/gbgbk.c: Likewise.
45071         * iconvdata/gbk.c : Likewise.
45072         * iconvdata/ibm1364.c : Likewise.
45073         * iconvdata/ibm930.c : Likewise.
45074         * iconvdata/ibm932.c: Likewise.
45075         * iconvdata/ibm933.c : Likewise.
45076         * iconvdata/ibm935.c : Likewise.
45077         * iconvdata/ibm937.c : Likewise.
45078         * iconvdata/ibm939.c : Likewise.
45079         * iconvdata/ibm943.c: Likewise.
45080         * iconvdata/iso_11548-1.c: Likewise.
45081         * iconvdata/iso-2022-cn.c : Likewise.
45082         * iconvdata/iso-2022-cn-ext.c : Likewise.
45083         * iconvdata/iso-2022-jp-3.c: Likewise.
45084         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
45085         * iconvdata/iso-2022-kr.c : Likewise.
45086         * iconvdata/iso646.c (gconv_end): Likewise.
45087         * iconvdata/iso_6937-2.c : Likewise.
45088         * iconvdata/iso_6937.c : Likewise.
45089         * iconvdata/iso8859-1.c: Likewise.
45090         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
45091         * iconvdata/shift_jisx0213.c : Likewise.
45092         * iconvdata/sjis.c : Likewise.
45093         * iconvdata/t.61.c : Likewise.
45094         * iconvdata/tcvn5712-1.c : Likewise.
45095         * iconvdata/tscii.c: Likewise.
45096         * iconvdata/uhc.c : Likewise.
45097         * iconvdata/unicode.c (gconv_end): Likewise.
45098         * iconvdata/utf-16.c (gconv_end): Likewise.
45099         * iconvdata/utf-32.c (gconv_end): Likewise.
45100         * iconvdata/utf-7.c (base64): Likewise.
45101         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
45102         * iconv/gconv_close.c (__gconv_close): Likewise.
45103         * iconv/gconv_open.c (__gconv_open): Likewise.
45104         * iconv/gconv_simple.c (internal_ucs4_loop_single)
45105         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
45106         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
45107         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
45108         (ucs4le_internal_loop_single): Likewise.
45109         * iconv/iconv.c (iconv): Likewise.
45110         * iconv/iconv_close.c: Likewise.
45111         * iconv/loop.c (SINGLE): Likewise.
45112         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
45113         * include/atomic.h: Likewise.
45114         * inet/inet6_option.c (option_alloc): Likewise.
45115         * intl/bindtextdom.c (set_binding_values): Likewise.
45116         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
45117         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
45118         * intl/localealias.c (read_alias_file): Likewise.
45119         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
45120         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
45121         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
45122         * libio/fmemopen.c (fmemopen): Likewise.
45123         * libio/iofgets.c (_IO_fgets): Likewise.
45124         * libio/iofgets_u.c (fgets_unlocked): Likewise.
45125         * libio/iofgetws.c (fgetws): Likewise.
45126         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
45127         * libio/iogetdelim.c (_IO_getdelim): Likewise.
45128         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
45129         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
45130         * locale/findlocale.c (_nl_find_locale): Likewise.
45131         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
45132         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
45133         Likewise.
45134         * locale/setlocale.c (setlocale): Likewise.
45135         * login/programs/pt_chown.c (main): Likewise.
45136         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
45137         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
45138         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
45139         (mmap, mmap64, mremap, munmap): Likewise.
45140         * math/e_exp2l.c: Likewise.
45141         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
45142         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
45143         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
45144         * math/s_catan.c (__catan): Likewise.
45145         * math/s_catanf.c (__catanf): Likewise.
45146         * math/s_catanh.c (__catanh): Likewise.
45147         * math/s_catanhf.c (__catanhf): Likewise.
45148         * math/s_catanhl.c (__catanhl): Likewise.
45149         * math/s_catanl.c (__catanl): Likewise.
45150         * math/s_ccosh.c (__ccosh): Likewise.
45151         * math/s_ccoshf.c (__ccoshf): Likewise.
45152         * math/s_ccoshl.c (__ccoshl): Likewise.
45153         * math/s_cexp.c (__cexp): Likewise.
45154         * math/s_cexpf.c (__cexpf): Likewise.
45155         * math/s_cexpl.c (__cexpl): Likewise.
45156         * math/s_clog10.c (__clog10): Likewise.
45157         * math/s_clog10f.c (__clog10f): Likewise.
45158         * math/s_clog10l.c (__clog10l): Likewise.
45159         * math/s_clog.c (__clog): Likewise.
45160         * math/s_clogf.c (__clogf): Likewise.
45161         * math/s_clogl.c (__clogl): Likewise.
45162         * math/s_csin.c (__csin): Likewise.
45163         * math/s_csinf.c (__csinf): Likewise.
45164         * math/s_csinh.c (__csinh): Likewise.
45165         * math/s_csinhf.c (__csinhf): Likewise.
45166         * math/s_csinhl.c (__csinhl): Likewise.
45167         * math/s_csinl.c (__csinl): Likewise.
45168         * math/s_csqrt.c (__csqrt): Likewise.
45169         * math/s_csqrtf.c (__csqrtf): Likewise.
45170         * math/s_csqrtl.c (__csqrtl): Likewise.
45171         * math/s_ctan.c (__ctan): Likewise.
45172         * math/s_ctanf.c (__ctanf): Likewise.
45173         * math/s_ctanh.c (__ctanh): Likewise.
45174         * math/s_ctanhf.c (__ctanhf): Likewise.
45175         * math/s_ctanhl.c (__ctanhl): Likewise.
45176         * math/s_ctanl.c (__ctanl): Likewise.
45177         * math/w_pow.c: Likewise.
45178         * math/w_powf.c: Likewise.
45179         * math/w_powl.c: Likewise.
45180         * math/w_scalb.c (sysv_scalb): Likewise.
45181         * math/w_scalbf.c (sysv_scalbf): Likewise.
45182         * math/w_scalbl.c (sysv_scalbl): Likewise.
45183         * misc/error.c (error_tail): Likewise.
45184         * misc/pselect.c (__pselect): Likewise.
45185         * nis/nis_callback.c (__nis_create_callback): Likewise.
45186         * nis/nis_call.c (__nisfind_server): Likewise.
45187         * nis/nis_creategroup.c (nis_creategroup): Likewise.
45188         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
45189         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
45190         * nis/nis_getservlist.c (nis_getservlist): Likewise.
45191         * nis/nis_lookup.c (nis_lookup): Likewise.
45192         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
45193         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
45194         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
45195         * nis/nis_xdr.c (xdr_endpoint): Likewise.
45196         * nis/nss_compat/compat-grp.c (getgrent_next_file)
45197         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
45198         * nis/nss_compat/compat-initgroups.c (add_group)
45199         (internal_getgrent_r): Likewise.
45200         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
45201         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
45202         * nis/nss_compat/compat-spwd.c (getspent_next_file)
45203         (internal_getspnam_r): Likewise.
45204         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
45205         (_nss_nis_getaliasbyname_r): Likewise.
45206         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
45207         (_nss_nis_getntohost_r): Likewise.
45208         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
45209         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
45210         (_nss_nis_getgrgid_r): Likewise.
45211         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
45212         (internal_nis_gethostent_r, internal_gethostbyname2_r)
45213         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
45214         (_nss_nis_gethostbyname4_r): Likewise.
45215         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
45216         (initgroups_netid): Likewise.
45217         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
45218         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
45219         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
45220         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
45221         (_nss_nis_getprotobynumber_r): Likewise.
45222         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
45223         (_nss_nis_getsecretkey): Likewise.
45224         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
45225         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
45226         (_nss_nis_getpwuid_r): Likewise.
45227         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
45228         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
45229         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
45230         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
45231         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
45232         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
45233         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
45234         Likewise.
45235         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
45236         (_nss_nisplus_getntohost_r): Likewise.
45237         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
45238         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
45239         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
45240         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
45241         Likewise.
45242         * nis/nss_nisplus/nisplus-initgroups.c
45243         (_nss_nisplus_initgroups_dyn): Likewise.
45244         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
45245         (_nss_nisplus_getnetbyaddr_r): Likewise.
45246         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
45247         (_nss_nisplus_getprotobynumber_r): Likewise.
45248         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
45249         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
45250         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
45251         Likewise.
45252         * nis/nss_nisplus/nisplus-service.c
45253         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
45254         (_nss_nisplus_getservbyport_r): Likewise.
45255         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
45256         (_nss_nisplus_getspnam_r): Likewise.
45257         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
45258         Likewise.
45259         * nscd/aicache.c (addhstaiX): Likewise.
45260         * nscd/cache.c (cache_search, prune_cache): Likewise.
45261         * nscd/connections.c (register_traced_file, send_ro_fd)
45262         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
45263         (main_loop_epoll): Likewise.
45264         * nscd/grpcache.c (addgrbyX): Likewise.
45265         * nscd/hstcache.c (addhstbyX): Likewise.
45266         * nscd/initgrcache.c (addinitgroupsX): Likewise.
45267         * nscd/mem.c (gc, mempool_alloc): Likewise.
45268         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
45269         (addinnetgrX): Likewise.
45270         * nscd/nscd-client.h (__nscd_acquire_maplock)
45271         (__nscd_drop_map_ref): Likewise.
45272         * nscd/nscd_getai.c (__nscd_getai): Likewise.
45273         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
45274         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
45275         Likewise.
45276         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
45277         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
45278         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
45279         (__nscd_get_map_ref): Likewise.
45280         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
45281         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
45282         Likewise.
45283         * nscd/pwdcache.c (addpwbyX): Likewise.
45284         * nscd/selinux.c (preserve_capabilities): Likewise.
45285         * nscd/servicescache.c (addservbyX): Likewise.
45286         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
45287         * posix/fnmatch.c (fnmatch): Likewise.
45288         * posix/getopt.c (_getopt_internal_r): Likewise.
45289         * posix/glob.c (glob, glob_in_dir): Likewise.
45290         * posix/wordexp.c (exec_comm_child): Likewise.
45291         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
45292         (getanswer_r, gaih_getanswer_slice): Likewise.
45293         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
45294         * resolv/res_init.c: Likewise.
45295         * resolv/res_mkquery.c (res_nmkquery): Likewise.
45296         * resolv/res_query.c (__libc_res_nquery): Likewise.
45297         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
45298         Likewise.
45299         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
45300         * stdio-common/perror.c (perror): Likewise.
45301         * stdio-common/printf_fp.c (___printf_fp): Likewise.
45302         * stdio-common/tmpnam.c (tmpnam): Likewise.
45303         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45304         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
45305         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
45306         Likewise.
45307         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
45308         * stdlib/putenv.c (putenv): Likewise.
45309         * stdlib/setenv.c (__add_to_environ): Likewise.
45310         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45311         * stdlib/strtol_l.c (INTERNAL): Likewise.
45312         * string/memmem.c (memmem): Likewise.
45313         * string/strerror.c (strerror): Likewise.
45314         * string/strnlen.c (__strnlen): Likewise.
45315         * string/test-memmem.c (simple_memmem): Likewise.
45316         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
45317         * sunrpc/pm_getport.c (__get_socket): Likewise.
45318         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
45319         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
45320         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
45321         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
45322         Likewise.
45323         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
45324         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
45325         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
45326         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
45327         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
45328         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
45329         Likewise.
45330         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
45331         Likewise.
45332         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
45333         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
45334         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
45335         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
45336         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
45337         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
45338         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
45339         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
45340         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
45341         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
45342         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
45343         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
45344         Likewise.
45345         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
45346         Likewise.
45347         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
45348         Likewise.
45349         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
45350         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
45351         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
45352         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
45353         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
45354         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
45355         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
45356         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
45357         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
45358         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
45359         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
45360         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
45361         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
45362         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
45363         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
45364         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
45365         Likewise.
45366         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
45367         Likewise.
45368         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
45369         Likewise.
45370         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
45371         Likewise.
45372         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
45373         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
45374         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
45375         Likewise.
45376         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
45377         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
45378         * sysdeps/posix/opendir.c (__opendirat): Likewise.
45379         * sysdeps/posix/sleep.c: Likewise.
45380         * sysdeps/posix/tempname.c: Likewise.
45381         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
45382         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
45383         Likewise.
45384         * sysdeps/powerpc/powerpc32/dl-machine.h
45385         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
45386         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
45387         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
45388         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
45389         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
45390         Likewise.
45391         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
45392         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
45393         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
45394         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
45395         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
45396         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
45397         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
45398         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
45399         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
45400         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
45401         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
45402         (elf_machine_lazy_rel): Likewise.
45403         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
45404         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
45405         (elf_machine_lazy_rel): Likewise.
45406         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
45407         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
45408         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
45409         * sysdeps/unix/grantpt.c (grantpt): Likewise.
45410         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
45411         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
45412         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
45413         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
45414         Likewise.
45415         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
45416         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
45417         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
45418         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
45419         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
45420         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
45421         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
45422         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
45423         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
45424         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
45425         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
45426         Likewise.
45427         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
45428         (__posix_fallocate64_l64): Likewise.
45429         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
45430         (posix_fallocate): Likewise.
45431         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
45432         Likewise.
45433         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
45434         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
45435         (getifaddrs_internal): Likewise.
45436         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
45437         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
45438         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
45439         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
45440         * sysdeps/unix/sysv/linux/posix_fallocate64.c
45441         (__posix_fallocate64_l64): Likewise.
45442         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
45443         Likewise.
45444         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
45445         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
45446         (__get_clockfreq): Likewise.
45447         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
45448         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
45449         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
45450         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
45451         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
45452         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
45453         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
45454         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
45455         Likewise.
45456         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
45457         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
45458         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
45459         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
45460         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
45461         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
45462         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
45463         Likewise.
45464         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
45465         (posix_fallocate): Likewise.
45466         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
45467         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
45468         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
45469         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
45470         (elf_machine_rela, elf_machine_rela_relative)
45471         (elf_machine_lazy_rel): Likewise.
45472         * time/asctime.c (asctime_internal): Likewise.
45473         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
45474         * time/tzset.c (__tzset_parse_tz): Likewise.
45475         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
45476         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
45477         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
45478         * wcsmbs/wcsmbsload.h: Likewise.
45479
45480         [BZ #15894]
45481         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
45482
45483         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
45484         (arena_get2): Remove THREAD_STATS conditionals.
45485         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
45486         (__malloc_stats, int): Likewise.
45487
45488 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
45489
45490         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
45491         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
45492
45493         * manual/setjmp.texi: Fix typos/grammar errors.
45494
45495         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
45496         Only return early when n is <= 0.  Delete unused return statement.
45497
45498         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
45499         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
45500         * debug/tst-longjmp_chk3.c: New file.
45501
45502         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
45503         (test_main): Replace code with set_fortify_handler call.
45504         * debug/test-strcpy_chk.c: Likewise.
45505         * debug/tst-chk1.c: Likewise.
45506         * debug/tst-longjmp_chk.c: Likewise.
45507         * test-skeleton.c: Include fcntl.h & paths.h
45508         (set_fortify_handler): Define.
45509
45510         * debug/tst-longjmp_chk.c: Add header comment and include
45511         ../test-skeleton.c.
45512         (do_test): Mark static.
45513         (TEST_FUNCTION): Define.
45514
45515         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
45516         (IP_PMTUDISC_INTERFACE): Likewise.
45517         (IP_MULTICAST_IF): Likewise.
45518         (IP_MULTICAST_TTL): Likewise.
45519         (IP_MULTICAST_LOOP): Likewise.
45520         (IP_ADD_MEMBERSHIP): Likewise.
45521         (IP_DROP_MEMBERSHIP): Likewise.
45522         (IP_UNBLOCK_SOURCE): Likewise.
45523         (IP_BLOCK_SOURCE): Likewise.
45524         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
45525         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
45526         (IP_MSFILTER): Likewise.
45527         (MCAST_JOIN_GROUP): Likewise.
45528         (MCAST_BLOCK_SOURCE): Likewise.
45529         (MCAST_UNBLOCK_SOURCE): Likewise.
45530         (MCAST_LEAVE_GROUP): Likewise.
45531         (MCAST_JOIN_SOURCE_GROUP): Likewise.
45532         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
45533         (MCAST_MSFILTER): Likewise.
45534         (IP_MULTICAST_ALL): Likewise.
45535         (IP_UNICAST_IF): Likewise.
45536
45537         * timezone/Makefile: Delete $(have-ksh) check.
45538         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
45539         * timezone/tzselect.ksh: Add +x mode bits.
45540
45541         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
45542         (ANON_INODE_FS_MAGIC): Likewise.
45543         (BDEVFS_MAGIC): Likewise.
45544         (BINFMTFS_MAGIC): Likewise.
45545         (BTRFS_TEST_MAGIC): Likewise.
45546         (CRAMFS_MAGIC_WEND): Likewise.
45547         (DEBUGFS_MAGIC): Likewise.
45548         (ECRYPTFS_SUPER_MAGIC): Likewise.
45549         (EXT3_SUPER_MAGIC): Likewise.
45550         (EXT4_SUPER_MAGIC): Likewise.
45551         (FUTEXFS_SUPER_MAGIC): Likewise.
45552         (HOSTFS_SUPER_MAGIC): Likewise.
45553         (HUGETLBFS_MAGIC): Likewise.
45554         (MINIX3_SUPER_MAGIC): Likewise.
45555         (MTD_INODE_FS_MAGIC): Likewise.
45556         (NILFS_SUPER_MAGIC): Likewise.
45557         (OPENPROM_SUPER_MAGIC): Likewise.
45558         (PIPEFS_MAGIC): Likewise.
45559         (PSTOREFS_MAGIC): Likewise.
45560         (QNX6_SUPER_MAGIC): Likewise.
45561         (RAMFS_MAGIC): Likewise.
45562         (REISERFS_SUPER_MAGIC_STRING): Likewise.
45563         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
45564         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
45565         (SECURITYFS_MAGIC): Likewise.
45566         (SELINUX_MAGIC): Likewise.
45567         (SMACK_MAGIC): Likewise.
45568         (SOCKFS_MAGIC): Likewise.
45569         (SQUASHFS_MAGIC): Likewise.
45570         (STACK_END_MAGIC): Likewise.
45571         (TMPFS_MAGIC): Likewise.
45572         (USBDEVICE_SUPER_MAGIC): Likewise.
45573         (V9FS_MAGIC): Likewise.
45574         (XENFS_SUPER_MAGIC): Likewise.
45575         (CRAMFS_MAGIC): Fix typo in comment.
45576         (EXT2_SUPER_MAGIC): Update comment.
45577         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
45578
45579 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
45580
45581         * sysdeps/arm: Move directory from ports/sysdeps/arm.
45582         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
45583         * sysdeps/unix/sysv/linux/arm: Move directory from
45584         ports/sysdeps/unix/sysv/linux/arm.
45585         * README: Update listing for arm-*-linux-gnueabi.
45586
45587         * README: Remove mention of am33.
45588
45589 2014-02-07  Roland McGrath  <roland@hack.frob.com>
45590
45591         * bits/sigset.h (__sigemptyset): Use a statement expression rather
45592         than the comma operator, to avoid "rhs of comma has no effect"
45593         compiler warnings.
45594         (__sigfillset, __sigandset, __sigorset): Likewise.
45595         * include/signal.h (__sigemptyset): Likewise.
45596         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
45597
45598 2014-02-07  Allan McRae  <allan@archlinux.org>
45599
45600         * version.h (RELEASE): Set to "development".
45601         (VERSION): Set to "2.19.90"
45602         * NEWS: Add 2.20 section.
45603
45604 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
45605
45606         [BZ #16529]
45607         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
45608
45609 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
45610
45611         * manual/contrib.texi: Update entry for Carlos O'Donell,
45612         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
45613
45614 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
45615
45616         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
45617
45618         * sysdeps/unix/sysv/linux/kernel-features.h
45619         [__LINUX_KERNEL_VERSION >= 0x020621]
45620         (__ASSUME_PROC_PID_TASK_COMM): Define.
45621
45622 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45623
45624         [BZ #16398]
45625         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
45626         conversion when destination buffer does not have enough space.
45627         * libio/tst-ftell-partial-wide.c: New test case.
45628         * libio/Makefile (tests): Add tst-ftell-partial-wide.
45629
45630         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
45631         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
45632         Leonard and Allan McRae.
45633
45634 2014-02-04  David S. Miller  <davem@davemloft.net>
45635
45636         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
45637         32-bit.
45638
45639 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45640
45641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
45642         New file
45643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
45644         New file
45645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
45646         New file.
45647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
45648         New file.
45649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
45650         New file.
45651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
45652         New file.
45653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
45654         New file.
45655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
45656         New file.
45657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
45658         New file.
45659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
45660         New file.
45661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
45662         New file.
45663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
45664         New file.
45665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
45666         New file.
45667
45668 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45669
45670         * nptl/shlib-versions: Change powerpc*le start to 2.17.
45671         * shlib-versions: Likewise.
45672
45673 2014-02-04  Roland McGrath  <roland@hack.frob.com>
45674             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45675
45676         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
45677         (abilist-pattern): New variable, set to %-le.abilist.
45678
45679         * Makerules (abilist-pattern): New variable.
45680         (vpath): Use $(abilist-pattern) in place of %.abilist.
45681         (check-abi-% pattern rule): Likewise.
45682         (check-abi, update-abi): Likewise.
45683
45684 2014-02-04  Eric Wong  <normalperson@yhbt.net>
45685
45686         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45687
45688 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
45689
45690         * manual/startup.texi: Add next, previous, and top entries for
45691         the `Program Arguments' and `Environment Variables' nodes.
45692
45693 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
45694
45695         * manual/macros.texi: Add comments before MTASC-safety macros.
45696
45697         * manual/users.texi: Document MTASC-safety properties.
45698
45699         * manual/threads.texi (pthread_key_create, pthread_key_delete)
45700         (pthread_getspecific, pthread_setspecific): Format with
45701         @deftypefun, and add @safety note.
45702         * manual/signal.texi: Move comments that analyze the above
45703         functions to their home place.
45704
45705 2014-02-03  Allan McRae  <allan@archlinux.org>
45706
45707         * po/sl.po: Update Slovenian translation from translation project.
45708
45709 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
45710
45711         * manual/time.texi (timegm): Add missing blank after @c.
45712         Reported by Joseph Myers <joseph@codesourcery.com>.
45713
45714 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
45715
45716         * manual/check-safety.sh: New.
45717         * manual/Makefile ($(objpfx)stamp-summary): Run it.
45718
45719         * manual/terminal.texi: Document MTASC-safety properties.
45720
45721         * manual/filesys.texi: Document MTASC-safety properties.
45722
45723         * manual/errno.texi: Document MTASC-safety properties.
45724
45725         * manual/intro.texi: Document safety identifiers and
45726         conditionals.
45727
45728         * manual/string.texi (wcstok): Fix prototype.
45729         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
45730
45731         * manual/time.texi: Document MTASC-safety properties.
45732
45733         * manual/string.texi: Document MTASC-safety properties.
45734
45735         * manual/threads.texi: Document MTASC-safety properties.
45736
45737         * manual/stdio.texi: Document MTASC-safety properties.
45738
45739         * manual/syslog.texi: Document MTASC-safety properties.
45740
45741         * manual/sysinfo.texi: Document MTASC-safety properties.
45742
45743         * manual/startup.texi: Document MTASC-safety properties.
45744
45745         * manual/socket.texi: Document MTASC-safety properties.
45746
45747         * manual/signal.texi: Document MTASC-safety properties.
45748
45749 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
45750
45751         * manual/setjmp.texi: Document MTASC-safety properties.
45752
45753         * manual/search.texi: Document MTASC-safety properties.
45754
45755         * manual/resource.texi: Document MTASC-safety properties.
45756
45757         * manual/process.texi: Document MTASC-safety properties.
45758
45759         * manual/platform.texi: Document MTASC-safety properties.
45760
45761         * manual/pipe.texi: Document MTASC-safety properties.
45762
45763         * manual/pattern.texi: Document MTASC-safety properties.
45764
45765         * manual/message.texi: Document MTASC-safety properties.
45766
45767         [BZ #12751]
45768         * manual/memory.texi: Document MTASC-safety properties.
45769
45770         * manual/math.texi: Document MTASC-safety properties.
45771
45772         * manual/locale.texi: Document MTASC-safety properties.
45773
45774         * manual/llio.texi: Document MTASC-safety properties.
45775
45776         * manual/libdl.texi: New.
45777
45778         * manual/lang.texi: Document MTASC-safety properties.
45779
45780         * manual/job.texi: Document MTASC-safety properties.
45781
45782         * manual/getopt.texi: Document MTASC-safety properties.
45783
45784         * manual/ctype.texi: Document MTASC-safety properties.
45785
45786 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
45787
45788         [BZ #16046]
45789         * csu/libc-tls.c (static_map): Remove variable.
45790         (__libc_setup_tls): Use main executable's link map for TLS data.
45791         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
45792         casing for LM_ID_BASE and GL(dl_nns).
45793         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
45794         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
45795         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
45796         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
45797         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
45798         member.
45799         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
45800         l_phnum members.
45801
45802 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
45803
45804         * manual/debug.texi: Document MTASC-safety properties.
45805
45806 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
45807
45808         [BZ #16510]
45809         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
45810         of __x86_64__ when disabling x87 inline functions.
45811
45812 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
45813
45814         * manual/charset.texi: Document MTASC-safety properties.
45815
45816         * manual/crypt.texi: Document MTASC-safety properties.
45817
45818         * manual/conf.texi: Document MTASC-safety properties.
45819
45820         * manual/arith.texi: Document MTASC-safety properties.
45821
45822         * manual/argp.texi: Document MTASC-safety properties.
45823
45824         * manual/macros.texi: Introduce macros to document multi
45825         thread, asynchronous signal and asynchronous cancellation
45826         safety properties.
45827         * manual/intro.texi: Introduce the properties themselves.
45828
45829 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45830
45831         * sysdeps/sh/sh4/Makefile: New file.
45832
45833 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
45834
45835         * math/gen-libm-test.pl ($srcdir): New variable.
45836         ($auto_input): Use it.
45837
45838 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
45839
45840         [BZ #16506]
45841         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
45842         access beyond array bounds when parsing netgroups file.
45843
45844         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
45845         the old buffer before realloc.
45846
45847 2014-01-27  Allan McRae  <allan@archlinux.org>
45848
45849         * po/fr.po: Update French translation from translation project.
45850
45851 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45852
45853         * sysdeps/sh/libm-test-ulps: Regenerate.
45854
45855 2014-01-24  David S. Miller  <davem@davemloft.net>
45856
45857         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
45858
45859 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45860
45861         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
45862         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
45863
45864 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45865
45866         [BZ #16474]
45867         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
45868         string pointers after reallocation.
45869
45870 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45871
45872         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
45873         __SH4A__ instead of __SH_FPU_ANY__.
45874
45875 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45876
45877         * sysdeps/sh/fpu_control.h: New file.
45878         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
45879         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
45880         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
45881         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
45882         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
45883         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
45884         * sysdeps/sh/sys/ucontext.h: Remove.
45885         * sysdeps/sh/sys: Remove directory.
45886
45887 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45888
45889         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
45890         s390/sys/ucontext.h.
45891         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
45892         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
45893
45894 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
45895
45896         [BZ #15605]
45897         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
45898
45899 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45900
45901         [BZ#16431]
45902         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
45903         Adjust the vDSO correctly for internal calls.
45904         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
45905
45906 2014-01-20  Allan McRae  <allan@archlinux.org>
45907
45908         * po/ca.po: Update Catalan translation from translation project.
45909
45910 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
45911
45912         * sysdeps/s390/sotruss-lib.c: New file.
45913
45914 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45915
45916         [BZ#16430]
45917         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
45918         (__GI___gettimeofday): Alias for a different internal symbol to avoid
45919         local calls issues by not having a PLT stub required for IFUNC calls.
45920         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
45921
45922 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
45923
45924         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
45925         * math/test-fpucw-static.c: Likewise.
45926
45927 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
45928
45929         [BZ #16453]
45930         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
45931
45932 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45933
45934         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
45935         implementation for powerpc.
45936
45937 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
45938
45939         [BZ #14782]
45940         * sysdeps/posix/system.c (__libc_system): Do not enable
45941         asynchronous cancellation.
45942
45943 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45944
45945         [BZ #16427]
45946         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
45947         handling only for numbers special also in the IEEE case.
45948
45949 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45950
45951         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45952
45953 2014-01-11  Allan McRae  <allan@archlinux.org>
45954
45955         * po/bg.po: Update Bulgarian translation from translation project.
45956
45957         * po/de.po: Update German translation from translation project.
45958
45959 2014-01-10  Roland McGrath  <roland@hack.frob.com>
45960
45961         * sysdeps/generic/gcc-compat.h: New file.
45962
45963 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45964
45965         * benchtests/asin-inputs: Correct slow inputs.
45966         * benchtests/acos-inputs: Likewise.
45967
45968 2014-01-10  Allan McRae  <allan@archlinux.org>
45969
45970         * po:sv.po: Update Swedish translation from translation project.
45971
45972         * po/vi.po: Update Vietnamese translation from translation project.
45973
45974         * po/eo.po: Update Esperanto translation from translation project.
45975
45976         * po/cs.po: Update Czech translation from translation project.
45977
45978         * po/nl.po: Update Dutch translation from translation project.
45979
45980         * po/pl.po: Update Polish translation from translation project.
45981
45982         * po/ru.po: Update Russian translation from translation project.
45983
45984         * po/uk.po: Update Ukrainian translation from translation project.
45985
45986 2014-01-08  Brooks Moses  <bmoses@google.com>
45987
45988         * elf/dl-load.c: Fix comment typo.
45989
45990 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
45991
45992         * po/header.pot: Rename to...
45993         * po/pot.header: ... this.
45994         * po/Makefile: Use pot.header.
45995
45996 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
45997             Maxim Kuvyrkov  <maxim@kugelworks.com>
45998
45999         [BZ #16394]
46000         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
46001         SRC and DEST against LEN.
46002
46003 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46004
46005         [BZ #16414]
46006         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
46007         implementation.
46008         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
46009
46010 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46011
46012         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46013
46014 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
46015
46016         [BZ #16408]
46017         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
46018         for large positive arguments.
46019
46020 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
46021
46022         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
46023
46024         * math/auto-libm-test-in: Mark various tests with
46025         xfail-rounding:ldbl-128ibm.
46026         * math/auto-libm-test-out: Regenerated.
46027
46028         [BZ #16407]
46029         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
46030         Increase overflow threshold.
46031
46032 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
46033
46034         [BZ #14286]
46035         * stdio-common/vfprintf.c: Check for integer overflow.
46036
46037 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46038
46039         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
46040         the first argument and return value of __tls_get_addr_internal.
46041
46042 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46043
46044         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
46045         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
46046
46047 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46048
46049         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
46050         * sysdeps/s390/rtld-global-offsets.sym: New file.
46051         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
46052         GLIBC_2.19 symbol.
46053         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
46054         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
46055         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
46056         ... this.
46057         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
46058         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
46059         ... this.
46060         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
46061         Regenerate.
46062         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
46063         Regenerate.
46064         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
46065         halfs of GPRs for high_gprs contexts.
46066         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
46067         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
46068         field.
46069         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
46070         uc_flags field.
46071         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
46072         64 bit versions:
46073         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
46074         for high GPRs (uc_high_gprs) and for future extensions
46075         (__reserved).
46076         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
46077         for future extensions (__reserved).
46078         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
46079         64 bit versions:
46080         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
46081         SC_HIGHGPRS offset definition.
46082         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
46083         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
46084
46085         * Versions.def: Add GLIBC_2.19 for libpthread.
46086         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
46087         siglongjmp for libpthread with GLIBC_2.19 symver.
46088         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
46089         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
46090         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
46091         * sysdeps/s390/__longjmp.c: New file.
46092         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
46093         * sysdeps/s390/longjmp.c: New file.
46094         * sysdeps/s390/setjmp.S: New file.
46095         * sysdeps/s390/sigjmp.S: New file.
46096         * sysdeps/s390/v1-longjmp.c: New file.
46097         * sysdeps/s390/v1-setjmp.h: New file.
46098         * sysdeps/s390/v1-sigjmp.c: New file.
46099         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
46100         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
46101         GLIBC_2.19 version.
46102         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
46103         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
46104         versioned symbols for ____longjmp_chk.
46105         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
46106         Likewise.
46107         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
46108         Regenerate.
46109         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
46110         Regenerate.
46111         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
46112         Regenerate.
46113         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
46114         Regenerate.
46115         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
46116         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
46117         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
46118         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
46119         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
46120         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
46121         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
46122         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
46123         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
46124         * sysdeps/s390/rtld-__longjmp.c: New file.
46125         * sysdeps/s390/rtld-setjmp.S: New file.
46126
46127 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
46128
46129         [BZ #16400]
46130         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
46131         Return -__logl (x) for small positive arguments without evaluating
46132         a polynomial.
46133
46134 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
46135
46136         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
46137         Rename to ...
46138         (__ptrace_peeksiginfo_args): ... this.
46139         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
46140         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
46141         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
46142
46143 2014-01-06  Allan McRae  <allan@archlinux.org>
46144
46145         * inet/netinet/in.h: Fix typo in comment.
46146
46147 2014-01-05  Andreas Jaeger  <aj@suse.de>
46148
46149         * sysdeps/i386/fpu/libm-test-ulps: Update.
46150
46151 2014-01-05  Allan McRae  <allan@archlinux.org>
46152
46153         * po/libc.pot: Regenerated.
46154
46155         * malloc/memusagestat.c: Fix gettext call formatting.
46156
46157 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
46158
46159         * nscd/nscd.c: Improve usage() output.
46160
46161 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
46162
46163         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
46164         * sysdeps/unix/sysv/linux/configure: Regenerated.
46165         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
46166         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
46167
46168 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
46169
46170         [BZ #16390]
46171         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
46172         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
46173
46174 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46175
46176         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
46177         extra tokens at end of #undef directive.
46178         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
46179         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
46180         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
46181
46182 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
46183
46184         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
46185
46186         * math/auto-libm-test-in: Mark various tests with
46187         xfail-rounding:ldbl-128ibm.
46188         * math/auto-libm-test-out: Regenerated.
46189
46190 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
46191
46192         [BZ #16386]
46193         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
46194         numbers with subnormal high part when calculating exponent.
46195
46196         [BZ #16385]
46197         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
46198         fabs.
46199
46200         [BZ #16384]
46201         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
46202         M_LN2l.
46203         (__ieee754_acoshl): Use __log1pl not __log1p.
46204
46205 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
46206
46207         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
46208         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
46209         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
46210         (grow_heap, heap_trim, _int_new_arena, get_free_list)
46211         (reused_arena, arena_get2): Convert to GNU style.
46212         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
46213         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
46214         (memalign_check, __malloc_set_state): Likewise.
46215         * malloc/mallocbug.c (main): Likewise.
46216         * malloc/malloc.c (__malloc_assert, malloc_init_state)
46217         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
46218         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
46219         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
46220         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
46221         (__posix_memalign, malloc_info): Likewise.
46222         * malloc/malloc.h: Likewise.
46223         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
46224         (mallochook, memalignhook, reallochook, mabort): Likewise.
46225         * malloc/mcheck.h: Likewise.
46226         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
46227         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
46228         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
46229         * malloc/morecore.c (__default_morecore): Likewise.
46230         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
46231         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
46232         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
46233         (print_and_abort): Likewise.
46234         * malloc/obstack.h: Likewise.
46235         * malloc/set-freeres.c (__libc_freeres): Likewise.
46236         * malloc/tst-mallocstate.c (main): Likewise.
46237         * malloc/tst-mtrace.c (main): Likewise.
46238         * malloc/tst-realloc.c (do_test): Likewise.
46239
46240 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
46241
46242         [BZ #16366]
46243         * nscd/netgroupcache.c (do_notfound): New function.
46244         (addgetnetgrentX): Use it.
46245
46246         [BZ # 16365]
46247         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
46248         NSS_STATUS_NOTFOUND.
46249
46250 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
46251
46252         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
46253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46254
46255 2014-01-01  Allan McRae  <allan@archlinux.org>
46256
46257         * scripts/update-copyrights: Update configure input file suffix.
46258
46259         * NEWS: Update copyright year.
46260         * catgets/gencat.c: Likewise.
46261         * csu/version.c: Likewise.
46262         * debug/catchsegv.sh: Likewise.
46263         * debug/pcprofiledump.c: Likewise.
46264         * debug/xtrace.sh: Likewise.
46265         * elf/ldconfig.c: Likewise.
46266         * elf/ldd.bash.in: Likewise.
46267         * elf/pldd.c: Likewise.
46268         * elf/sotruss.ksh: Likewise.
46269         * elf/sprof.c: Likewise.
46270         * iconv/iconv_prog.c: Likewise.
46271         * iconv/iconvconfig.c: Likewise.
46272         * locale/programs/locale.c: Likewise.
46273         * locale/programs/localedef.c: Likewise.
46274         * login/programs/pt_chown.c: Likewise.
46275         * malloc/memusage.sh: Likewise.
46276         * malloc/memusagestat.c: Likewise.
46277         * malloc/mtrace.pl: Likewise.
46278         * manual/libc.texinfo: Likewise.
46279         * nscd/nscd.c: Likewise.
46280         * nss/getent.c: Likewise.
46281         * nss/makedb.c: Likewise.
46282         * posix/getconf.c: Likewise.
46283         * scripts/test-installation.pl: Likewise.
46284
46285         * All files with FSF copyright notices: Update copyright dates
46286         using scripts/update-copyrights.
46287         * intl/plural.c: Regenerated.
46288         * locale/programs/charmap-kw.h: Likewise.
46289         * locale/programs/locfile-kw.h: Likewise.
46290
46291 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
46292
46293         * sysdeps/unix/sysv/linux/configure: Regenerated.
46294         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
46295         the linux/fanotify.h header.
46296         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
46297         HAVE_LINUX_FANOTIFY_H is defined.
46298
46299 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
46300
46301         * benchtests/cos-inputs: New inputs.
46302         * benchtests/sin-inputs: Likewise.
46303
46304         * benchtests/atan-inputs: New inputs. Fix name of multiple
46305         precision fallback inputs.
46306
46307         * benchtests/atanh-inputs: New inputs.
46308         * benchtests/tanh-inputs: Likewise.
46309
46310         * benchtests/acosh-inputs: New inputs.
46311         * benchtests/asinh-inputs: Likewise.
46312
46313         * benchtests/cosh-inputs: New inputs.
46314         * benchtests/sinh-inputs: Likewise.
46315
46316         * benchtests/acos-inputs: Add more inputs.
46317         * benchtests/asin-inputs: Likewise.
46318
46319 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
46320
46321         [BZ #16375]
46322         * manual/arith.texi: Fix spelling.
46323         * manual/charset.texi: Likewise.
46324         * manual/errno.texi: Likewise.
46325         * manual/filesys.texi: Likewise.
46326         * manual/lang.texi: Likewise.
46327         * manual/llio.texi: Likewise.
46328         * manual/locale.texi: Likewise.
46329         * manual/message.texi: Likewise.
46330         * manual/resource.texi: Likewise.
46331         * manual/search.texi: Likewise.
46332         * manual/setjmp.texi: Likewise.
46333         * manual/stdio.texi: Likewise.
46334         * manual/string.texi: Likewise.
46335         * manual/sysinfo.texi: Likewise.
46336         * manual/time.texi: Likewise.
46337
46338 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
46339
46340         * po/sl.po: New file.
46341
46342 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
46343
46344         * .gitignore: Add core/.gdbinit/.gdb_history.
46345
46346 2013-12-27  Allan McRae  <allan@archlinux.org>
46347
46348         [BZ #16369]
46349         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
46350         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
46351
46352 2013-12-24  Brooks Moses  <bmoses@google.com>
46353
46354         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
46355         all compilers that claim C++98 compliance, not just GCC.
46356         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
46357         Likewise.
46358
46359 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
46360
46361         * NEWS: Restore accidentally deleted bug-fix entries.
46362
46363 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
46364             Ondřej Bílka  <neleai@seznam.cz>
46365
46366         [BZ #15073]
46367         * malloc/malloc.c (_int_free): Perform sanity check only if we
46368         have_lock.
46369
46370 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
46371
46372         [BZ #12986]
46373         * manual/stdio.texi (String Input Conversions): Clarify that character
46374         classes are not supported.
46375
46376 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46377
46378         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46379
46380 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
46381
46382         [BZ #16337]
46383         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
46384         Calculate results for small negative arguments directly rather
46385         than using reflection formula with special underflow handling.
46386
46387         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
46388         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
46389         sysdeps/unix/bsd/bsd4.4/syscalls.list.
46390         (fchflags): Likewise.
46391         (revoke): Likewise.
46392         (setlogin): Likewise.
46393         (sigaltstack): Likewise.
46394         (wait4): Likewise.
46395         (sigblock): Remove.
46396         (sigsetmask): Likewise.
46397         (wait3): Likewise.
46398         (waitpid): Likewise.
46399         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
46400         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
46401         file.
46402         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
46403         * sysdeps/unix/bsd/Makefile: ... here.
46404         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
46405         * sysdeps/unix/bsd/Versions: ... here.
46406         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
46407         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
46408         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
46409         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
46410         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
46411         * sysdeps/unix/bsd/sigblock.c: ... here.
46412         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
46413         * sysdeps/unix/bsd/sigsetmask.c: ... here.
46414         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
46415         * sysdeps/unix/bsd/sigvec.c: ... here.
46416         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
46417         * sysdeps/unix/bsd/tcdrain.c: ... here.
46418         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
46419         * sysdeps/unix/bsd/tcgetattr.c: ... here.
46420         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
46421         * sysdeps/unix/bsd/tcsetattr.c: ... here.
46422         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
46423         * sysdeps/unix/bsd/wait.c: ... here.
46424         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
46425         * sysdeps/unix/bsd/wait3.c: ... here.
46426         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
46427         * sysdeps/unix/bsd/waitpid.c: ... here.
46428
46429 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
46430
46431         [BZ #16356]
46432         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
46433         round-to-nearest for [!USE_AS_EXPM1L].
46434         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
46435         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
46436         more tests of exp and exp10.  Expect some exp10 tests to miss
46437         exceptions or fail in directed rounding modes.
46438         * math/auto-libm-test-out: Regenerated.
46439         * math/libm-test.inc (exp10_tonearest_test_data): New array.
46440         (exp10_test_tonearest): New function.
46441         (exp10_towardzero_test_data): New array.
46442         (exp10_test_towardzero): New function.
46443         (exp10_downward_test_data): New array.
46444         (exp10_test_downward): New function.
46445         (exp10_upward_test_data): New array.
46446         (exp10_test_upward): New function.
46447         (main): Call the new functions.
46448         * sysdeps/i386/fpu/libm-test-ulps: Update.
46449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46450
46451 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
46452
46453         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
46454         asinh, atan, atan2, atanh, cbrt, cos and cosh.
46455         * math/auto-libm-test-out: Regenerated.
46456         * math/libm-test.inc (acosh_test_data): Add more tests.
46457         (atanh_test_data): Likewise.
46458         (ceil_test_data): Likewise.
46459         (copysign_test_data): Likewise.
46460         * sysdeps/i386/fpu/libm-test-ulps: Update.
46461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46462
46463         * timezone/checktab.awk: Update from tzcode 2013i.
46464         * timezone/private.h: Likewise.
46465         * timezone/scheck.c: Likewise.
46466         * timezone/tzfile.h: Likewise.
46467         * timezone/tzselect.ksh: Likewise.
46468         * timezone/zdump.c: Likewise.
46469         * timezone/zic.c: Likewise.
46470
46471         * math/auto-libm-test-in: Add tests of cpow.
46472         * math/auto-libm-test-out: Regenerated.
46473         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
46474         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46475         mpc_cc_c.
46476         (func_calc_desc): Add mpc_cc_c union field.
46477         (test_functions): Add cpow.
46478         (special_fill_2pi): New function.
46479         (special_real_inputs): Add 2pi.
46480         (calc_generic_results): Handle mpc_cc_c.
46481         * sysdeps/i386/fpu/libm-test-ulps: Update.
46482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46483
46484         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
46485         csqrt, ctan and ctanh.
46486         * math/auto-libm-test-out: Regenerated.
46487         * math/libm-test.inc (TEST_COND_x86_64): New macro.
46488         (TEST_COND_x86): Likewise.
46489         (ccos_test_data): Use AUTO_TESTS_c_c.
46490         (ccosh_test_data): Likewise.
46491         (cexp_test_data): Likewise.
46492         (clog_test_data): Likewise.
46493         (csqrt_test_data): Likewise.
46494         (ctan_test_data): Likewise.
46495         (ctan_tonearest_test_data): Likewise.
46496         (ctan_towardzero_test_data): Likewise.
46497         (ctan_downward_test_data): Likewise.
46498         (ctan_upward_test_data): Likewise.
46499         (ctanh_test_data): Likewise.
46500         (ctanh_tonearest_test_data): Likewise.
46501         (ctanh_towardzero_test_data): Likewise.
46502         (ctanh_downward_test_data): Likewise.
46503         (ctanh_upward_test_data): Likewise.
46504         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46505         mpc_c_c.
46506         (func_calc_desc): Add mpc_c_c union field.
46507         (FUNC_mpc_c_c): New macro.
46508         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
46509         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
46510         ctanh.
46511         (special_fill_min_subnorm_p120): New function.
46512         (special_real_inputs): Add min_subnorm_p120.
46513         (calc_generic_results): Handle mpc_c_c.
46514         * sysdeps/i386/fpu/libm-test-ulps: Update.
46515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46516
46517 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
46518
46519         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
46520         (do_sin_slow): New functions.
46521         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
46522         (cslow2, csloww1, csloww2): Use the new functions.
46523
46524         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
46525         Use M to change sign of result instead of X.  Assume X is
46526         positive.
46527         (csloww1): Likewise.
46528         (__sin): Adjust.
46529         (__cos): Adjust.
46530
46531         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
46532         arguments A and DA.
46533         (__sin): Adjust.
46534         (__cos): Likewise.
46535
46536         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
46537         (__cos): Likewise.
46538         (sloww1): Don't adjust sign of DX.
46539         (csloww1): Likewise.
46540         (sloww2): Use X directly and don't adjust sign of DX.
46541         (csloww2): Likewise.
46542
46543 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
46544
46545         * math/auto-libm-test-in: Add tests of cabs and carg.
46546         * math/auto-libm-test-out: Regenerated.
46547         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
46548         (carg_test_data): Likewise.
46549         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46550         mpc_c_f.
46551         (func_calc_desc): Add mpc_c_f union field.
46552         (test_functions): Add cabs and carg.
46553         (calc_generic_results): Handle mpc_c_f.
46554
46555         * sysdeps/powerpc/powerpc32/libgcc-compat.S
46556         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
46557         as a macro and a compat symbol.
46558         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
46559         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
46560         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
46561         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
46562         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
46563         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
46564         not use .hidden.
46565         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
46566         Likewise.
46567         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
46568         Likewise.
46569         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
46570         Likewise.
46571         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
46572         Likewise.
46573         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
46574         Likewise.
46575         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
46576         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
46577         from GLIBC_2.3.2.
46578
46579 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46580
46581         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46582
46583 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
46584
46585         * manual/texinfo.tex: Update to version 2013-11-26.10 with
46586         trailing whitespace removed.
46587         * scripts/config.guess: Update to version 2013-11-29.
46588         * scripts/config.sub: Update to version 2013-10-01.
46589
46590         * math/auto-libm-test-in: Add tests of sincos.
46591         * math/auto-libm-test-out: Regenerated.
46592         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
46593         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46594         mpfr_f_11.
46595         (func_calc_desc): Add mpfr_f_11 union field.
46596         (test_functions): Add sincos.
46597         (calc_generic_results): Handle mpfr_f_11.
46598         * sysdeps/i386/fpu/libm-test-ulps: Update.
46599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46600
46601 2013-12-19  Andreas Schwab  <schwab@suse.de>
46602
46603         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
46604         CALL_MCOUNT.
46605         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
46606         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
46607         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
46608
46609 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
46610
46611         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
46612         * sysdeps/i386/fpu/libm-test-ulps: Update.
46613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46614
46615         [BZ #16293]
46616         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
46617         round-to-nearest mode when using frndint.
46618         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
46619         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
46620         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
46621         Likewise.
46622         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
46623         sinh test to fail.
46624         * math/auto-libm-test-out: Regenerated.
46625         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
46626         (TEST_COND_x86): Likewise.
46627         (expm1_tonearest_test_data): New array.
46628         (expm1_test_tonearest): New function.
46629         (expm1_towardzero_test_data): New array.
46630         (expm1_test_towardzero): New function.
46631         (expm1_downward_test_data): New array.
46632         (expm1_test_downward): New function.
46633         (expm1_upward_test_data): New array.
46634         (expm1_test_upward): New function.
46635         (main): Run the new test functions.
46636         * sysdeps/i386/fpu/libm-test-ulps: Update.
46637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46638
46639         * include/features.h: Update comment documenting feature test
46640         macros.  Mention _DEFAULT_SOURCE in comment.
46641         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
46642         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
46643         _BSD_SOURCE and _SVID_SOURCE.
46644         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
46645         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
46646         !_SVID_SOURCE]: Likewise.
46647         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
46648         (__USE_POSIX_IMPLICITLY): Define.
46649         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
46650         (_POSIX_SOURCE): Undefine and redefine.
46651         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
46652         (_POSIX_C_SOURCE): Likewise.
46653         * manual/creature.texi (_DEFAULT_SOURCE): Document.
46654         (Feature Test Macros): Update documentation of default features.
46655
46656 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
46657
46658         * benchtests/Makefile: Add bench-strtok.
46659         * benchtests/bench-strtok.c: New file: strtok benchtest.
46660
46661 2013-12-19  Allan McRae  <allan@archlinux.org>
46662
46663         * manual/install.texi: Suppress menu for plain text output.
46664         * INSTALL: Regenerated.
46665
46666 2013-12-18  Brooks Moses  <bmoses@google.com>
46667
46668         [BZ #15846]
46669         * misc/getauxval.c: Include errno.h.
46670         (__getauxval): Set errno to ENOENT if the requested type is not
46671         found.
46672         * misc/sys/auxv.h (getauxval): Document that it may set errno;
46673         don't declare with __attribute_const__.
46674         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
46675         * manual/startup.texi: Document that getauxval sets errno.
46676
46677 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
46678
46679         * math/auto-libm-test-in: Add tests of jn and yn.
46680         * math/auto-libm-test-out: Regenerated.
46681         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
46682         (yn_test_data): Likewise.
46683         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46684         mpfr_if_f.
46685         (func_calc_desc): Add mpfr_if_f union field.
46686         (FUNC_mpfr_if_f): New macro.
46687         (test_functions): Add jn and yn.
46688         (calc_generic_results): Assert type of second input for
46689         mpfr_ff_f.  Handle mpfr_if_f.
46690         (output_for_one_input_case): Disable all checking for arguments
46691         fitting floating-point types in case of an integer argument.
46692         * sysdeps/i386/fpu/libm-test-ulps: Update.
46693         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46694
46695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
46696         Don't expect fegetround reference in libm.so.
46697
46698 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
46699
46700         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
46701         $(config-cflags-nofma).
46702
46703 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
46704
46705         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
46706         * math/auto-libm-test-out: Regenerated.
46707
46708         [BZ #16338]
46709         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
46710         to determine exponent and adjust argument to have exponent of -1.
46711         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
46712         log2.
46713         * math/auto-libm-test-out: Regenerated.
46714         * sysdeps/i386/fpu/libm-test-ulps: Update.
46715         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46716
46717 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
46718
46719         * manual/probes.texi: Remove cases when per-thread arenas are
46720         disabled.
46721
46722 2013-12-18  Andreas Schwab  <schwab@suse.de>
46723
46724         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
46725         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
46726         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
46727         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
46728         * sysdeps/i386/i686/multiarch/Makefile: Update.
46729         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
46730
46731 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
46732
46733         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
46734         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
46735
46736 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
46737
46738         [BZ #15968]
46739         Support TZ transition times < 00:00:00.
46740         This is needed for version-3 tz-format files; it supports time
46741         stamps past 2037 for America/Godthab (the only entry in the tz
46742         database for which this change is relevant).
46743         * manual/time.texi (TZ Variable): Document transition times
46744         from -167:59:59 through -00:00:01.
46745         * time/tzset.c (tz_rule): Time of day is now signed.
46746         (__tzset_parse_tz): Parse negative time of day.
46747
46748         Document TZ transition times >= 25:00:00.
46749         * manual/time.texi (TZ Variable): Document transition times from
46750         25:00:00 through 167:59:59.  These are already supported, and this
46751         support will help with version-3 tz-format files.
46752
46753         * manual/time.texi (TZ Variable): Modernize North America example
46754         to reflect current (i.e., 2007-and-later) daylight saving rules.
46755
46756         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
46757
46758 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
46759
46760         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
46761         * sysdeps/unix/bsd/bits/stat.h: Likewise.
46762         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
46763         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
46764         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
46765         * sysdeps/unix/bsd/bsdstat.h: Likewise.
46766         * sysdeps/unix/bsd/clock.c: Likewise.
46767         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
46768         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
46769         * sysdeps/unix/bsd/init-posix.c: Likewise.
46770         * sysdeps/unix/bsd/poll.c: Likewise.
46771         * sysdeps/unix/bsd/ptsname.c: Likewise.
46772         * sysdeps/unix/bsd/seekdir.c: Likewise.
46773         * sysdeps/unix/bsd/setegid.c: Likewise.
46774         * sysdeps/unix/bsd/seteuid.c: Likewise.
46775         * sysdeps/unix/bsd/setgid.c: Likewise.
46776         * sysdeps/unix/bsd/setrgid.c: Likewise.
46777         * sysdeps/unix/bsd/setruid.c: Likewise.
46778         * sysdeps/unix/bsd/setsid.c: Likewise.
46779         * sysdeps/unix/bsd/setuid.c: Likewise.
46780         * sysdeps/unix/bsd/sigaction.c: Likewise.
46781         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
46782         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
46783         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
46784         * sysdeps/unix/bsd/telldir.c: Likewise.
46785         * sysdeps/unix/bsd/times.c: Likewise.
46786         * sysdeps/unix/bsd/usleep.c: Likewise.
46787
46788         * misc/Makefile (install-lib): Remove libbsd-compat.a.
46789         ($(objpfx)libbsd-compat.a): Remove rule.
46790
46791         * include/features.h (__FAVOR_BSD): Do not define.
46792         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
46793         features conflicting with POSIX.
46794         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
46795         (_BSD_SOURCE): Remove description of not being a subset of other
46796         feature test macros.
46797         * manual/job.texi (getpgrp): Do not document BSD version.
46798         (getpgid): Do not document by reference to BSD getpgrp.
46799         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
46800         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
46801         * signal/signal.h [__FAVOR_BSD]: Likewise.
46802         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
46803         instead of making contents conditional on [__FAVOR_BSD].
46804         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
46805
46806 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46807
46808         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46809
46810 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
46811
46812         [BZ #16314]
46813         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
46814         values below 2**-450, not 2**-500.
46815         * math/auto-libm-test-in: Don't allow spurious underflow from
46816         hypot.
46817         * math/auto-libm-test-out: Regenerated.
46818
46819         [BZ #16316]
46820         [BZ #16330]
46821         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
46822         values of ha and hb and sort them after adjusting subnormal
46823         arguments.
46824         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
46825         Likewise.
46826         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
46827         values of ea and eb and sort them after adjusting subnormal
46828         arguments.
46829         * math/auto-libm-test-in: Do not expect some hypot tests of
46830         subnormals to fail.  Add more hypot tests.
46831         * math/auto-libm-test-out: Regenerated.
46832
46833 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46834
46835         [BZ #13304]
46836         * sysdeps/sh/s_fma.c: New file.
46837         * sysdeps/sh/s_fmaf.c: New file.
46838         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
46839         version.
46840         * sysdeps/sh/Implies: Add sh/soft-fp.
46841
46842 2013-12-16  Roland McGrath  <roland@hack.frob.com>
46843
46844         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
46845         level of indirection to members `objname', `errstring', `malloced'.
46846         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
46847         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
46848         it as the __longjmp argument (just pass 1 instead).
46849         (_dl_catch_error): Initialize C with argument pointers and address of
46850         volatile local ERRCODE rather than copying values out of C at return.
46851
46852 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
46853
46854         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
46855         * math/auto-libm-test-out: Regenerated.
46856         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
46857         (hypot_test_data): Likewise.
46858         (pow_test_data): Likewise.
46859         (pow_tonearest_test_data): Likewise.
46860         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46861         mpfr_ff_f.
46862         (func_calc_desc): Add mpfr_ff_f union field.
46863         (FUNC_mpfr_ff_f): New macro.
46864         (test_functions): Add atan2, hypot and pow.
46865         (special_fill_min): New function.
46866         (special_fill_minus_min): Likewise.
46867         (special_fill_min_subnorm): Likewise.
46868         (special_fill_minus_min_subnorm): Likewise.
46869         (special_real_inputs): Add min, -min, min_subnorm and
46870         -min_subnorm.
46871         (calc_generic_results): Handle mpfr_ff_f.
46872         * sysdeps/i386/fpu/libm-test-ulps: Update.
46873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46874
46875 2013-12-16  Will Newton  <will.newton@linaro.org>
46876
46877         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
46878         (Aligned Memory Blocks): Add documentation for aligned_alloc
46879         and suggest it as an alternative to posix_memalign.
46880         (Hooks for Malloc): Document __memalign_hook is also called
46881         for aligned_alloc.  (Summary of Malloc): Add summary for
46882         aligned alloc.  Document __memalign_hook is also called
46883         for aligned_alloc.
46884
46885 2013-12-16  Will Newton  <will.newton@linaro.org>
46886
46887         * manual/memory.texi (Malloc Examples): Clarify default
46888         alignment documentation.  Suggest posix_memalign rather
46889         than memalign or valloc.
46890         (Aligned Memory Blocks): Remove suggestion to use memalign
46891         or valloc.  Remove obsolete comment about BSD.
46892         Document memalign errno values and mark the function obsolete.
46893         Document posix_memalign returned error codes.  Mark valloc
46894         as obsolete.  (Hooks for Malloc): __memalign_hook is also
46895         called for posix_memalign and valloc.
46896         (Summary of Malloc): Add posix_memalign to function summary.
46897         __memalign_hook is also called for posix_memalign and valloc.
46898
46899 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
46900
46901         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
46902         TAYLOR_SIN.
46903         (__sin): Adjust.
46904         (__cos): Likewise.
46905         (sloww): Use mynumber union.  Expand ternary operator into
46906         if-else statements.
46907         (cslow): use mynumber union.
46908
46909 2013-12-16  Allan McRae  <allan@archlinux.org>
46910
46911         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
46912         * configure: Regenerated.
46913
46914         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
46915
46916         [BZ #14120]
46917         * configure.ac: Added --enable-maintainer-mode. Check for
46918         autoconf when enabled.
46919         * configure: Regenerated.
46920
46921         * nscd/nscd.service: New file.
46922         * nscd/nscd.tmpfiles: New file.
46923
46924 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
46925
46926         [BZ #12100]
46927         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
46928         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
46929         * sysdeps/x86_64/multiarch/strstr.c: ... here.
46930         (strstr): Add __strstr_sse2_unaligned ifunc.
46931         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
46932         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
46933         (strcasestr): Remove __strcasestr_sse42 ifunc.
46934         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
46935         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
46936         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
46937
46938 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46939
46940         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
46941         * sysdeps/sh/bits/fenv.h: ... here.
46942         * sysdeps/sh/sh4/fpu/bits: Remove directory.
46943
46944 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46945
46946         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
46947
46948         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
46949         hypotf multiarch implementations.
46950         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
46951         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
46952         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
46953         multiarch hypot for PPC64.
46954         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
46955         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
46956         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
46957         multiarch hypotf for PPC64.
46958
46959         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
46960         modff multiarch implementations.
46961         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
46962         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
46963         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
46964         multiarch modf for PPC64.
46965         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
46966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
46967         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
46968         multiarch modff for PPC64.
46969
46970         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
46971         and logl multiarch implementations.
46972         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
46973         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
46974         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
46975         multiarch logb for PPC64.
46976         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
46977         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
46978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
46979         multiarch logb for PPC64.
46980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
46981         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
46982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
46983         multiarch logb for PPC64.
46984
46985         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
46986         isinff multiarch implementation.
46987         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
46988         file.
46989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
46990         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
46991         multiarch isinf for PPC64.
46992         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
46993         file.
46994         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
46995         multiarch isinff for PPC64.
46996
46997         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
46998         finitef multiarch implementation.
46999         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
47000         file.
47001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
47002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
47003         multiarch finite for PPC64.
47004         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
47005         file.
47006         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
47007         multiarch finitef for PPC64.
47008
47009         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
47010         lrint multiarch implementation.
47011         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
47012         file.
47013         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
47014         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
47015         multiarch llrint for PPC64.
47016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
47017         multiarch lrint for PPC64.
47018
47019         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
47020         copysignf multiarch implementation.
47021         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
47022         file.
47023         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
47024         file.
47025         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
47026         multiarch copysign for PPC64.
47027         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
47028         multiarch copysignf for PPC64.
47029
47030         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
47031         multiarch implementation.
47032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
47033         file.
47034         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
47035         file.
47036         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
47037         file.
47038         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
47039         file.
47040         multiarch llround for PPC64.
47041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
47042         multiarch trunc for PPC64.
47043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
47044         multiarch truncf for PPC64.
47045
47046         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
47047         multiarch implementation.
47048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
47049         file.
47050         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
47051         file.
47052         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
47053         file.
47054         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
47055         file.
47056         multiarch llround for PPC64.
47057         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
47058         multiarch round for PPC64.
47059         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
47060         multiarch roundf for PPC64.
47061
47062         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
47063         multiarch implementation.
47064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
47065         file.
47066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
47067         file.
47068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
47069         file.
47070         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
47071         file.
47072         multiarch llround for PPC64.
47073         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
47074         multiarch floor for PPC64.
47075         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
47076         multiarch floorf for PPC64.
47077
47078         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
47079         multiarch implementation.
47080         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
47081         file.
47082         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
47083         file.
47084         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
47085         file.
47086         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
47087         file.
47088         multiarch llround for PPC64.
47089         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
47090         multiarch ceil for PPC64.
47091         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
47092         multiarch ceilf for PPC64.
47093
47094         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
47095         multiarch implementation.
47096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
47097         file.
47098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
47099         file.
47100         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
47101         file.
47102         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
47103         multiarch llround for PPC64.
47104         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
47105         multiarch lround for PPC64.
47106
47107         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
47108         multiarch implementation.
47109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
47110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
47111         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
47112         file.
47113         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
47114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
47115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
47116         multiarch isnan for PPC64.
47117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
47118         multiarch isnanf for PPC64.
47119
47120         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
47121         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
47122         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
47123         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
47124         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
47125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
47126
47127         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
47128         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
47129         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
47130         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
47131
47132         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
47133         multiarch implementations.
47134         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47135         (__libc_ifunc_impl_list): Likewise.
47136         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
47137         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
47138         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
47139         multiarch stpcpy for PPC64.
47140
47141         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
47142         multiarch implementations.
47143         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47144         (__libc_ifunc_impl_list): Likewise.
47145         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
47146         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
47147         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
47148         multiarch strcpy for PPC64.
47149
47150         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
47151         redefine function name.
47152         (_wordcopy_fwd_dest_aligned): Likewise.
47153         (_wordcopy_bwd_aligned): Likewise.
47154         (_wordcopy_bwd_dest_aligned): Likewise.
47155         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
47156         multiarch implementations.
47157         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47158         (__libc_ifunc_impl_list): Likewise.
47159         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
47160         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
47161         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
47162         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
47163         multiarch wcscpy for PPC64.
47164
47165         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
47166         multiarch implementations.
47167         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47168         (__libc_ifunc_impl_list): Likewise.
47169         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
47170         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
47171         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
47172         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
47173         multiarch wcscpy for PPC64.
47174
47175         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
47176         multiarch implementations.
47177         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47178         (__libc_ifunc_impl_list): Likewise.
47179         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
47180         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
47181         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
47182         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
47183         multiarch wcsrchr for PPC64.
47184
47185         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
47186         multiarch implementations.
47187         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47188         (__libc_ifunc_impl_list): Likewise.
47189         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
47190         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
47191         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
47192         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
47193         multiarch wcschr for PPC64.
47194
47195         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
47196         multiarch implementations.
47197         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47198         (__libc_ifunc_impl_list): Likewise.
47199         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
47200         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
47201         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
47202         multiarch strchrnul for PPC64.
47203
47204         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
47205         implementations.
47206         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47207         (__libc_ifunc_impl_list): Likewise.
47208         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
47209         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
47210         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
47211         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
47212         strchr for PPC64.
47213
47214         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
47215         implementations.
47216         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47217         (__libc_ifunc_impl_list): Likewise.
47218         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
47219         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
47220         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
47221         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
47222         strncmp for PPC64.
47223
47224         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
47225         multiarch implementations.
47226         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47227         (__libc_ifunc_impl_list): Likewise.
47228         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
47229         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
47230         strncasecmp for PPC64.
47231         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
47232         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
47233         multiarch strncasecmp_l for PPC64.
47234
47235         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
47236         multiarch implementations.
47237         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
47238         (__libc_ifunc_impl_list): Likewise.
47239         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
47240         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
47241         multiarch strcasecmp for PPC64.
47242         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
47243         file.
47244         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
47245         multiarch strcasecmp_l for PPC64.
47246
47247         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
47248         implementations.
47249         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47250         (__libc_ifunc_impl_list): Likewise.
47251         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
47252         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
47253         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
47254         strnlen for PPC64.
47255
47256         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
47257         implementations.
47258         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47259         (__libc_ifunc_impl_list): Likewise.
47260         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
47261         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
47262         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
47263         strlen for PPC64.
47264
47265         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
47266         implementations.
47267         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47268         (__libc_ifunc_impl_list): Likewise.
47269         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
47270         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
47271         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
47272         rawmemrchr for PPC64.
47273
47274         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
47275         implementation.
47276         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47277         (__libc_ifunc_impl_list): Likewise.
47278         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
47279         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
47280         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
47281         memrchr for PPC64.
47282
47283         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
47284         implementation.
47285         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47286         (__libc_ifunc_impl_list): Likewise.
47287         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
47288         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
47289         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
47290         memchr for PPC64.
47291
47292         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
47293         implementation.
47294         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47295         (__libc_ifunc_impl_list): Likewise.
47296         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
47297         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
47298         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
47299         mempcpy for PPC64.
47300
47301         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
47302         avoid cretion of __bzero symbol.
47303         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
47304         Likewise.
47305         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
47306         Likewise.
47307         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
47308         Likewise.
47309         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
47310         multiarch implementations.
47311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47312         (__libc_ifunc_impl_list): Likewise.
47313         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
47314         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
47315         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
47316         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
47317         bzero for PPC32.
47318         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
47319         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
47320         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
47321         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
47322         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
47323         memset for PPC64.
47324         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
47325
47326         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
47327         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
47328         implementations.
47329         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
47330         (__libc_ifunc_impl_list): Likewise.
47331         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
47332         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
47333         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
47334         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
47335         memcmp for PPC64.
47336
47337         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
47338         multiarch for POWER/PPC64.
47339         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
47340         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
47341         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
47342         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
47343         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
47344         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
47345         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
47346         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
47347         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
47348         memcpy for PPC64.
47349
47350         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
47351         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
47352         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
47353         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
47354         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
47355         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
47356         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
47357         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
47358         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
47359         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
47360         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
47361         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
47362         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
47363         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
47364         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
47365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
47366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
47367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
47368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
47369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
47370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
47371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
47372
47373 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
47374
47375         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
47376
47377 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
47378
47379         * benchtests/Makefile (bench): Add exp2 and log2.
47380         (LDLIBS-bench-exp2): Add -lm.
47381         (LDLIBS-bench-log2): Likewise.
47382         * benchtests/exp2-inputs: New inputs file.
47383         * benchtests/log2-inputs: New inputs file.
47384         * benchtests/log-inputs: Add new inputs.
47385         * benchtests/tan-inputs: Likewise.
47386
47387 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
47388
47389         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
47390         definition...
47391         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
47392         (csloww2): ... from here.
47393
47394         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
47395         instead of structures.
47396         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
47397         (POLYNOMIAL): Likewise.
47398         (TAYLOR_SLOW): Likewise.
47399         (__sin): Likewise.
47400         (__cos): Likewise.
47401         (slow1): Likewise.
47402         (slow2): Likewise.
47403         (sloww): Likewise.
47404         (sloww1); Likewise.
47405         (sloww2): Likewise.
47406         (bsloww1): Likewise.
47407         (bsloww2): Likewise.
47408         (cslow2): Likewise.
47409         (csloww): Likewise.
47410         (csloww1): Likewise.
47411         (csloww2): Likewise.
47412
47413 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
47414
47415         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
47416         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
47417         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
47418         * malloc/hooks.c (realloc_check): Likewise.
47419
47420         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
47421         * malloc/arena.c: Remove PER_THREAD conditional.
47422         [!PER_THREAD]: Remove code.
47423         (ptmalloc_unlock_all2): Likewise.
47424         (ptmalloc_init): Likewise.
47425         (_int_new_arena): Likewise.
47426         (arena_get2): Likewise.
47427         * malloc/hooks.c (__malloc_get_state): Likewise.
47428         (__malloc_set_state): Likewise.
47429         * malloc/malloc.c: Likewise.
47430         (struct malloc_state): Likewise.
47431         (struct malloc_par): Likewise.
47432         (__libc_realloc): Likewise.
47433         (__libc_mallopt): Likewise.
47434
47435 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47436
47437         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
47438
47439 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
47440
47441         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
47442         macro to a function.  Check for zero perturb_byte.
47443         (_int_malloc, _int_free): Remove zero perturb_byte checks.
47444
47445         * malloc/malloc.c: (force_reg): Remove.
47446         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
47447         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
47448         force_reg by atomic_forced_read.
47449         * malloc/arena.c (ptmalloc_init): Likewise.
47450         * malloc/hooks.c (top_check): Likewise.
47451
47452 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47453
47454         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47455
47456 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
47457
47458         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
47459
47460 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
47461
47462         * math/auto-libm-test-in: Add tests of lgamma.
47463         * math/auto-libm-test-out: Regenerated.
47464         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
47465         (M_LOG_2_SQRT_PIl): Likewise.
47466         (lgamma_test_data): Use AUTO_TESTS_f_f1.
47467         * math/gen-auto-libm-tests.c (func_calc_method): Add value
47468         mpfr_f_f1.
47469         (func_calc_desc): Add mpfr_f_f1 union field.
47470         (ARGS1): New macro.
47471         (ARGS2): Likewise.
47472         (ARGS3): Likewise.
47473         (ARGS4): Likewise.
47474         (RET1): Likewise.
47475         (RET2): Likewise.
47476         (CALC): Likewise.
47477         (FUNC): Likewise.
47478         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
47479         (test_functions): Add lgamma.
47480         (calc_generic_results): Handle mpfr_f_f1.
47481         * sysdeps/i386/fpu/libm-test-ulps: Update.
47482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47483
47484 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47485
47486         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
47487         __mpn_add_n for PowerPC64/POWER7.
47488         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
47489         __mpn_sub_n for PowerPC64/POWER7.
47490
47491         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
47492         __mpn_addmul_1 for PowerPC64.
47493         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
47494         __mpn_submul_1 for PowerPC64.
47495         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
47496         for PowerPC64.
47497         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
47498         for PowerPC64.
47499
47500 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
47501
47502         [BZ #15089]
47503         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
47504
47505 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47506
47507         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
47508
47509         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
47510         add multiarch folders.
47511         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
47512         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
47513         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
47514         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
47515         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
47516         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
47517         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
47518         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
47519         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
47520         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
47521         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
47522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
47523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
47524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
47525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
47526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
47527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
47528
47529         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
47530         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
47531         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
47532         New file.
47533         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
47534         New file.
47535         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
47536         multiarch __ieee754_hypot for PowerPC32.
47537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
47538         New file.
47539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
47540         New file.
47541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
47542         multiarch __ieee754_hypotf for PowerPC32.
47543
47544         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
47545         long_double_symbol only if __logbl is defined.
47546         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
47547         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
47548         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
47549         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
47550         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
47551         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
47552         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
47553         path for implementation.
47554         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
47555         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
47556         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
47557         logb, and logbl multiarch implementations for PowerPC32.
47558         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
47559         file.
47560         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
47561         file.
47562         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
47563         multiarch logb for PowerPC32.
47564         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
47565         file.
47566         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
47567         file.
47568         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
47569         multiarch logbf for PowerPC32.
47570         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
47571         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
47572         file.
47573         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
47574         multiarch logbl implementation for PowerPC32.
47575
47576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
47577         and modff multiarch implementations.
47578         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
47579         New file.
47580         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
47581         New file.
47582         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
47583         multiarch modf for PowerPC32.
47584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
47585         New file.
47586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
47587         New file.
47588         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
47589         multiarch modff for PowerPC32.
47590
47591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
47592         and lrintf multiarch implementations.
47593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
47594         New file.
47595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
47596         New file.
47597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
47598         multiarch lrint for PowerPC32.
47599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
47600         file: multiarch lrintf for PowerPC32.
47601
47602         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
47603         and lroundf multiarch implementations.
47604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
47605         New file.
47606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
47607         New file.
47608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
47609         New file.
47610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
47611         multiarch lround for PowerPC32.
47612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
47613         file: multiarch lroundf for PowerPC32.
47614
47615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
47616         copysign and copysignf multiarch implementations.
47617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
47618         New file.
47619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
47620         New file.
47621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
47622         file: multiarch copysign for PowerPC32.
47623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
47624         file: multiarch copysignf for PowerPC32.
47625
47626         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
47627         and truncf multiarch implementations.
47628         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
47629         New file.
47630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
47631         file.
47632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
47633         multiarch trunc for PowerPC32.
47634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
47635         New file.
47636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
47637         New file.
47638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
47639         multiarch truncf for PowerPC32.
47640
47641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
47642         and roundf multiarch implementations.
47643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
47644         New file.
47645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
47646         file.
47647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
47648         multiarch round for PowerPC32.
47649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
47650         New file.
47651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
47652         New file.
47653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
47654         multiarch roundf for PowerPC32.
47655
47656         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
47657         and floorf multiarch implementations.
47658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
47659         New file.
47660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
47661         file.
47662         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
47663         multiarch floor for PowerPC32.
47664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
47665         New file.
47666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
47667         New file.
47668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
47669         multiarch floorf for PowerPC32.
47670
47671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
47672         and ceilf multiarch implementations.
47673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
47674         New file.
47675         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
47676         file.
47677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
47678         multiarch ceil for PowerPC32.
47679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
47680         New file.
47681         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
47682         file.
47683         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
47684         multiarch ceilf for PowerPC32.
47685
47686         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
47687         is defined.
47688         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
47689         FINITEF is defined.
47690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
47691         and finitef multiarch implementations.
47692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
47693         New file.
47694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
47695         file.
47696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
47697         multiarch finite for PowerPC32.
47698         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
47699         New file.
47700         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
47701         file: multiarch finitef for PowerPC32.
47702
47703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
47704         and isinff multiarch implementations.
47705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
47706         file.
47707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
47708         file.
47709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
47710         multiarch isinf for PowerPC32.
47711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
47712         New file.
47713         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
47714         multiarch isinff for PowerPC32.
47715
47716         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
47717         alias when __isnan is defined.
47718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
47719         and isnanf multiarch implementations.
47720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
47721         file.
47722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
47723         file.
47724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
47725         file.
47726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
47727         file.
47728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
47729         multiarch isnan for PowerPC32.
47730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
47731         New file.
47732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
47733         New file.
47734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
47735         multiarch isnanf for PowerPC32.
47736
47737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
47738         and sqrtf multiarch implementations.
47739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
47740         file.
47741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
47742         file.
47743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
47744         multiarch sqrt for PowerPC32.
47745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
47746         file.
47747         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
47748         file.
47749         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
47750         multiarch sqrtf for PowerPC32.
47751
47752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
47753         and llroundf multiarch implementations.
47754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
47755         New file.
47756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
47757         New file.
47758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
47759         New file.
47760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
47761         file: multiarch llround for PowerPC32.
47762         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
47763         file: multiarch llroundf for PowerPC32.
47764
47765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
47766         multiarch PowerPC32 fpu implementations.
47767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
47768         New file.
47769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
47770         New file.
47771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
47772         multiarch llrint for PowerPC32.
47773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
47774         New file.
47775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
47776         New file.
47777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
47778         file.
47779
47780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
47781
47782         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
47783         file.
47784         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
47785         file.
47786         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
47787         file.
47788         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
47789         multiarch wordcopy for PPC32.
47790         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
47791         wordcopy objects.
47792         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47793         (__libc_ifunc_impl_list): Likewise.
47794         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
47795         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
47796         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
47797         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
47798         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
47799         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
47800
47801         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
47802         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
47803         file.
47804         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
47805         file.
47806         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
47807         file.
47808         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
47809         multiarch wcscpy for PPC32.
47810         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
47811         multiarch objects.
47812         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47813         (__libc_ifunc_impl_list): Likewise.
47814         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
47815         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
47816         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
47817         sysdeps/powerpc/power6/wcscpy.c.
47818
47819         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
47820         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
47821         file.
47822         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
47823         file.
47824         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
47825         file.
47826         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
47827         multiarch wcsrchr for PPC32.
47828         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
47829         multiarch objects.
47830         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47831         (__libc_ifunc_impl_list): Likewise.
47832         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
47833         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
47834         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
47835         sysdeps/powerpc/power6/wcsrchr.c.
47836
47837         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
47838         file.
47839         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
47840         file.
47841         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
47842         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
47843         multiarch wcschr for PPc32.
47844         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
47845         multiarch objects.
47846         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47847         (__libc_ifunc_impl_list): Likewise.
47848         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
47849         * sysdeps/powerpc/power6/wcschr.c: ... to here.
47850         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
47851         sysdeps/powerpc/power6/wcschr.c.
47852
47853         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
47854         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
47855         file.
47856         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
47857         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
47858         file: multiarch strchr for PPC32.
47859         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
47860         multiarch objects.
47861         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47862         (__libc_ifunc_impl_list): Likewise.
47863
47864         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
47865         name.
47866         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
47867         file.
47868         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
47869         file.
47870         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
47871         multiarch strchrnul for PPC32.
47872         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
47873         multiarch objects.
47874         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47875         (__libc_ifunc_impl_list): Likewise.
47876
47877         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
47878         file.
47879         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
47880         multiarch strncasecmp for PPC32.
47881         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
47882         file.
47883         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
47884         multiarch strncasecmp_l for PPC32.
47885         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
47886         strncasecmp multiarch objects.
47887         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47888         (__libc_ifunc_impl_list): Likewise.
47889
47890         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
47891         file.
47892         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
47893         multiarch strncasecmp for PPC32.
47894         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
47895         New file.
47896         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
47897         multiarch strcasecmp_l for PPC32.
47898         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
47899         multiarch objects.
47900         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47901         (__libc_ifunc_impl_list): Likewise.
47902
47903         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
47904         file.
47905         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
47906         file.
47907         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
47908         multiarch strncmp for PPC32.
47909         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
47910         multiarch objects.
47911         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47912         (__libc_ifunc_impl_list): Likewise.
47913
47914         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
47915         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
47916         file.
47917         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
47918         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
47919         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
47920         multiarch objects.
47921         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47922         (__libc_ifunc_impl_list): Likewise.
47923
47924         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
47925         file.
47926         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
47927         file.
47928         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
47929         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
47930         multiarch objects.
47931         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47932         (__libc_ifunc_impl_list): Likewise.
47933
47934         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
47935         file.
47936         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
47937         file.
47938         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
47939         multiarch rawmemchr for PPC32.
47940         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
47941         multiarch objects.
47942         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47943         (__libc_ifunc_impl_list): Likewise.
47944
47945         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
47946         file.
47947         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
47948         file.
47949         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
47950         file: memrchr multiarch for PPC32.
47951         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
47952         multiarch objects.
47953         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47954         (__libc_ifunc_impl_list): Likewise.
47955
47956         * string/memchr.c (__memchr): Using macro to redefine symbol name.
47957         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
47958         file.
47959         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
47960         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
47961         multiarch memchr for PPC32.
47962         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
47963         multiarch objects.
47964         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47965         (__libc_ifunc_impl_list): Likewise.
47966
47967         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
47968         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
47969         file.
47970         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
47971         file.
47972         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
47973         file: multiarch mempcpy for PPC32.
47974         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
47975         multiarch objects.
47976         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47977         (__libc_ifunc_impl_list): Likewise.
47978
47979         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
47980         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
47981         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
47982         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
47983         multiarch bzero for PPC32.
47984         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
47985         file.
47986         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
47987         file.
47988         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
47989         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
47990         file: multiarch memset for PPC32.
47991         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
47992         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
47993         memset multiarch objects.
47994         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47995         (__libc_ifunc_impl_list): Likewise.
47996
47997         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
47998         file.
47999         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
48000         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
48001         memcmp for PPC32.
48002         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
48003         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
48004         multiarch objects.
48005         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
48006         (__libc_ifunc_impl_list): Likewise.
48007
48008         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
48009         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
48010         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
48011         file.
48012         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
48013         file.
48014         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
48015         file.
48016         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
48017         multiarch memcpy for PPC32.
48018         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
48019         multiarch objects.
48020         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
48021         (__libc_ifunc_impl_list): Likewise.
48022
48023         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
48024         support multiarch for POWER/PPC32.
48025         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
48026         Likewise.
48027         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
48028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
48029         Implies file to make multiarch folder appers before the fpu and
48030         default folder for power4 configuration.
48031
48032 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
48033
48034         * scripts/bench.pl: Append volatile keyword to type.
48035
48036 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
48037
48038         * sysdeps/sh/sotruss-lib.c: New file.
48039         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
48040
48041 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48042
48043         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48044
48045 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
48046
48047         [BZ #6810]
48048         * math/w_tgamma.c: Include <errno.h>.
48049         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
48050         * math/w_tgammaf.c: Include <errno.h>.
48051         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
48052         * math/w_tgammal.c: Include <errno.h>.
48053         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
48054         * math/auto-libm-test-in: Do not allow missing errno on tgamma
48055         underflow.  Add more tgamma tests.
48056         * math/auto-libm-test-out: Regenerated.
48057         * sysdeps/i386/fpu/libm-test-ulps: Update.
48058         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48059
48060         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
48061         sin, sinh, tan, tanh, tgamma, y0 and y1.
48062         * math/auto-libm-test-out: Regenerated.
48063         * math/libm-test.inc (TEST_COND_x86_64): New macro.
48064         (TEST_COND_x86): Likewise.
48065         (M_E2l): Remove macro.
48066         (M_E3l): Likewise.
48067         (M_2_SQRT_PIl): Likewise.
48068         (M_SQRT_PIl): Likewise.
48069         (M_1_DIV_El): Likewise.
48070         (log_test_data): Use AUTO_TESTS_f_f.
48071         (log10_test_data): Likewise.
48072         (log1p_test_data): Likewise.
48073         (log2_test_data): Likewise.
48074         (sin_test_data): Likewise.
48075         (sin_tonearest_test_data): Likewise.
48076         (sin_towardzero_test_data): Likewise.
48077         (sin_downward_test_data): Likewise.
48078         (sin_upward_test_data): Likewise.
48079         (sinh_test_data): Likewise.
48080         (sinh_tonearest_test_data): Likewise.
48081         (sinh_towardzero_test_data): Likewise.
48082         (sinh_downward_test_data): Likewise.
48083         (sinh_upward_test_data): Likewise.
48084         (tan_test_data): Likewise.
48085         (tan_tonearest_test_data): Likewise.
48086         (tan_towardzero_test_data): Likewise.
48087         (tan_downward_test_data): Likewise.
48088         (tan_upward_test_data): Likewise.
48089         (tanh_test_data): Likewise.
48090         (tgamma_test_data): Likewise.
48091         (y0_test_data): Likewise.
48092         (y1_test_data): Likewise.
48093         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
48094         (special_real_inputs): Add pi/4.
48095         * sysdeps/i386/fpu/libm-test-ulps: Update.
48096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48097
48098 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48099
48100         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
48101         "longjmp_target" static probes.
48102         (__longjmp): Rename to __longjmp_symbol.
48103         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
48104         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
48105         on which longjmp to generate.
48106         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
48107         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
48108         probe.
48109         (__sigsetjmp): Rename to __sigsetjmp_symbol.
48110         (__sigjmp_save): Rename to __sigjmp_save_symbol.
48111         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
48112         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
48113         and __sigjmp_save_symbol based on which sigsetjmp to generated.
48114         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
48115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
48116         __longjmp_symbol based on which __longjmp to generate.
48117         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
48118         probe.
48119         (setjmp): Rename to setjmp_symbol.
48120         (__sigsetjmp): Rename to __sigsetjmp_symbol.
48121         (_setjmp): Rename to _setjmp_symbol.
48122         (__sigsetjmp): Rename to __sigsetjmp_symbol.
48123         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
48124         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
48125         which setjmp to generate.
48126         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
48127         "longjmp_target" static probes.
48128
48129 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
48130
48131         * benchtests/README: Add note about output arguments.
48132         * benchtests/bench-sincos.c: Remove file.
48133         * benchtests/sincos-inputs: New file.
48134         * scripts/bench.pl: Identify output arguments and define
48135         static variables for them.
48136
48137         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
48138
48139         [BZ #15941]
48140         * Makefile (INSTALL): Add install-plain.texi as the primary
48141         dependency.
48142         * manual/install-plain.texi: New file.
48143         * manual/install.texi: Include node directive only for
48144         non-plaintext output.
48145
48146 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
48147
48148         * stdlib/longlong.h: Update from GCC.
48149
48150         [BZ #6807]
48151         [BZ #15901]
48152         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
48153         * math/w_j0f.c (y0f): Likewise.
48154         * math/w_j0l.c (__y0l): Likewise.
48155         * math/w_j1.c (y1): Likewise.
48156         * math/w_j1f.c (y1f): Likewise.
48157         * math/w_j1l.c (__y1l): Likewise.
48158         * math/w_jn.c (yn): Likewise.
48159         * math/w_jnf.c (ynf): Likewise.
48160         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
48161         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
48162         value for Bessel function domain errors outside _SVID_ mode.
48163         Adjust sign of return value for yn (negative integer, 0).
48164         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
48165         by zero in return for negative x and set sign appropriately for
48166         negative n.
48167         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
48168         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
48169         * math/libm-test.inc (y0_test_data): Add more tests and adjust
48170         expectations in error cases.
48171         (y1_test_data): Likewise.
48172         (yn_test_data): Likewise.
48173         * sysdeps/i386/fpu/libm-test-ulps: Update.
48174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48175
48176 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
48177
48178         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
48179         "64" to "64-v1".  Add "64-v2".
48180         (abi-64-options): Rename to ...
48181         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
48182         (abi-64-condition): Rename to ...
48183         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
48184         (abi-64-ld-soname): Rename to ...
48185         (abi-64-v1-ld-soname): ... this.
48186         (abi-64-v2-options): Define.
48187         (abi-64-v2-condition): Likewise.
48188         (abi-64-v2-ld-soname): Likewise.
48189         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
48190         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
48191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
48192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
48193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
48194
48195 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
48196             Alan Modra  <amodra@gmail.com>
48197
48198         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
48199         New versions for use with the ELFv2 ABI.
48200         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
48201         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
48202         declaration.
48203         (struct La_ppc64v2_retval): Likewise.
48204         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
48205         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
48206         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
48207         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
48208         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
48209         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
48210         Do not save or restore CR.
48211         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
48212         (_dl_profile_resolve): Do no save or restore CR.  Support extended
48213         return values for ELFv2 ABI.  Fix location of FPR return registers.
48214         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
48215         updated values for _CALL_ELF == 2.
48216         (La_regs, La_retval, int_retval): Likewise.
48217
48218 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
48219
48220         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
48221         (FRAME_MIN_SIZE_PARM): Likewise.
48222         (FRAME_BACKCHAIN): Likewise.
48223         (FRAME_CR_SAVE): Likewise.
48224         (FRAME_LR_SAVE): Likewise.
48225         (FRAME_TOC_SAVE): Likewise.
48226         (FRAME_PARM_SAVE): Likewise.
48227         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
48228         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
48229         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
48230         (call_mcount_parm_offset): New macro.
48231         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
48232         (PROF): Use symbolic stack frame offsets.
48233         (TAIL_CALL_SYSCALL_ERROR): Likewise.
48234         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
48235         Redefine in terms of FRAME_MIN_SIZE.
48236         (_dl_runtime_resolve): Use symbolic stack frame offsets.
48237         (_dl_profile_resolve): Likewise.  Update comment.
48238         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
48239         symbols stack frame offsets.
48240         (__sigsetjmp): Likewise.
48241         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
48242         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
48243         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
48244         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
48245
48246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
48247         (FRAME_BACKCHAIN): Remove.
48248         (FRAME_CR_SAVE): Likewise.
48249         (FRAME_LR_SAVE): Likewise.
48250         (FRAME_COMPILER_DW): Likewise.
48251         (FRAME_LINKER_DW): Likewise.
48252         (FRAME_TOC_SAVE): Likewise.
48253         (FRAME_PARM_SAVE): Likewise.
48254         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
48255         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
48256         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
48257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
48258         (CHECK_SP): Use symbolic stack frame offsets.
48259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
48260         zone" instead of caller's parameter save area for temp storage.
48261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
48262         Likewise.  Also, use symbolic stack frame offsets.
48263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
48264         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
48265         our own stack frame instead of the caller's.
48266         (__socket): Use symbolic stack frame offsets.
48267
48268 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
48269             Alan Modra  <amodra@gmail.com>
48270
48271         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
48272         Define.
48273         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
48274         (PPC64_LOCAL_ENTRY_OFFSET): Define.
48275         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
48276         New function.
48277         (elf_machine_fixup_plt): Call it.
48278         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
48279         reloc arguments.
48280         (elf_machine_rela): Update call to elf_machine_plt_conflict.
48281         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
48282         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
48283         r2 before calling target.
48284
48285 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
48286             Alan Modra  <amodra@gmail.com>
48287
48288         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
48289         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
48290         versions of macros to support ELFv2 ABI.
48291         (LOCALENTRY): New macro.
48292         (ENTRY, EALIGN): Use it.
48293         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
48294         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
48295         fall through into ENTRY entry point.
48296         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
48297         Only define if _CALL_ELF != 2.
48298
48299         (elf_machine_matches_host): Verify ABI version matches.
48300         (RTLD_START): Use LOCALENTRY.
48301         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
48302         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
48303         (PLT_ENTRY_WORDS): New macro.
48304         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
48305         (elf_machine_runtime_setup): Support ELFv2 ABI.
48306         (elf_machine_fixup_plt): Likewise.
48307         (elf_machine_plt_conflict): Likewise.
48308         (resolve_ifunc): Likewise.
48309         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
48310         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
48311         Likewise.
48312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
48313         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
48314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
48315         (makecontext): Support ELFv2 ABI.
48316         * elf/elf.h (EF_PPC64_ABI): Define.
48317
48318 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
48319
48320         * sysdeps/powerpc/powerpc64/sysdep.h
48321         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
48322         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
48323         (ENTRY) [ASSEMBLER]: ... but instead here ...
48324         (EALIGN) [ASSEMBLER]: ... and here.
48325         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
48326         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
48327         (ENTRY_2) [!ASSEMBLER]: Use it.
48328         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
48329         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
48330         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
48331         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
48332         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
48333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
48334         Use PPC64_LOAD_FUNCPTR.
48335
48336         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
48337
48338 2013-12-04  Alan Modra  <amodra@gmail.com>
48339
48340         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
48341         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
48342         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
48343         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
48344
48345         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
48346         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
48347         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
48348         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
48349         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
48350         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
48351
48352 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
48353
48354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
48355         (__makecontext): Fix incorrect CFI when backtracing out of
48356         context created via makecontext.
48357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
48358         (__setcontext): Fix incorrect CFI during switch to new context.
48359         (__novec_setcontext): Likewise.
48360
48361 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
48362
48363         [BZ #4772]
48364         * time/strptime_l.c (__strptime_internal): Allow modifiers
48365         in strptime.
48366         * time/tst-strptime.c (day_tests): Add testcase.
48367
48368 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
48369
48370         * scripts/bench.pl: Skip over blank lines.
48371
48372 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
48373
48374         [BZ #926]
48375         * manual/time.texi (Calendar Time): Clarify what timezone functions
48376         use.
48377
48378 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48379
48380         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48381
48382 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
48383
48384         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
48385         implementation.
48386         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
48387         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
48388         * debug/memset_chk.c (__memset_chk): Likewise.
48389         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
48390         * debug/strncpy_chk.c: Likewise.
48391
48392 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
48393
48394         [BZ #15268]
48395         [BZ #15425]
48396         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
48397         (__ieee754_exp): For possibly underflowing results, check size of
48398         result and force underflow exception if required.
48399         * math/auto-libm-test-in: Add more tests of exp.
48400         * math/auto-libm-test-out: Regenerated.
48401         * sysdeps/i386/fpu/libm-test-ulps: Update.
48402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48403
48404         [BZ #16283]
48405         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
48406         * math/w_exp2f.c (__exp2f): Likewise.
48407         * math/w_exp2l.c (__exp2l): Likewise.
48408         * math/auto-libm-test-in: Do not allow missing errno on exp2
48409         underflow.
48410         * math/auto-libm-test-out: Regenerated.
48411
48412 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
48413
48414         [BZ #16274]
48415         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
48416         handle filename validation.
48417         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
48418         (do_open): Delete.
48419
48420 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
48421
48422         [BZ #6786]
48423         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
48424         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
48425         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
48426         <float.h>.
48427         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
48428         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
48429         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
48430         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
48431         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
48432         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
48433         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
48434         * math/auto-libm-test-in: Don't allow missing errno from erfc.
48435         Add more erfc tests.
48436         * math/auto-libm-test-out: Regenerated.
48437         * sysdeps/i386/fpu/libm-test-ulps: Update.
48438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48439
48440         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
48441         exp2, expm1, j0 and j1.
48442         * math/auto-libm-test-out: Regenerated.
48443         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
48444         (erfc_test_data): Likewise.
48445         (exp_test_data): Likewise.
48446         (exp_tonearest_test_data): Likewise.
48447         (exp_towardzero_test_data): Likewise.
48448         (exp_downward_test_data): Likewise.
48449         (exp_upward_test_data): Likewise.
48450         (exp10_test_data): Likewise.
48451         (exp2_test_data): Likewise.
48452         (expm1_test_data): Likewise.
48453         (j0_test_data): Likewise.
48454         (j1_test_data): Likewise.
48455         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
48456         (input_flag_type): Add flag_xfail_rounding.
48457         (input_flags): Add xfail-rounding.
48458         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
48459         (output_for_one_input_case): Handle flag_xfail_rounding.
48460         * sysdeps/i386/fpu/libm-test-ulps: Update.
48461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48462
48463 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
48464
48465         [BZ #16289]
48466         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
48467         division by 0.
48468
48469 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
48470
48471         [BZ #16195]
48472         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
48473         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
48474         (STAP_PROBE0): New macro.
48475         (STAP_PROBE1): Likewise.
48476         (STAP_PROBE2): Likewise.
48477         (STAP_PROBE3): Likewise.
48478         (STAP_PROBE4): Likewise.
48479
48480 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
48481
48482         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
48483
48484 2013-12-02  Steve Ellcey  <sellcey@mips.com>
48485
48486         * benchtests/Makefile (bench): Add sqrt.
48487         (LDLIBS-bench-sqrt): New.
48488         * benchtests/sqrt-input: New.
48489
48490 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
48491
48492         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
48493         (GAIH_EAI): Likewise.
48494         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
48495         (gaih_inet): Likewise.
48496         (getaddrinfo): Don't use GAIH_EAI.
48497
48498         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
48499         (struct gaih): Remove definition.
48500
48501 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
48502
48503         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
48504         Use HERRNOP directly.
48505
48506 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48507
48508         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48509
48510 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
48511
48512         * math/gen-auto-libm-tests.c (test_functions): Add more
48513         single-argument functions.
48514         (special_fill_pi_2): New function.
48515         (special_fill_minus_pi_2): Likewise.
48516         (special_fill_pi_6): Likewise.
48517         (special_fill_minus_pi_6): Likewise.
48518         (special_fill_pi_3): Likewise.
48519         (special_fill_2pi_3): Likewise.
48520         (special_fill_e): Likewise.
48521         (special_fill_1_e): Likewise.
48522         (special_fill_e_minus_1): Likewise.
48523         (special_real_inputs): Add more special inputs.
48524         (output_for_one_input_case): Do not require ERANGE on underflow to
48525         zero if round-to-nearest result does not underflow to zero, unless
48526         exact results required.
48527         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
48528         atan, atanh, cbrt, cos and cosh.
48529         * math/auto-libm-test-out: Regenerated.
48530         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
48531         (acos_tonearest_test_data): Likewise.
48532         (acos_towardzero_test_data): Likewise.
48533         (acos_downward_test_data): Likewise.
48534         (acos_upward_test_data): Likewise.
48535         (acosh_test_data): Likewise.
48536         (asin_test_data): Likewise.
48537         (asin_tonearest_test_data): Likewise.
48538         (asin_towardzero_test_data): Likewise.
48539         (asin_upward_test_data): Likewise.
48540         (asinh_test_data): Likewise.
48541         (atan_test_data): Likewise.
48542         (atanh_test_data): Likewise.
48543         (cbrt_test_data): Likewise.
48544         (cos_test_data): Likewise.
48545         (cos_tonearest_test_data): Likewise.
48546         (cos_towardzero_test_data): Likewise.
48547         (cos_downward_test_data): Likewise.
48548         (cos_upward_test_data): Likewise.
48549         (cosh_test_data): Likewise.
48550         (cosh_tonearest_test_data): Likewise.
48551         (cosh_towardzero_test_data): Likewise.
48552         (cosh_downward_test_data): Likewise.
48553         (cosh_upward_test_data): Likewise.
48554         * sysdeps/i386/fpu/libm-test-ulps: Update.
48555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48556
48557 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
48558
48559         [BZ #6787]
48560         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
48561         * math/w_exp10f.c (__exp10f): Likewise.
48562         * math/w_exp10l.c (__exp10l): Likewise.
48563         * math/libm-test.inc (exp10_test_data): Add more tests and expect
48564         errno settings in existing tests.
48565
48566         [BZ #14032]
48567         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
48568         precision control set to double precision.
48569         * sysdeps/i386/fpu/w_sqrt.c: New file.
48570         * math/auto-libm-test-in: Add more tests.
48571         * math/auto-libm-test-out: Update.
48572
48573         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
48574         (sqrt_test_tonearest): New function.
48575         (sqrt_towardzero_test_data): New variable.
48576         (sqrt_test_towardzero): New function.
48577         (sqrt_downward_test_data): New variable.
48578         (sqrt_test_downward): New function.
48579         (sqrt_upward_test_data): New variable.
48580         (sqrt_test_upward): New function.
48581         (main): Call the new functions.
48582
48583         * math/gen-auto-libm-tests.c: New file.
48584         * math/auto-libm-test-in: Likewise.
48585         * math/auto-libm-test-out: New generated file.
48586         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
48587         variables.
48588         (%beautify): Add generated representations of zero.
48589         (top level): Set $auto_input and call parse_auto_input.
48590         (beautify): Remove trailing "f" from hex float constants.
48591         (parse_args): Handle XFAIL_TEST.
48592         (convert_condition): New function.
48593         (or_value): Likewise.
48594         (or_cond_value): Likewise.
48595         (generate_testfile): Handle AUTO_TESTS_* lines.
48596         (parse_auto_input): New function.
48597         * math/libm-test.inc (XFAIL_TEST): New macro.
48598         (ERRNO_UNCHANGED): Update value.
48599         (ERRNO_EDOM): Likewise.
48600         (ERRNO_ERANGE): Likewise.
48601         (IGNORE_RESULT): Likewise.
48602         (TEST_COND_flt_32): New macro.
48603         (TEST_COND_dbl_64): Likewise.
48604         (TEST_COND_ldbl_96_intel): Likewise.
48605         (TEST_COND_ldbl_96_m68k): Likewise.
48606         (TEST_COND_ldbl_128): Likewise.
48607         (TEST_COND_ldbl_128ibm): Likewise.
48608         (TEST_COND_long32): Likewise.
48609         (TEST_COND_long64): Likewise.
48610         (TEST_COND_before_rounding): Likewise.
48611         (TEST_COND_after_rounding): Likewise.
48612         (enable_test): Handle XFAIL_TEST flag.
48613         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
48614         with finite results.
48615         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
48616         auto-libm-test-out.
48617
48618 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
48619             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48620
48621         [BZ #16214]
48622         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
48623         __tls_get_addr_internal instead of __tls_get_offset in order to
48624         avoid GOT pointer dependency.  Make rtld export
48625         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
48626         __tls_get_addr since we are a __tls_get_offset platform.
48627         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
48628         GOT pointer being set up before.
48629         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
48630
48631 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
48632
48633         * manual/math.texi (Errors in Math Functions): Document accuracy
48634         goals.
48635
48636         [BZ #15004]
48637         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
48638         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
48639         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
48640         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
48641         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
48642         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
48643         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
48644         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
48645         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
48646         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
48647         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
48648         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
48649         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
48650         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
48651         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
48652         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
48653
48654         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
48655         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
48656         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
48657         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
48658         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
48659         Likewise.
48660         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
48661         Likewise.
48662         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
48663         Likewise.
48664         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
48665         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
48666         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
48667         atomic-feupdateenv and flt-rounds.
48668         * sysdeps/powerpc/nofpu/Versions (libc): Add
48669         __atomic_feholdexcept, __atomic_feclearexcept,
48670         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
48671         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
48672         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
48673         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
48674         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
48675         here.
48676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
48677         Update.
48678
48679         * manual/arith.texi (FP Exceptions): Document that exceptions may
48680         not be raised when matherr is used.
48681         (Math Error Reporting): Document overflow in directed rounding
48682         modes.  Document that errno may not be set when finite values are
48683         returned on overflow.  Document intent to set errno on underflow
48684         only for underflow to zero.
48685
48686         [BZ #16271]
48687         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
48688         round-to-nearest then adjust result for other rounding modes.
48689         * include/fenv.h (fegetround): Use libm_hidden_proto.
48690         * math/fegetround.c (fegetround): Use libm_hidden_def.
48691         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
48692         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
48693         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
48694         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
48695         Likewise.
48696         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
48697         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
48698         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
48699         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
48700
48701 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
48702
48703         [BZ #16077]
48704         * nss/Versions (libnss_files): Add
48705         _nss_files_gethostbyname3_r.
48706         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
48707         New function.
48708         (HOST_DB_LOOKUP): Remove macro.
48709         (_nss_files_gethostbyname_r): Implement function without the
48710         HOST_DB_LOOKUP macro.
48711         (_nss_files_gethostbyname2_r): Likewise.
48712
48713 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
48714
48715         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
48716
48717 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
48718
48719         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
48720         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
48721         warning.
48722
48723 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48724
48725         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
48726         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
48727         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
48728         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
48729         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
48730         __fe_nomask_env_priv and attribute_hidden.
48731         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
48732         (libc_feupdateenv_test_ppc): Likewise.
48733         (libc_feresetround_ppc): Likewise.
48734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48735         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
48736         compat_symbol macro.
48737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48738         (__fe_nomask_env): Likewise.
48739         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
48740
48741 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48742
48743         * string/Makefile: Remove ifunc tests.
48744         * string/test-string.h: Define TEST_IFUNC.
48745         * string/test-bcopy-ifunc.c: Remove.
48746         * string/test-bzero-ifunc.c: Likewise.
48747         * string/test-memccpy-ifunc.c: Likewise.
48748         * string/test-memchr-ifunc.c: Likewise.
48749         * string/test-memcmp-ifunc.c: Likewise.
48750         * string/test-memcpy-ifunc.c: Likewise.
48751         * string/test-memmem-ifunc.c: Likewise.
48752         * string/test-memmove-ifunc.c: Likewise.
48753         * string/test-mempcpy-ifunc.c: Likewise.
48754         * string/test-memrchr-ifunc.c: Likewise.
48755         * string/test-memset-ifunc.c: Likewise.
48756         * string/test-rawmemchr-ifunc.c: Likewise.
48757         * string/test-stpcpy-ifunc.c: Likewise.
48758         * string/test-stpncpy-ifunc.c: Likewise.
48759         * string/test-strcasecmp-ifunc.c: Likewise.
48760         * string/test-strcasestr-ifunc.c: Likewise.
48761         * string/test-strcat-ifunc.c: Likewise.
48762         * string/test-strchr-ifunc.c: Likewise.
48763         * string/test-strchrnul-ifunc.c: Likewise.
48764         * string/test-strcmp-ifunc.c: Likewise.
48765         * string/test-strcpy-ifunc.c: Likewise.
48766         * string/test-strcspn-ifunc.c: Likewise.
48767         * string/test-strlen-ifunc.c: Likewise.
48768         * string/test-strncasecmp-ifunc.c: Likewise.
48769         * string/test-strncat-ifunc.c: Likewise.
48770         * string/test-strncmp-ifunc.c: Likewise.
48771         * string/test-strncpy-ifunc.c: Likewise.
48772         * string/test-strnlen-ifunc.c: Likewise.
48773         * string/test-strpbrk-ifunc.c: Likewise.
48774         * string/test-strrchr-ifunc.c: Likewise.
48775         * string/test-strspn-ifunc.c: Likewise.
48776         * string/test-strstr-ifunc.c: Likewise.
48777
48778 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48779
48780         * benchtests/Makefile: Remove ifunc tests.
48781         * benchtests/bench-string.h: Define TEST_IFUNC.
48782         * benchtests/bench-bcopy-ifunc.c: Remove.
48783         * benchtests/bench-bzero-ifunc.c: Likewise.
48784         * benchtests/bench-memccpy-ifunc.c: Likewise.
48785         * benchtests/bench-memchr-ifunc.c: Likewise.
48786         * benchtests/bench-memcmp-ifunc.c: Likewise.
48787         * benchtests/bench-memcpy-ifunc.c: Likewise.
48788         * benchtests/bench-memmem-ifunc.c: Likewise.
48789         * benchtests/bench-memmove-ifunc.c: Likewise.
48790         * benchtests/bench-mempcpy-ifunc.c: Likewise.
48791         * benchtests/bench-memrchr-ifunc.c: Likewise.
48792         * benchtests/bench-memset-ifunc.c: Likewise.
48793         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
48794         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
48795         * benchtests/bench-stpcpy-ifunc.c: Likewise.
48796         * benchtests/bench-stpncpy-ifunc.c: Likewise.
48797         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
48798         * benchtests/bench-strcasestr-ifunc.c: Likewise.
48799         * benchtests/bench-strcat-ifunc.c: Likewise.
48800         * benchtests/bench-strchr-ifunc.c: Likewise.
48801         * benchtests/bench-strchrnul-ifunc.c: Likewise.
48802         * benchtests/bench-strcmp-ifunc.c: Likewise.
48803         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
48804         * benchtests/bench-strcpy-ifunc.c: Likewise.
48805         * benchtests/bench-strcspn-ifunc.c: Likewise.
48806         * benchtests/bench-strlen-ifunc.c: Likewise.
48807         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
48808         * benchtests/bench-strncat-ifunc.c: Likewise.
48809         * benchtests/bench-strncmp-ifunc.c: Likewise.
48810         * benchtests/bench-strncpy-ifunc.c: Likewise.
48811         * benchtests/bench-strnlen-ifunc.c: Likewise.
48812         * benchtests/bench-strpbrk-ifunc.c: Likewise.
48813         * benchtests/bench-strrchr-ifunc.c: Likewise.
48814         * benchtests/bench-strsep-ifunc.c: Likewise.
48815         * benchtests/bench-strspn-ifunc.c: Likewise.
48816         * benchtests/bench-strstr-ifunc.c: Likewise.
48817
48818 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48819
48820         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
48821
48822 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48823
48824         * resolv/netdb.h: Use __glibc_reserved instead __unused.
48825         * rt/aio.h: Likewise.
48826         * sysdeps/gnu/bits/utmp.h: Likewise.
48827         * sysdeps/gnu/bits/utmpx.h: Likewise.
48828         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
48829         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
48830         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
48831         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
48832         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
48833         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
48834         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
48835         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
48836         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
48837         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
48838         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
48839         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
48840         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
48841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
48842         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
48843         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
48844         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
48845         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
48846         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
48847         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
48848         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
48849         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
48850         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
48851         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
48852         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
48853         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
48854         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
48855         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
48856         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
48857         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
48858         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
48859         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
48860         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
48861         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
48862         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
48863         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
48864         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
48865         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
48866         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
48867         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
48868         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
48869         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
48870
48871 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
48872
48873         [BZ #16245]
48874         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
48875         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
48876
48877 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
48878
48879         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
48880         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
48881         Likewise.
48882
48883 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48884
48885         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
48886         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
48887         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
48888         (__fesetround): Remove define.
48889         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
48890         rounding and exceptions handling.
48891         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
48892         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
48893         (__fe_nomask_env): Likewise.
48894         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
48895         __fegetround instead of fegetround.
48896         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
48897         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
48898
48899 2013-11-21  Roland McGrath  <roland@hack.frob.com>
48900
48901         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
48902         it's there.
48903
48904         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
48905
48906 2013-11-21  Meador Inge  <meadori@codesourcery.com>
48907
48908         [BZ #11157]
48909         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
48910         (encrypt_r): Likewise.
48911         * malloc/obstack.h (obstack_free): Likewise.
48912         * posix/unistd.h (encrypt): Likewise.
48913
48914 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
48915
48916         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
48917         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
48918         DL_CALL_DT_FINI() that call the functions directly.
48919         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
48920         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
48921         * elf/dl-fini.c: Likewise.
48922
48923 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
48924
48925         * malloc/hooks.c (memalign_check): Add alignment rounding.
48926         * malloc/malloc.c (_mid_memalign): New function.
48927         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
48928         Implement by calling _mid_memalign.
48929         * manual/probes.texi (Memory Allocation Probes): Remove
48930         memory_valloc_retry and memory_pvalloc_retry.
48931
48932 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
48933
48934         * locale/programs/locarchive.c (open_archive): Add const
48935         qualifier to ARCHIVEFNAME and copy default fname to
48936         DEFAULT_FNAME.
48937
48938         [BZ #15601]
48939         * libio/tst-widetext.input: Rename Oriya to Odia.
48940         * locale/iso-639.def: Likewise.
48941
48942         * manual/probes.texi (Mathematical Function Probes): Add
48943         documentation for sin, cos, asin and acos probes.
48944         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
48945         (__sin32): Add slowasin probe.
48946         (__cos32): Add slowacos probe.
48947         (__mpsin): Add slowsin probe.
48948         (__mpcos): Add slowcos probe.
48949
48950 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
48951
48952         [BZ #15483]
48953         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
48954         thread-local __sim_exceptions_thread and global
48955         __sim_exceptions_global.
48956         (__sim_disabled_exceptions): Change to thread-local
48957         __sim_disabled_exceptions_thread and global
48958         __sim_disabled_exceptions_global.
48959         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48960         and global __sim_round_mode_global.
48961         (__simulate_exceptions): Use thread-local floating-point state and
48962         set global state from it as needed.
48963         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
48964         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
48965         __sim_round_mode_thread.
48966         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
48967         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
48968         and global __sim_exceptions_global.
48969         (__sim_disabled_exceptions): Change to thread-local
48970         __sim_disabled_exceptions_thread and global
48971         __sim_disabled_exceptions_global.
48972         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48973         and global __sim_round_mode_global.
48974         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
48975         (SIM_SET_GLOBAL): Likewise.
48976         * sysdeps/powerpc/soft-fp/sfp-machine.h
48977         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
48978         __sim_round_mode_thread.
48979         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
48980         __sim_disabled_exceptions_thread.
48981         (__sim_exceptions): Change to __sim_exceptions_thread.
48982         (__sim_disabled_exceptions): Change to
48983         __sim_disabled_exceptions_thread.
48984         (__sim_round_mode): Change to __sim_round_mode_thread.
48985         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
48986         thread-local floating-point state and set global state from it as
48987         needed.
48988         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
48989         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
48990         (__sim_disabled_exceptions): Remove extern declaration.
48991         (feenableexcept): Use thread-local floating-point state and set
48992         global state from it as needed.
48993         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
48994         extern declaration.
48995         (__sim_disabled_exceptions): Likewise.
48996         (__sim_round_mode): Likewise.
48997         (__fegetenv): Use thread-local floating-point state.
48998         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
48999         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
49000         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
49001         floating-point state and set global state from it as needed.
49002         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
49003         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
49004         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
49005         Likewise.
49006         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
49007         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
49008         Likewise.
49009         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
49010         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
49011         Use __sim_round_mode_thread.
49012         * math/test-fenv-tls.c: New file.
49013         * math/Makefile (tests): Add test-fenv-tls.
49014         ($(objpfx)test-fenv-tls): Depend on
49015         $(common-objpfx)nptl/libpthread.so.
49016
49017 2013-11-19  Andreas Schwab  <schwab@suse.de>
49018
49019         * locale/programs/locale.c (show_info): Decode wordarray elements.
49020         * locale/categories.def (LC_MONETARY): Add element for
49021         _NL_MONETARY_CRNCYSTR.
49022         * locale/C-monetary.c (conversion_rate): New variable.
49023         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
49024         element.
49025
49026 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
49027
49028         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
49029         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
49030
49031 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
49032
49033         * elf/Makefile (tst-auxv): New test.
49034         * elf/tst-auxv.c: New
49035         * elf/rtld.c (dl_main): Adjust AT_EXECFN
49036
49037 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
49038
49039         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
49040         (hidden_proto): Caller changed.
49041         (hidden_tls_proto): New macro.
49042         (libc_hidden_tls_proto): Likewise.
49043         (rtld_hidden_tls_proto): Likewise.
49044         (libm_hidden_tls_proto): Likewise.
49045         (libresolv_hidden_tls_proto): Likewise.
49046         (librt_hidden_tls_proto): Likewise.
49047         (libdl_hidden_tls_proto): Likewise.
49048         (libnss_files_hidden_tls_proto): Likewise.
49049         (libnsl_hidden_tls_proto): Likewise.
49050         (libnss_nisplus_hidden_tls_proto): Likewise.
49051         (libutil_hidden_tls_proto): Likewise.
49052
49053 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
49054
49055         [BZ #10253]
49056         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
49057         (decompose_rpath): Defer expansion to fillin_rpath.
49058         (_dl_init_paths): Pass linkmap to fillin_rpath.
49059
49060 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
49061
49062         * benchtests/Makefile: Add strsep.
49063         * benchtests/bench-strsep.c: New file: strsep benchtest.
49064         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
49065
49066 2013-11-18  Andreas Schwab  <schwab@suse.de>
49067
49068         * locale/programs/locale.c (show_info) [case byte]: Check for
49069         '\377' instead of '\177'.
49070         * locale/C-monetary.c (not_available): Always use "\377".
49071         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
49072         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
49073         detect unavailable sign_posn locale elements.
49074         * locale/localeconv.c (__localeconv): For grouping and
49075         mon_grouping handle "\177" and "\377" like no grouping.
49076         (INT_ELEM): New macro.  Use it to set all numeric members.
49077         * locale/programs/ld-monetary.c (monetary_read)
49078         <tok_mon_grouping>: Normalize single -1 to the empty string.
49079         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
49080         Likewise.
49081
49082 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
49083
49084         [BZ #16055]
49085         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
49086         when we match (nil).
49087         * stdio-common/tst-sscanf.c (struct test): Add testcase.
49088
49089 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
49090
49091         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
49092         (NO_TEST_INLINE): Update value.
49093         (ERRNO_UNCHANGED): Likewise.
49094         (ERRNO_EDOM): Likewise.
49095         (ERRNO_ERANGE): Likewise.
49096         (IGNORE_RESULT): Likewise.
49097         (check_float_internal): Check signs of NaN results if
49098         TEST_NAN_SIGN used.
49099         (check_complex): Pass TEST_NAN_SIGN flag through to second
49100         check_float_internal call.
49101         (copysign_test_data): Add tests with quiet NaNs as second
49102         argument.  Use TEST_NAN_SIGN.
49103         (fabs_test_data): Add test of negative quiet NaN argument.  Use
49104         TEST_NAN_SIGN.
49105         (signbit_test_data): Add tests of quiet NaN argument.
49106         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
49107
49108         * math/gen-libm-test.pl (show_exceptions): Take extra argument
49109         $ignore_result.
49110         (parse_args): Handle function results specified as IGNORE.
49111         * math/libm-test.inc (IGNORE_RESULT): New macro.
49112         (check_float_internal): Do not check numerical result if flag
49113         IGNORE_RESULT set.
49114         (check_complex): Pass through IGNORE_RESULT to second
49115         check_float_internal call.
49116         (check_int): Do not check numerical result if flag IGNORE_RESULT
49117         set.
49118         (check_long): Likewise.
49119         (check_bool): Likewise.
49120         (check_longlong): Likewise.
49121         (lrint_test_data): Add tests of infinite and NaN arguments.
49122         (lrint_tonearest_test_data): Likewise.
49123         (lrint_towardzero_test_data): Likewise.
49124         (lrint_downward_test_data): Likewise.
49125         (lrint_upward_test_data): Likewise.
49126         (llrint_test_data): Likewise.
49127         (llrint_tonearest_test_data): Likewise.
49128         (llrint_towardzero_test_data): Likewise.
49129         (llrint_downward_test_data): Likewise.
49130         (llrint_upward_test_data): Likewise.
49131         (lround_test_data): Likewise.
49132         (llround_test_data): Likewise.
49133
49134         * math/libm-test.inc (NO_TEST_INLINE): New macro.
49135         (ERRNO_UNCHANGED): Update value.
49136         (ERRNO_EDOM): Likewise.
49137         (ERRNO_ERANGE): Likewise.
49138         (NO_TEST_INLINE_FLOAT): New macro.
49139         (NO_TEST_INLINE_DOUBLE): Likewise.
49140         (enable_test): New function.
49141         (RUN_TEST_f_f): Check enable_test before running test.
49142         (RUN_TEST_2_f): Likewise.
49143         (RUN_TEST_fff_f): Likewise.
49144         (RUN_TEST_c_f): Likewise.
49145         (RUN_TEST_f_f1): Likewise.
49146         (RUN_TEST_fF_f1): Likewise.
49147         (RUN_TEST_fI_f1): Likewise.
49148         (RUN_TEST_ffI_f1): Likewise.
49149         (RUN_TEST_c_c): Likewise.
49150         (RUN_TEST_cc_c): Likewise.
49151         (RUN_TEST_f_i): Likewise.
49152         (RUN_TEST_f_i_tg): Likewise.
49153         (RUN_TEST_ff_i_tg): Likewise.
49154         (RUN_TEST_f_b): Likewise.
49155         (RUN_TEST_f_b_tg): Likewise.
49156         (RUN_TEST_f_l): Likewise.
49157         (RUN_TEST_f_L): Likewise.
49158         (RUN_TEST_fFF_11): Likewise.
49159         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
49160         conditionals.
49161         (cosh_test_data): Likewise.
49162         (exp_test_data): Likewise.
49163         (expm1_test_data): Likewise.
49164         (hypot_test_data): Likewise.
49165         (pow_test_data): Likewise.
49166         (sinh_test_data): Likewise.
49167         (tanh_test_data): Likewise.
49168         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
49169         flags argument.
49170
49171         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
49172         tests with quiet NaN input and output.
49173         (acosh_test_data): Likewise.
49174         (asin_test_data): Likewise.
49175         (asinh_test_data): Likewise.
49176         (atan_test_data): Likewise.
49177         (atanh_test_data): Likewise.
49178         (atan2_test_data): Likewise.
49179         (cbrt_test_data): Likewise.
49180         (cos_test_data): Likewise.
49181         (cosh_test_data): Likewise.
49182         (erf_test_data): Likewise.
49183         (erfc_test_data): Likewise.
49184         (exp_test_data): Likewise.
49185         (exp10_test_data): Likewise.
49186         (exp2_test_data): Likewise.
49187         (expm1_test_data): Likewise.
49188         (hypot_test_data): Likewise.
49189         (j0_test_data): Likewise.
49190         (j1_test_data): Likewise.
49191         (jn_test_data): Likewise.
49192         (lgamma_test_data): Likewise.
49193         (log_test_data): Likewise.
49194         (log10_test_data): Likewise.
49195         (log1p_test_data): Likewise.
49196         (log2_test_data): Likewise.
49197         (pow_test_data): Likewise.
49198         (scalb_test_data): Likewise.
49199         (sin_test_data): Likewise.
49200         (sincos_test_data): Likewise.
49201         (sinh_test_data): Likewise.
49202         (tan_test_data): Likewise.
49203         (tanh_test_data): Likewise.
49204         (tgamma_test_data): Likewise.
49205         (y0_test_data): Likewise.
49206         (y1_test_data): Likewise.
49207         (yn_test_data): Likewise.
49208
49209         [BZ #16167]
49210         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
49211         argument being NaN and avoid computations with second argument in
49212         that case.
49213         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
49214         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
49215         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
49216
49217 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
49218
49219         * locale/iso-639.def: Add Chitwani Tharu (the).
49220
49221 2013-11-14  Andreas Schwab  <schwab@suse.de>
49222
49223         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
49224         word instead of empty string.
49225
49226 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49227
49228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
49229         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
49230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
49231         (__fe_nomask_env): Likewise.
49232
49233 2013-11-13  Steve Ellcey  <sellcey@mips.com>
49234
49235         * benchtests/bench-timing.h: Include time.h.
49236
49237 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
49238
49239         [BZ #15997]
49240         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
49241         to 3.4.0 for x32.
49242         * sysdeps/unix/sysv/linux/configure: Regenerated.
49243
49244 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
49245
49246         [BZ #16151]
49247         * stdlib/strtod_l.c (round_and_return): Do not consider
49248         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
49249         exponent one less than half the least subnormal exponent.
49250         * stdlib/test-strtod-round-data: Add more tests.
49251         * stdlib/tst-strtod-round.c (tests): Regenerated.
49252
49253 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49254
49255         [BZ #14143]
49256         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
49257         (__fe_mask_env): Likewise.
49258         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
49259         libm_hidden_proto and add function prototype.
49260         (__fe_mask_env): Add function prototype.
49261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
49262         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
49263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
49264         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
49265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
49266         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
49267
49268 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49269
49270         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
49271         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
49272
49273 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49274
49275         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
49276         of htab_find_slot().
49277
49278 2013-11-11  David S. Miller  <davem@davemloft.net>
49279
49280         [BZ #16150]
49281         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
49282         symbol in the non-vis3 case in static builds.
49283         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
49284         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
49285         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
49286         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
49287
49288 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
49289
49290         [BZ #387]
49291         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
49292         it is empty.
49293
49294 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49295
49296         * benchtests/Makefile: Add bench-strtod.
49297         * benchtests/bench-strtod.c: New file: strtod benchtest
49298
49299 2013-11-11  Andreas Schwab  <schwab@suse.de>
49300
49301         [BZ #16153]
49302         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
49303         terminating NUL in key length.
49304
49305 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49306
49307         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
49308         Add artificial ODP entry for vDSO symbol for PPC64.
49309         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
49310         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
49311
49312 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
49313
49314         [BZ #15374]
49315         * nss/getent.c (services_keys): Recognize services starting with digit.
49316
49317 2013-11-06  David S. Miller  <davem@davemloft.net>
49318
49319         [BZ #15985]
49320         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
49321         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
49322
49323 2013-11-06  Will Newton  <will.newton@linaro.org>
49324
49325         * manual/memory.texi (Malloc Examples): Remove register
49326         keyword from examples.
49327
49328 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
49329
49330         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
49331
49332 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
49333
49334         [BZ #6981]
49335         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
49336         depending on [__GCC_IEC_559 > 0].
49337         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
49338         depending on [__GCC_IEC_559_COMPLEX > 0].
49339
49340 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
49341
49342         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
49343         to iso-639.def.
49344
49345 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
49346
49347         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
49348
49349 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
49350
49351         [BZ #16112]
49352         * malloc/malloc (malloc_info): Do not handle first bin as
49353         special case.
49354
49355 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
49356
49357         * locale/iso-639.def: Add Central Nahuatl (nhn).
49358
49359 2013-11-01  Bruno Haible  <bruno@clisp.org>
49360
49361         [BZ #7003]
49362         * manual/math.texi (BSD Random): Specify range upper bound as
49363         in POSIX.
49364
49365 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
49366
49367         * locale/iso-639.def: Add Meadow Mari (mhr).
49368
49369 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
49370
49371         [BZ #14752], [BZ #15763]
49372         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
49373         Validate name.
49374         * rt/tst_shm.c: Add test for escaping directory.
49375
49376 2013-10-31  Andreas Schwab  <schwab@suse.de>
49377
49378         [BZ #15917]
49379         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
49380         followed by 'x' as part of digit sequence.
49381         * stdio-common/tst-sscanf.c (double_tests2): New tests.
49382
49383 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
49384
49385         [BZ #16037]
49386         * configure.ac: allow GNU Make 4.0 and greater.
49387         * configure: Regenerated.
49388
49389 2013-10-30  Will Newton  <will.newton@linaro.org>
49390
49391         [BZ #16038]
49392         * malloc/hooks.c (memalign_check): Limit alignment to the
49393         maximum representable power of two.
49394         * malloc/malloc.c (__libc_memalign): Likewise.
49395         * malloc/tst-memalign.c (do_test): Add test for very
49396         large alignment values.
49397         * malloc/tst-posix_memalign.c (do_test): Likewise.
49398
49399 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
49400
49401         [BZ #11087]
49402         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
49403         (munmap_chunk): Likewise.
49404         (mremap_chunk): Likewise.
49405
49406 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
49407
49408         [BZ #15799]
49409         * stdlib/div.c (div): Remove obsolete code.
49410         * stdlib/ldiv.c (ldiv): Likewise.
49411         * stdlib/lldiv.c (lldiv): Likewise.
49412
49413 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49414
49415         [BZ #16071]
49416         * nss/nss_files/files-XXX.c (get_contents_ret): New
49417         enumerator.
49418         (get_contents): New function.
49419         (internal_getent): Use it.  Expand size of LINEBUFLEN.
49420
49421 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
49422
49423         * configure.in: Moved to ...
49424         * configure.ac: ... here. Change reference to configure.in
49425         to configure.ac.
49426         * sysdeps/arm/preconfigure.ac: ... here.
49427         configure.in to configure.ac.
49428         * sysdeps/gnu/configure.in: Moved to ...
49429         * sysdeps/gnu/configure.ac: ... here.
49430         * sysdeps/i386/configure.in: Moved to ...
49431         * sysdeps/i386/configure.ac: ... here.
49432         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
49433         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
49434         * sysdeps/mach/configure.in: Moved to ...
49435         * sysdeps/mach/configure.ac: ... here.
49436         * sysdeps/mach/hurd/configure.in: Moved to ...
49437         * sysdeps/mach/hurd/configure.ac: ... here.
49438         * sysdeps/powerpc/configure.in: Moved to ...
49439         * sysdeps/powerpc/configure.ac: ... here.
49440         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
49441         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
49442         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
49443         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
49444         * sysdeps/s390/s390-32/configure.in: Moved to ...
49445         * sysdeps/s390/s390-32/configure.ac: ... here.
49446         * sysdeps/s390/s390-64/configure.in: Moved to ...
49447         * sysdeps/s390/s390-64/configure.ac: ... here.
49448         * sysdeps/sh/configure.in: Moved to ...
49449         * sysdeps/sh/configure.ac: ... here.
49450         * sysdeps/sparc/configure.in: Moved to ...
49451         * sysdeps/sparc/configure.ac: ... here.
49452         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
49453         * sysdeps/unix/sysv/linux/configure.ac: ... here.
49454         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
49455         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
49456         * sysdeps/x86_64/configure.in: Moved to ...
49457         * sysdeps/x86_64/configure.ac: ... here.
49458         * sysdeps/x86_64/preconfigure.in: Moved to ...
49459         * sysdeps/x86_64/preconfigure.ac: ... here.
49460         * aclocal.m4: Change reference to configure.in to configure.ac.
49461         * config.h.in: Likewise.
49462         * manual/install.texi: Likewise.
49463         * manual/maint.texi: Likewise.
49464         * Makefile: Likewise.
49465         * malloc/Makefile: Likewise.
49466         * nscd/Makefile: Likewise.
49467         * Makeconfig: Change reference to configure.in and
49468         preconfigure.in to configure.ac and preconfigure.ac
49469         respectively.
49470         * INSTALL: Regenerated.
49471         * configure: Likewise.
49472         * sysdeps/gnu/configure: Likewise.
49473         * sysdeps/i386/configure: Likewise.
49474         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
49475         * sysdeps/mach/configure: Likewise.
49476         * sysdeps/mach/hurd/configure: Likewise.
49477         * sysdeps/powerpc/configure: Likewise.
49478         * sysdeps/powerpc/powerpc32/configure: Likewise.
49479         * sysdeps/powerpc/powerpc64/configure: Likewise.
49480         * sysdeps/s390/s390-32/configure: Likewise.
49481         * sysdeps/s390/s390-64/configure: Likewise.
49482         * sysdeps/sh/configure: Likewise.
49483         * sysdeps/sparc/configure: Likewise.
49484         * sysdeps/unix/sysv/linux/configure: Likewise.
49485         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
49486         * sysdeps/x86_64/configure: Likewise.
49487         * sysdeps/x86_64/preconfigure: Likewise.
49488
49489 2013-10-29  Andreas Schwab  <schwab@suse.de>
49490
49491         * stdio-common/Makefile (tst-swscanf-ENV): Define.
49492
49493 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49494
49495         * benchtests/pow-inputs: Add new inputs.
49496
49497         * benchtests/exp-inputs: Add new inputs.
49498
49499         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
49500         conditional check for return value.
49501         (__cos32): Likewise.
49502
49503 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49504
49505         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
49506         to provide a boost for large inputs with word alignment.
49507         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
49508         implementation based on optimized PPC64 strcpy.
49509         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
49510         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
49511         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
49512         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
49513
49514 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
49515
49516         [BZ #2801]
49517         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
49518
49519 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
49520
49521         [BZ #14876]
49522         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
49523         * time/tst-strptime.c (day_tests): Add testcase.
49524
49525 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
49526
49527         [BZ #14029]
49528         * manual/pattern.texi: Acknowledge that fnmatch can fail.
49529
49530 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
49531
49532         [BZ #16074]
49533         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
49534         MAP_FAILED on error.
49535
49536 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
49537
49538         [BZ #16072]
49539         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
49540         heap for large requests.
49541
49542 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
49543
49544         [BZ #9954]
49545         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
49546         result if the result has no associated interface.
49547         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
49548         interface for all 127.X.Y.Z addresses.
49549
49550 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
49551
49552         * locale/iso-639.def: Add Ligurian (lij)
49553
49554 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
49555
49556         [BZ #15825]
49557         * sunrpc/rpc_main.c: Document rpcgen -5.
49558
49559 2013-10-19  Michael Stahl  <mstahl@redhat.com>
49560
49561         * elf/rtld.c (do_preload): Print the reason why preloading failed.
49562
49563 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
49564
49565         [BZ #10278]
49566         * posix/glob.c: Match only directories when trailing slash is present.
49567         * posix/tst-gnuglob.c (my_opendir): Do not open files.
49568         (main): Add testcase.
49569
49570 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
49571
49572         [BZ #15670]
49573         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
49574
49575 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
49576
49577         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
49578         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
49579         AUTH_DES and cindex for FIPS 140-2.
49580         (DES Encryption): Add cindex FIPS 46-3.
49581
49582         * locale/locarchive.h (struct locarhandle): Add fname.
49583         * locale/programs/localedef.c (main): Pass ARGV[remaining]
49584         if an optional argument was specified to --list-archive,
49585         otherwise NULL.
49586         * locale/programs/locarchive.c (show_archive_content): Take new
49587         argument fname and pass it via ah.fname to open_archive.
49588         * locale/programs/localedef.h: Update decl.
49589         (open_archive): If AH->fname is non-null, open that file
49590         rather than the default file name, and don't ignore ENOENT.
49591         (create_archive): Set AH.fname to NULL.
49592         (delete_locales_from_archive): Likewise.
49593         (add_locales_to_archive): Likewise.
49594         * locale/programs/locfile.c (write_all_categories): Likewise.
49595
49596 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
49597             Aldy Hernandez  <aldyh@redhat.com>
49598
49599         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
49600         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
49601         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
49602         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
49603         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
49604         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
49605         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
49606         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
49607         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
49608         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
49609         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
49610         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
49611         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
49612         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
49613         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
49614         Likewise.
49615         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
49616         Likewise.
49617         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
49618         Likewise.
49619         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
49620         Likewise.
49621         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
49622         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
49623         Likewise.
49624         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
49625         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
49626         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
49627         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
49628         Likewise.
49629         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
49630         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
49631         * sysdeps/powerpc/preconfigure: Likewise.
49632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
49633         Likewise.
49634         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
49635         Replace contents of file by #include of <fenv_libc.h>.
49636         * sysdeps/powerpc/soft-fp/sfp-machine.h
49637         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
49638         and <sys/prctl.h>.
49639         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
49640         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
49641         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
49642         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
49643         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
49644         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
49645         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
49646         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
49647         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
49648         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
49649         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
49650         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
49651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
49652         Allow copysignl PLT reference to be missing.
49653
49654 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
49655             Joseph Myers  <joseph@codesourcery.com
49656
49657         [BZ #15948]
49658         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
49659         single character.
49660         (add_to_tablewc): Assert sequence of wide characters is nonempty.
49661
49662 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
49663
49664         * elf/tst-tls-dlinfo.c: Don't include tls.h.
49665         * elf/tst-tls1.c: Likewise.
49666         * elf/tst-tls10.h: Likewise.
49667         * elf/tst-tls14.c: Likewise.
49668         * elf/tst-tls2.c: Likewise.
49669         * elf/tst-tls3.c: Likewise.
49670         * elf/tst-tls4.c: Likewise.
49671         * elf/tst-tls5.c: Likewise.
49672         * elf/tst-tls6.c: Likewise.
49673         * elf/tst-tls7.c: Likewise.
49674         * elf/tst-tls8.c: Likewise.
49675         * elf/tst-tls9.c: Likewise.
49676         * elf/tst-tlsmod1.c: Likewise.
49677         * elf/tst-tlsmod13.c: Likewise.
49678         * elf/tst-tlsmod13a.c: Likewise.
49679         * elf/tst-tlsmod14a.c: Likewise.
49680         * elf/tst-tlsmod16a.c: Likewise.
49681         * elf/tst-tlsmod16b.c: Likewise.
49682         * elf/tst-tlsmod2.c: Likewise.
49683         * elf/tst-tlsmod3.c: Likewise.
49684         * elf/tst-tlsmod4.c: Likewise.
49685         * elf/tst-tlsmod5.c: Likewise.
49686         * elf/tst-tlsmod6.c: Likewise.
49687
49688 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
49689
49690         [BZ #12486]
49691         * malloc/malloc.c: remove checks for statistics.
49692
49693 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
49694
49695         [BZ #15277]
49696         * inet/inet_net.c (inet_network): Detect additional invalid strings.
49697         * inet/tst-network.c: Add testcase.
49698
49699 2013-10-17  Andreas Schwab  <schwab@suse.de>
49700
49701         [BZ #15218]
49702         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
49703         to determine canonical name.
49704
49705 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
49706
49707         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
49708         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
49709         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
49710         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
49711         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
49712         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
49713         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
49714         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
49715         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
49716         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
49717         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
49718         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
49719         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
49720         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
49721         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
49722         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
49723         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
49724         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
49725         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
49726         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
49727         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
49728         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
49729         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
49730         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
49731         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
49732         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
49733         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
49734         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
49735         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
49736         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
49737         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
49738         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
49739         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
49740         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
49741         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
49742         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
49743         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
49744         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
49745         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
49746         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
49747         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
49748         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
49749         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
49750         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
49751         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
49752         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
49753         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
49754         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
49755         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
49756         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
49757         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
49758         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
49759         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
49760         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
49761         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
49762         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
49763         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
49764         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
49765
49766 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
49767
49768         [BZ #16041]
49769         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
49770         make result into a quiet NaN.
49771
49772 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
49773
49774         * soft-fp/adddf3.c: Fix horizontal whitespace.
49775         * soft-fp/addsf3.c: Likewise.
49776         * soft-fp/addtf3.c: Likewise.
49777         * soft-fp/divdf3.c: Likewise.
49778         * soft-fp/divsf3.c: Likewise.
49779         * soft-fp/divtf3.c: Likewise.
49780         * soft-fp/double.h: Likewise.
49781         * soft-fp/eqdf2.c: Likewise.
49782         * soft-fp/eqsf2.c: Likewise.
49783         * soft-fp/eqtf2.c: Likewise.
49784         * soft-fp/extenddftf2.c: Likewise.
49785         * soft-fp/extended.h: Likewise.
49786         * soft-fp/extendsfdf2.c: Likewise.
49787         * soft-fp/extendsftf2.c: Likewise.
49788         * soft-fp/extendxftf2.c: Likewise.
49789         * soft-fp/fixdfdi.c: Likewise.
49790         * soft-fp/fixdfsi.c: Likewise.
49791         * soft-fp/fixdfti.c: Likewise.
49792         * soft-fp/fixsfdi.c: Likewise.
49793         * soft-fp/fixsfsi.c: Likewise.
49794         * soft-fp/fixsfti.c: Likewise.
49795         * soft-fp/fixtfdi.c: Likewise.
49796         * soft-fp/fixtfsi.c: Likewise.
49797         * soft-fp/fixtfti.c: Likewise.
49798         * soft-fp/fixunsdfdi.c: Likewise.
49799         * soft-fp/fixunsdfsi.c: Likewise.
49800         * soft-fp/fixunsdfti.c: Likewise.
49801         * soft-fp/fixunssfdi.c: Likewise.
49802         * soft-fp/fixunssfsi.c: Likewise.
49803         * soft-fp/fixunssfti.c: Likewise.
49804         * soft-fp/fixunstfdi.c: Likewise.
49805         * soft-fp/fixunstfsi.c: Likewise.
49806         * soft-fp/fixunstfti.c: Likewise.
49807         * soft-fp/floatdidf.c: Likewise.
49808         * soft-fp/floatdisf.c: Likewise.
49809         * soft-fp/floatditf.c: Likewise.
49810         * soft-fp/floatsidf.c: Likewise.
49811         * soft-fp/floatsisf.c: Likewise.
49812         * soft-fp/floatsitf.c: Likewise.
49813         * soft-fp/floattidf.c: Likewise.
49814         * soft-fp/floattisf.c: Likewise.
49815         * soft-fp/floattitf.c: Likewise.
49816         * soft-fp/floatundidf.c: Likewise.
49817         * soft-fp/floatundisf.c: Likewise.
49818         * soft-fp/floatunditf.c: Likewise.
49819         * soft-fp/floatunsidf.c: Likewise.
49820         * soft-fp/floatunsisf.c: Likewise.
49821         * soft-fp/floatunsitf.c: Likewise.
49822         * soft-fp/floatuntidf.c: Likewise.
49823         * soft-fp/floatuntisf.c: Likewise.
49824         * soft-fp/floatuntitf.c: Likewise.
49825         * soft-fp/fmadf4.c: Likewise.
49826         * soft-fp/fmasf4.c: Likewise.
49827         * soft-fp/fmatf4.c: Likewise.
49828         * soft-fp/gedf2.c: Likewise.
49829         * soft-fp/gesf2.c: Likewise.
49830         * soft-fp/getf2.c: Likewise.
49831         * soft-fp/ledf2.c: Likewise.
49832         * soft-fp/lesf2.c: Likewise.
49833         * soft-fp/letf2.c: Likewise.
49834         * soft-fp/muldf3.c: Likewise.
49835         * soft-fp/mulsf3.c: Likewise.
49836         * soft-fp/multf3.c: Likewise.
49837         * soft-fp/negdf2.c: Likewise.
49838         * soft-fp/negsf2.c: Likewise.
49839         * soft-fp/negtf2.c: Likewise.
49840         * soft-fp/op-1.h: Likewise.
49841         * soft-fp/op-2.h: Likewise.
49842         * soft-fp/op-4.h: Likewise.
49843         * soft-fp/op-8.h: Likewise.
49844         * soft-fp/op-common.h: Likewise.
49845         * soft-fp/quad.h: Likewise.
49846         * soft-fp/single.h: Likewise.
49847         * soft-fp/soft-fp.h: Likewise.
49848         * soft-fp/sqrtdf2.c: Likewise.
49849         * soft-fp/sqrtsf2.c: Likewise.
49850         * soft-fp/sqrttf2.c: Likewise.
49851         * soft-fp/subdf3.c: Likewise.
49852         * soft-fp/subsf3.c: Likewise.
49853         * soft-fp/subtf3.c: Likewise.
49854         * soft-fp/truncdfsf2.c: Likewise.
49855         * soft-fp/trunctfdf2.c: Likewise.
49856         * soft-fp/trunctfsf2.c: Likewise.
49857         * soft-fp/trunctfxf2.c: Likewise.
49858         * soft-fp/unorddf2.c: Likewise.
49859         * soft-fp/unordsf2.c: Likewise.
49860         * soft-fp/unordtf2.c: Likewise.
49861
49862 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
49863
49864         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
49865         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
49866
49867 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
49868
49869         * elf/dl-libc.c: Clear initfini list after freeing.
49870
49871 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
49872
49873         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
49874         * soft-fp/addsf3.c: Likewise.
49875         * soft-fp/addtf3.c: Likewise.
49876         * soft-fp/divdf3.c: Likewise.
49877         * soft-fp/divsf3.c: Likewise.
49878         * soft-fp/divtf3.c: Likewise.
49879         * soft-fp/double.h: Likewise.
49880         * soft-fp/eqdf2.c: Likewise.
49881         * soft-fp/eqsf2.c: Likewise.
49882         * soft-fp/eqtf2.c: Likewise.
49883         * soft-fp/extenddftf2.c: Likewise.
49884         * soft-fp/extended.h: Likewise.
49885         * soft-fp/extendsfdf2.c: Likewise.
49886         * soft-fp/extendsftf2.c: Likewise.
49887         * soft-fp/extendxftf2.c: Likewise.
49888         * soft-fp/fixdfdi.c: Likewise.
49889         * soft-fp/fixdfsi.c: Likewise.
49890         * soft-fp/fixdfti.c: Likewise.
49891         * soft-fp/fixsfdi.c: Likewise.
49892         * soft-fp/fixsfsi.c: Likewise.
49893         * soft-fp/fixsfti.c: Likewise.
49894         * soft-fp/fixtfdi.c: Likewise.
49895         * soft-fp/fixtfsi.c: Likewise.
49896         * soft-fp/fixtfti.c: Likewise.
49897         * soft-fp/fixunsdfdi.c: Likewise.
49898         * soft-fp/fixunsdfsi.c: Likewise.
49899         * soft-fp/fixunsdfti.c: Likewise.
49900         * soft-fp/fixunssfdi.c: Likewise.
49901         * soft-fp/fixunssfsi.c: Likewise.
49902         * soft-fp/fixunssfti.c: Likewise.
49903         * soft-fp/fixunstfdi.c: Likewise.
49904         * soft-fp/fixunstfsi.c: Likewise.
49905         * soft-fp/fixunstfti.c: Likewise.
49906         * soft-fp/floatdidf.c: Likewise.
49907         * soft-fp/floatdisf.c: Likewise.
49908         * soft-fp/floatditf.c: Likewise.
49909         * soft-fp/floatsidf.c: Likewise.
49910         * soft-fp/floatsisf.c: Likewise.
49911         * soft-fp/floatsitf.c: Likewise.
49912         * soft-fp/floattidf.c: Likewise.
49913         * soft-fp/floattisf.c: Likewise.
49914         * soft-fp/floattitf.c: Likewise.
49915         * soft-fp/floatundidf.c: Likewise.
49916         * soft-fp/floatundisf.c: Likewise.
49917         * soft-fp/floatunsidf.c: Likewise.
49918         * soft-fp/floatunsisf.c: Likewise.
49919         * soft-fp/floatuntidf.c: Likewise.
49920         * soft-fp/floatuntisf.c: Likewise.
49921         * soft-fp/floatuntitf.c: Likewise.
49922         * soft-fp/fmadf4.c: Likewise.
49923         * soft-fp/fmasf4.c: Likewise.
49924         * soft-fp/fmatf4.c: Likewise.
49925         * soft-fp/gedf2.c: Likewise.
49926         * soft-fp/gesf2.c: Likewise.
49927         * soft-fp/getf2.c: Likewise.
49928         * soft-fp/ledf2.c: Likewise.
49929         * soft-fp/lesf2.c: Likewise.
49930         * soft-fp/letf2.c: Likewise.
49931         * soft-fp/muldf3.c: Likewise.
49932         * soft-fp/mulsf3.c: Likewise.
49933         * soft-fp/multf3.c: Likewise.
49934         * soft-fp/negdf2.c: Likewise.
49935         * soft-fp/negsf2.c: Likewise.
49936         * soft-fp/negtf2.c: Likewise.
49937         * soft-fp/op-1.h: Likewise.
49938         * soft-fp/op-2.h: Likewise.
49939         * soft-fp/op-4.h: Likewise.
49940         * soft-fp/op-8.h: Likewise.
49941         * soft-fp/op-common.h: Likewise.
49942         * soft-fp/quad.h: Likewise.
49943         * soft-fp/single.h: Likewise.
49944         * soft-fp/soft-fp.h: Likewise.
49945         * soft-fp/sqrtdf2.c: Likewise.
49946         * soft-fp/sqrtsf2.c: Likewise.
49947         * soft-fp/sqrttf2.c: Likewise.
49948         * soft-fp/subdf3.c: Likewise.
49949         * soft-fp/subsf3.c: Likewise.
49950         * soft-fp/subtf3.c: Likewise.
49951         * soft-fp/truncdfsf2.c: Likewise.
49952         * soft-fp/trunctfdf2.c: Likewise.
49953         * soft-fp/trunctfsf2.c: Likewise.
49954         * soft-fp/trunctfxf2.c: Likewise.
49955         * soft-fp/unorddf2.c: Likewise.
49956         * soft-fp/unordsf2.c: Likewise.
49957         * soft-fp/unordtf2.c: Likewise.
49958
49959 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
49960
49961         [BZ #15672]
49962         * misc/error.c (error_tail): Fix possible buffer overflow.
49963
49964 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
49965
49966         [BZ #13028]
49967         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
49968         address.
49969
49970 2013-10-14  P. J. McDermott  <pj@pehjota.net>
49971
49972         [BZ #832]
49973         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
49974         testing pipefail option.
49975
49976 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49977
49978         * soft-fp/double.h: Indent preprocessor directives inside #if.
49979         * soft-fp/extended.h: Likewise.
49980         * soft-fp/op-2.h: Likewise.
49981         * soft-fp/op-4.h: Likewise.
49982         * soft-fp/op-common.h: Likewise.
49983         * soft-fp/quad.h: Likewise.
49984         * soft-fp/single.h: Likewise.
49985         * soft-fp/soft-fp.h: Likewise.
49986
49987 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
49988
49989         * iconv/iconv_prog.c: Fix typos.
49990         * stdio-common/psiginfo-data.h: Likewise.
49991
49992 2013-10-12   Reuben Thomas <rrt@sc3d.org>
49993
49994         [BZ #15764]
49995         * locale/setlocale.c: Fix typo.
49996
49997 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49998
49999         [BZ #16036]
50000         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
50001         signaling NaN arguments.
50002         * soft-fp/unordsf2.c (__unordsf2): Likewise.
50003         * soft-fp/unordtf2.c (__unordtf2): Likewise.
50004
50005         [BZ #14910]
50006         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
50007         unordered operands.
50008         * soft-fp/gesf2.c (__gesf2): Likewise.
50009         * soft-fp/getf2.c (__getf2): Likewise.
50010         * soft-fp/ledf2.c (__ledf2): Likewise.
50011         * soft-fp/lesf2.c (__lesf2): Likewise.
50012         * soft-fp/letf2.c (__letf2): Likewise.
50013
50014         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
50015         * soft-fp/eqsf2.c (__eqsf2): Likewise.
50016         * soft-fp/eqtf2.c (__eqtf2): Likewise.
50017         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
50018         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
50019         * soft-fp/fixdfti.c (__fixdfti): Likewise.
50020         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
50021         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
50022         * soft-fp/fixsfti.c (__fixsfti): Likewise.
50023         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
50024         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
50025         * soft-fp/fixtfti.c (__fixtfti): Likewise.
50026         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
50027         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
50028         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
50029         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
50030         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
50031         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
50032         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
50033         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
50034         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
50035         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
50036         * soft-fp/floatdisf.c (__floatdisf): Likewise.
50037         * soft-fp/floatsisf.c (__floatsisf): Likewise.
50038         * soft-fp/floattidf.c (__floattidf): Likewise.
50039         * soft-fp/floattisf.c (__floattisf): Likewise.
50040         * soft-fp/floattitf.c (__floattitf): Likewise.
50041         * soft-fp/floatundidf.c (__floatundidf): Likewise.
50042         * soft-fp/floatundisf.c (__floatundisf): Likewise.
50043         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
50044         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
50045         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
50046         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
50047         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
50048         * soft-fp/gesf2.c (__gesf2): Likewise.
50049         * soft-fp/getf2.c (__getf2): Likewise.
50050         * soft-fp/ledf2.c (__ledf2): Likewise.
50051         * soft-fp/lesf2.c (__lesf2): Likewise.
50052         * soft-fp/letf2.c (__letf2): Likewise.
50053
50054         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
50055         Undefine and redefine.
50056         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
50057         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
50058         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
50059         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
50060         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
50061         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
50062         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
50063         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
50064         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
50065         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
50066         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
50067         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
50068         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
50069         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
50070         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
50071
50072         [BZ #16032]
50073         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
50074         without decrementing exponent if mantissa >= that for the
50075         denominator, not >.
50076         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
50077         denominator, not >.  Decrement exponent in < case instead of
50078         incrementing in >= case.
50079         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
50080         without decrementing exponent if mantissa >= that for the
50081         denominator, not >.
50082
50083         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
50084         computing saturated result for unsigned overflow.
50085
50086 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
50087             Jeff Law  <law@redhat.com>
50088
50089         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
50090         (atan2Mp): Add systemtap probe marker.
50091         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
50092         (__ieee754_log): Add systemtap probe marker.
50093         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
50094         (atanMp): Add systemtap probe marker.
50095         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
50096         (tanMp): Add systemtap probe marker.
50097         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
50098         (__slowexp): Add systemtap probe marker.
50099         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
50100         (__slowpow): Add systemtap probe marker.
50101         * manual/probes.texi: Document probes.
50102
50103 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
50104
50105         [BZ #15362]
50106         * libio/fileops.c (_IO_new_file_write): Return count of bytes
50107         written.
50108         (_IO_new_file_xsputn): Don't return EOF if nothing has been
50109         written.
50110         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
50111         written to buffer but not flushed.
50112         * libio/iofwrite_u.c:  Likewise.
50113         * libio/iopadn.c:  Return bytes returned even if EOF was
50114         encountered.
50115         * libio/iowpadn.c:  Likewise.
50116         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
50117         if _IO_padn does not write the whole buffer.
50118         [!COMPILE_WPRINTF] (PAD): Likewise.
50119
50120 2013-10-10  David S. Miller  <davem@davemloft.net>
50121
50122         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
50123         directory block.
50124
50125 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
50126
50127         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
50128         instead of FSF address.
50129         * soft-fp/fixdfti.c: Likewise.
50130         * soft-fp/fixsfti.c: Likewise.
50131         * soft-fp/fixtfti.c: Likewise.
50132         * soft-fp/fixunsdfti.c: Likewise.
50133         * soft-fp/fixunssfti.c: Likewise.
50134         * soft-fp/fixunstfti.c: Likewise.
50135         * soft-fp/floattidf.c: Likewise.
50136         * soft-fp/floattisf.c: Likewise.
50137         * soft-fp/floattitf.c: Likewise.
50138         * soft-fp/floatuntidf.c: Likewise.
50139         * soft-fp/floatuntisf.c: Likewise.
50140         * soft-fp/floatuntitf.c: Likewise.
50141         * soft-fp/trunctfxf2.c: Likewise.
50142
50143         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
50144         * soft-fp/fixdfti.c: Likewise.
50145         * soft-fp/fixsfti.c: Likewise.
50146         * soft-fp/fixtfti.c: Likewise.
50147         * soft-fp/fixunsdfti.c: Likewise.
50148         * soft-fp/fixunssfti.c: Likewise.
50149         * soft-fp/fixunstfti.c: Likewise.
50150         * soft-fp/floattidf.c: Likewise.
50151         * soft-fp/floattisf.c: Likewise.
50152         * soft-fp/floattitf.c: Likewise.
50153         * soft-fp/floatuntidf.c: Likewise.
50154         * soft-fp/floatuntisf.c: Likewise.
50155         * soft-fp/floatuntitf.c: Likewise.
50156         * soft-fp/trunctfxf2.c: Likewise.
50157
50158 2013-10-10  David S. Miller  <davem@davemloft.net>
50159
50160         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50161
50162 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
50163
50164         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
50165         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
50166         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
50167         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
50168         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
50169         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
50170         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
50171
50172         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
50173         for NaNs before doing comparisons on argument.
50174         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
50175         Likewise.
50176
50177 2013-10-10  Will Newton  <will.newton@linaro.org>
50178
50179         * malloc/hooks.c (memalign_check): Ensure the value of bytes
50180         passed to _int_memalign does not overflow.
50181
50182 2013-10-10  Torvald Riegel  <triegel@redhat.com>
50183
50184         * scripts/bench.pl: Add include-sources directive.
50185         * benchtests/README: Update documentation.
50186
50187 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
50188
50189         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
50190         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
50191         instead of FP_INIT_ROUNDMODE.
50192         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
50193         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
50194
50195         [BZ #16034]
50196         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
50197         copy class of input value.
50198         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
50199         not handle exceptions.
50200         * soft-fp/negsf2.c (__negsf2): Likewise.
50201         * soft-fp/negtf2.c (__negtf2): Likewise.
50202         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
50203
50204 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
50205
50206         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
50207         semicolon.  From Linux kernel.
50208
50209 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
50210
50211         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
50212
50213 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
50214
50215         [BZ #156]
50216         * manual/socket.texi: Added statement about buffer
50217         for gethostbyname2_r.
50218
50219 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
50220
50221         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
50222         Use .p2align directive instead, throughout.
50223         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
50224         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
50225         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
50226         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
50227         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
50228         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
50229         * sysdeps/x86_64/strchr.S: Likewise.
50230         * sysdeps/x86_64/strrchr.S: Likewise.
50231
50232 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50233
50234         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
50235
50236         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
50237
50238         * sysdeps/generic/math_private.h (__mpsin1): Remove
50239         declaration.
50240         (__mpcos1): Likewise.
50241         (__mpsin): New argument __range_reduce.
50242         (__mpcos): Likewise.
50243         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
50244         (slow): Use __mpsin and __mpcos.
50245         (slow1): Likewise.
50246         (slow2): Likewise.
50247         (sloww): Likewise.
50248         (sloww1): Likewise.
50249         (sloww2): Likewise.
50250         (bsloww): Likewise.
50251         (bsloww1): Likewise.
50252         (bsloww2): Likewise.
50253         (cslow2): Likewise.
50254         (csloww): Likewise.
50255         (csloww1): Likewise.
50256         (csloww2): Likewise.
50257         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
50258         range_reduce.  Merge in __mpsin1.
50259         (__mpcos): Likewise.
50260         (__mpsin1): Remove.
50261         (__mpcos1): Likewise.
50262
50263 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
50264
50265         * locale/loadlocale.c (_nl_intern_locale_data): Use
50266         LOCFILE_ALIGNED_P.
50267         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
50268         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
50269         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
50270         obstack data is appropriately aligned.
50271         (obstack_int32_grow_fast): Likewise.
50272         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
50273         * locale/programs/locfile.c (add_locale_uint32): Likewise.
50274         (add_locale_uint32_array): Likewise.
50275
50276 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50277
50278         * benchtests/Makefile: Remove ARGLIST and RET variables.
50279         ($(objpfx)bench-%.c): Pass only function name to the script.
50280         * benchtests/README: Update documentation.
50281         * benchtests/acos-inputs: Add new directives.
50282         * benchtests/acosh-inputs: Likewise.
50283         * benchtests/asin-inputs: Likewise.
50284         * benchtests/asinh-inputs: Likewise.
50285         * benchtests/atan-inputs: Likewise.
50286         * benchtests/atanh-inputs: Likewise.
50287         * benchtests/cos-inputs: Likewise.
50288         * benchtests/cosh-inputs: Likewise.
50289         * benchtests/exp-inputs: Likewise.
50290         * benchtests/log-inputs: Likewise.
50291         * benchtests/pow-inputs: Likewise.
50292         * benchtests/rint-inputs: Likewise.
50293         * benchtests/sin-inputs: Likewise.
50294         * benchtests/sinh-inputs: Likewise.
50295         * benchtests/tan-inputs: Likewise.
50296         * benchtests/tanh-inputs: Likewise.
50297         * scripts/bench.pl: Add support for new directives.
50298
50299 2013-10-07  Alan Modra  <amodra@gmail.com>
50300
50301         * README: Fix careless merge.
50302
50303 2013-10-05  Alan Modra  <amodra@gmail.com>
50304
50305         * NEWS: Mention powerpc64le support and bugs fixed.
50306         * README: Both big-endian and little-endian powerpc64 supported.
50307
50308 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
50309
50310         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
50311         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
50312         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
50313         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
50314
50315 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
50316
50317         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
50318         match prototype.
50319
50320 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
50321
50322         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
50323         Move -mhard-float appending from
50324         ports/sysdeps/powerpc/powerpc32/Makefile.
50325         [$(with-fp) = yes] (ASFLAGS): Likewise.
50326         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
50327         * sysdeps/powerpc/nofpu: Move directory from
50328         ports/sysdeps/powerpc/nofpu.
50329         * sysdeps/powerpc/soft-fp: Move directory from
50330         ports/sysdeps/powerpc/soft-fp.
50331         * sysdeps/powerpc/powerpc32/405: Move directory from
50332         ports/sysdeps/powerpc/powerpc32/405.
50333         * sysdeps/powerpc/powerpc32/440: Move directory from
50334         ports/sysdeps/powerpc/powerpc32/440.
50335         * sysdeps/powerpc/powerpc32/464: Move directory from
50336         ports/sysdeps/powerpc/powerpc32/464.
50337         * sysdeps/powerpc/powerpc32/476: Move directory from
50338         ports/sysdeps/powerpc/powerpc32/476.
50339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
50340         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
50341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
50342         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
50343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
50344         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
50345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
50346         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
50347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
50348         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
50349         * README: Update for powerpc-*-linux-gnu software floating point
50350         support in libc.
50351
50352         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
50353         case to powerpc/powerpc32*.
50354         * sysdeps/unix/sysv/linux/configure: Regenerated.
50355
50356         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
50357         (_FPU_MASK_OM): Define as 0x04.
50358         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
50359         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
50360         0x00c10080.
50361         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
50362         0x0000003c.
50363         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
50364
50365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
50366         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
50367         getcontext_e500.
50368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
50369         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
50370         setcontext_e500.
50371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
50372         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
50373         and setcontext_e500.
50374
50375 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
50376
50377         * locale/iso-3166.def: Update iso-1366.def and related occurrences
50378
50379 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
50380
50381         * manual/threads.texi (Default Thread Attributes): Fix typo.
50382
50383 2013-10-04  Will Newton  <will.newton@linaro.org>
50384
50385         * malloc/Makefile: Add tst-memalign.
50386         * malloc/tst-memalign.c: New file.
50387
50388         * malloc/tst-posix_memalign.c: Add comments.
50389         (do_test): Add comments and call free on all potentially
50390         allocated pointers. Add space after cast.
50391
50392         * malloc/tst-pvalloc.c: Add comments.
50393         (do_test): Add comments and call free on all potentially
50394         allocated pointers. Remove duplicate check for NULL pointer.
50395         Add space after cast.
50396
50397         * malloc/tst-valloc.c: Add comments.
50398         (do_test): Add comments and call free on all potentially
50399         allocated pointers. Remove duplicate check for NULL pointer.
50400         Add space after cast.
50401
50402 2013-10-04  Alan Modra  <amodra@gmail.com>
50403
50404         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
50405         Use stdint types in rather than __attribute__((mode())).
50406         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
50407
50408 2013-10-04  Alan Modra  <amodra@gmail.com>
50409
50410         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
50411         Correct handling of unaligned relocs for little-endian.
50412         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
50413
50414 2013-10-04  Alan Modra  <amodra@gmail.com>
50415
50416         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
50417         * configure: Regenerate.
50418         * nptl/shlib-versions: Powerpc*le starts at 2.18.
50419         * shlib-versions: Likewise.
50420
50421 2013-10-04  Alan Modra  <amodra@gmail.com>
50422
50423         * string/tester.c (test_memrchr): Increment reported test cycle.
50424
50425 2013-10-04  Alan Modra  <amodra@gmail.com>
50426
50427         * string/test-memcpy.c (do_one_test): When reporting errors, print
50428         string address and don't overrun end of string.
50429
50430 2013-10-04  Alan Modra  <amodra@gmail.com>
50431
50432         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
50433         insrdi.  Make better use of reg selection to speed exit slightly.
50434         Schedule entry path a little better.  Remove useless "are we done"
50435         checks on entry to main loop.  Handle wrapping around zero address.
50436         Correct main loop count.  Handle single left-over word from main
50437         loop inline rather than by using loop_small.  Remove extra word
50438         case in loop_small caused by wrong loop count.  Add little-endian
50439         support.
50440         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
50441         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
50442         cache hint.
50443         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
50444         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
50445         support.  Avoid rlwimi.
50446         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
50447
50448 2013-10-04  Alan Modra  <amodra@gmail.com>
50449
50450         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
50451         insrdi.  Formatting.
50452         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
50453         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
50454         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
50455         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
50456         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
50457         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
50458
50459 2013-10-04  Alan Modra  <amodra@gmail.com>
50460
50461         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
50462         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
50463         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
50464         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
50465         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
50466         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
50467         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
50468         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
50469         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
50470         use of regs.  Use power7 mtocrf.  Tidy function tails.
50471
50472 2013-10-04  Alan Modra  <amodra@gmail.com>
50473
50474         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
50475         Formatting.  Consistently use rXXX register defines or rN defines.
50476         Use early exit labels that avoid restoring unused non-volatile regs.
50477         Make cr field use more consistent with rWORDn compares.  Rename
50478         regs used as shift registers for unaligned loop, using rN defines
50479         for short lifetime/multiple use regs.
50480         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
50481         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
50482         addi 1,1,64 to pop stack frame.  Simplify return value code.
50483         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
50484
50485 2013-10-04  Alan Modra  <amodra@gmail.com>
50486
50487         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
50488         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
50489         rather than rlwimi.
50490         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
50491         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
50492         little-endian support.  Correct typos.
50493         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
50494         rather than rlwimi.
50495         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
50496         in loop and entry code to keep "and." results.
50497         (strchr): Add little-endian support.  Comment.  Move cntlzd
50498         earlier in tail.
50499         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
50500
50501 2013-10-04  Alan Modra  <amodra@gmail.com>
50502
50503         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
50504         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
50505         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
50506         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
50507
50508 2013-10-04  Alan Modra  <amodra@gmail.com>
50509
50510         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
50511         (rTMP): Define as r11.
50512         (strcmp): Add little-endian support.  Optimise tail.
50513         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
50514         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
50515         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
50516         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
50517         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
50518         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
50519         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
50520
50521 2013-10-04  Alan Modra  <amodra@gmail.com>
50522
50523         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
50524         little-endian support.  Remove unnecessary "are we done" tests.
50525         Handle "s" wrapping around zero and extremely large "size".
50526         Correct main loop count.  Handle single left-over word from main
50527         loop inline rather than by using small_loop.  Correct comments.
50528         Delete "zero" tail, use "end_max" instead.
50529         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
50530
50531 2013-10-04  Alan Modra  <amodra@gmail.com>
50532
50533         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
50534         support.  Don't branch over align.
50535         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
50536         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
50537         support.  Rearrange tmp reg use to suit.  Comment.
50538         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
50539
50540 2013-10-04  Alan Modra  <amodra@gmail.com>
50541
50542         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
50543
50544 2013-10-04  Alan Modra  <amodra@gmail.com>
50545
50546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
50547         conditional form of branch and link when obtaining pc.
50548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
50549
50550 2013-10-04  Alan Modra  <amodra@gmail.com>
50551
50552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
50553         HIWORD/LOWORD.
50554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
50555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
50556
50557 2013-10-04  Alan Modra  <amodra@gmail.com>
50558
50559         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
50560         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
50561         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
50562         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
50563         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
50564         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
50565         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
50566         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
50567         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
50568         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
50569
50570 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
50571             Alistair Popple <alistair@ozlabs.au.ibm.com>
50572             Alan Modra <amodra@gmail.com>
50573
50574         [BZ #15723]
50575         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
50576         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
50577         _dl_hwcap access for little-endian.
50578         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
50579         destroy vmx regs when saving unaligned.
50580         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
50581         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
50582         destroy vmx regs when saving unaligned.
50583
50584 2013-10-04  Alan Modra  <amodra@gmail.com>
50585
50586         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
50587         Don't use a union to pack hi/low value.
50588
50589 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
50590
50591         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
50592         for little-endian.
50593         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
50594         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
50595         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
50596         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
50597         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
50598
50599 2013-10-04  Alan Modra  <amodra@gmail.com>
50600
50601         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
50602         constants to usual value for .cst8 section, and remove redundant
50603         high address load.
50604         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
50605         constant for 0x1p52.  Load little-endian words of double from
50606         correct stack offsets.
50607
50608 2013-10-04  Alan Modra  <amodra@gmail.com>
50609
50610         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
50611         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
50612         words of double from correct stack offsets.
50613         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
50614         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
50615         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
50616         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
50617         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
50618         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
50619         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
50620         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
50621         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
50622         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
50623         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
50624         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
50625         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
50626         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
50627         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
50628         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
50629         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
50630
50631 2013-10-04  Alan Modra  <amodra@gmail.com>
50632
50633         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
50634         64-bit int/double union.
50635         (_FPU_SETCW): Likewise.
50636         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
50637         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
50638
50639 2013-10-04  Alan Modra  <amodra@gmail.com>
50640
50641         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
50642         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
50643
50644 2013-10-04  Alan Modra  <amodra@gmail.com>
50645
50646         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
50647         use vector int constants.
50648         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
50649
50650 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
50651
50652         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
50653         array with long long.
50654         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
50655         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
50656         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
50657         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
50658         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
50659         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
50660         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
50661         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
50662         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
50663         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
50664         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
50665         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
50666         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
50667
50668 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
50669
50670         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
50671         (__signbit): Likewise.  Correct for little-endian.
50672         (__signbitl): Call __signbit.
50673         (lrint): Correct for little-endian.
50674         (lrintf): Call lrint.
50675
50676 2013-10-04  Alan Modra  <amodra@gmail.com>
50677
50678         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
50679         union 32-bit int array member with 64-bit int array.
50680         (t515, tm256): Double rather than long double.
50681         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
50682
50683 2013-10-04  Alan Modra  <amodra@gmail.com>
50684
50685         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
50686         Delete.
50687         (IEEE854_LONG_DOUBLE_BIAS): Delete.
50688         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
50689         version of math_ldbl.h.
50690
50691 2013-10-04  Alan Modra  <amodra@gmail.com>
50692
50693         [BZ #15734], [BZ #15735]
50694         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
50695         all uses of ieee875 long double macros and unions.  Simplify test
50696         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
50697         ldbl_extract_mantissa value for ix,iy exponents.  Properly
50698         normalize after ldbl_extract_mantissa, and don't add hidden bit
50699         already handled.  Don't treat low word of ieee854 mantissa like
50700         low word of IBM long double and mask off bit when testing for
50701         zero.
50702         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
50703         all uses of ieee875 long double macros and unions.  Simplify tests
50704         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
50705         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
50706         two1022, instead use their values.  Recognise that tests for large
50707         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
50708         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
50709         Rewrite all uses of ieee875 long double macros and unions.  Simplify
50710         test for 0.0L and nan.  Correct negation.
50711         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
50712         ieee875 long double macros and unions.  Correct output for large
50713         magnitude x.  Correct absolute value calculation.
50714         (__erfcl): Likewise.
50715         * math/libm-test.inc: Add tests for errors discovered in IBM long
50716         double versions of fmodl, remainderl, erfl and erfcl.
50717
50718 2013-10-04  Alan Modra  <amodra@gmail.com>
50719
50720         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
50721         all uses of ieee854 long double macros and unions.  Simplify tests
50722         for long doubles that are fully specified by the high double.
50723         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
50724         Likewise.
50725         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
50726         Remove dead code too.
50727         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
50728         (__ieee754_ynl): Likewise.
50729         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
50730         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
50731         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
50732         Remove dead code too.
50733         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
50734         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
50735         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
50736         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
50737         Simplify.
50738         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
50739         Simplify.
50740         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
50741         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
50742         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
50743         Comment on variable precision.
50744         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
50745         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
50746         Likewise.
50747         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
50748         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
50749         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
50750         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
50751         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
50752
50753 2013-10-04  Alan Modra  <amodra@gmail.com>
50754
50755         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
50756         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
50757         all uses of ieee854 long double macros and unions.
50758         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
50759         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
50760         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
50761         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
50762         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
50763         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
50764         Likewise.
50765         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
50766         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
50767         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
50768         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
50769         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
50770         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
50771         Simplify sign and nan test too.
50772         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
50773         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
50774         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
50775         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
50776         Likewise.
50777         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
50778         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
50779         Likewise.
50780         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
50781         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
50782         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
50783         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
50784         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
50785         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
50786
50787 2013-10-04  Alan Modra  <amodra@gmail.com>
50788
50789         * stdio-common/printf_size.c (__printf_size): Don't use
50790         union ieee854_long_double in fpnum union.
50791         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
50792         signbit macro to retrieve sign from long double.
50793         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
50794         retrieve sign from long double.
50795         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
50796         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
50797         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
50798         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
50799         * math/test-misc.c (main): Don't use union ieee854_long_double.
50800
50801 2013-10-04  Alan Modra  <amodra@gmail.com>
50802
50803         [BZ #15680]
50804         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
50805         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
50806         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
50807         calculation.  Remove unnecessary test for denormal exponent.
50808         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
50809         Correct handling of denormals.  Avoid undefined shift behaviour.
50810         Correct normalisation of low mantissa when low double is denormal.
50811         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
50812         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
50813         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
50814         Correct normalisation of low mantissa.  Test for overflow of high
50815         mantissa and normalise.
50816         (ldbl_nearbyint): Use more readable constant for two52.
50817         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
50818         (__mpn_construct_long_double): Fix test for overflow of high
50819         mantissa and correct normalisation.  Avoid undefined shift.
50820
50821 2013-10-04  Alan Modra  <amodra@gmail.com>
50822
50823         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
50824         (union ibm_extended_long_double): Define as an array of ieee754_double.
50825         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
50826         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
50827         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
50828         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
50829         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
50830         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
50831         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
50832         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
50833         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
50834         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
50835         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
50836
50837 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
50838
50839         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
50840         page size instead of calling getpagesize.
50841
50842         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
50843         (LOCFILE_ALIGN_MASK): Likewise.
50844         (LOCFILE_ALIGN_UP): Likewise.
50845         (LOCFILE_ALIGNED_P): Likewise.
50846         * locale/programs/ld-collate.c (collate_output): Use the new
50847         macros instead of __alignof__ (int32_t).
50848         * locale/weight.h (findidx): Likewise.
50849
50850 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
50851
50852         [BZ #431]
50853         * manual/string.texi: Fix strncat and wcsncat.
50854
50855 2013-10-03  Brooks Moses  <bmoses@google.com>
50856
50857         [BZ #15915]
50858         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
50859         * Makerules: ...here, and adjust associated comments.
50860
50861 2013-10-02  Will Newton  <will.newton@linaro.org>
50862
50863         * malloc/Makefile: Add tst-pvalloc.
50864         * malloc/tst-pvalloc.c: New file.
50865
50866 2013-10-02  Will Newton  <will.newton@linaro.org>
50867
50868         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
50869         improve test coverage.
50870
50871 2013-10-02  Will Newton  <will.newton@linaro.org>
50872
50873         * malloc/Makefile: Add tst-posix_memalign.
50874         * malloc/tst-posix_memalign.c: New file.
50875
50876 2013-10-01  Eric Blake  <eblake@redhat.com>
50877
50878         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
50879         Use __THROWNL rather than __THROW on static functions.
50880
50881 2013-09-30  Petr Machata  <pmachata@redhat.com>
50882
50883         * elf/elf.h (R_AARCH64_ABS16): New macro.
50884         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
50885         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
50886         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
50887         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
50888         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
50889         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
50890         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
50891         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
50892         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
50893         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
50894         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
50895         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
50896         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
50897         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
50898         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
50899         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
50900         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
50901         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
50902         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
50903         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
50904         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
50905         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
50906         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
50907         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
50908         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
50909         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
50910         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
50911         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
50912         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
50913         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
50914         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
50915         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
50916         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
50917         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
50918         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
50919         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
50920         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
50921         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
50922         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
50923         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
50924         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
50925         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
50926         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
50927         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
50928         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
50929         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
50930         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
50931         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
50932         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
50933         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
50934         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
50935         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
50936         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
50937         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
50938         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
50939         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
50940         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
50941         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
50942         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
50943         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
50944         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
50945         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
50946         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
50947         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
50948         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
50949         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
50950         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
50951         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
50952         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
50953         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
50954         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
50955         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
50956         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
50957         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
50958         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
50959         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
50960         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
50961         (R_AARCH64_TLSDESC_LDR): Likewise.
50962         (R_AARCH64_TLSDESC_ADD): Likewise.
50963         (R_AARCH64_TLSDESC_CALL): Likewise.
50964
50965 2013-09-30  Andreas Schwab  <schwab@suse.de>
50966
50967         [BZ #15048]
50968         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
50969         the nss database lookup.
50970         * nscd/initgrcache.c (addinitgroupsX): Likewise.
50971         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
50972
50973 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
50974
50975         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
50976
50977 2013-09-28  P. J. McDermott  <pj@pehjota.net>
50978
50979         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
50980         ${Bash-specific parameter/pattern/string} parameter expansion.
50981         * sysdeps/unix/make-syscalls.sh: Likewise.
50982
50983 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
50984
50985         * sysdeps/sh/stackguard-macros.h: New file.
50986
50987 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
50988
50989         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
50990         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
50991         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
50992         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
50993         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
50994         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
50995
50996 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50997
50998         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
50999         Fix thread ID register.
51000
51001 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
51002
51003         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
51004         [POSIX || UNIX98]: Require rather than permitting all symbols from
51005         <time.h>.
51006         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
51007         element of struct sched_param.
51008         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
51009         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
51010         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
51011         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
51012         constant.
51013
51014 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
51015
51016         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
51017         argument calculation.
51018
51019 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
51020
51021         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
51022         Expect macro.
51023         [POSIX] (pthread_attr_t): Do not require type.
51024         [POSIX] (pthread_cond_t): Likewise.
51025         [POSIX] (pthread_condattr_t): Likewise.
51026         [POSIX] (pthread_key_t): Likewise.
51027         [POSIX] (pthread_mutex_t): Likewise.
51028         [POSIX] (pthread_mutexattr_t): Likewise.
51029         [POSIX] (pthread_once_t): Likewise.
51030         [POSIX] (pthread_t): Likewise.
51031         [POSIX-based standards] (pthread_atfork): Expect function.
51032
51033 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
51034             Richard Sandiford  <richard@codesourcery.com>
51035
51036         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
51037         (swap_endianness_p): New extern variable.
51038         (set_big_endian): New inline function.
51039         (maybe_swap_uint32): Likewise.
51040         (maybe_swap_uint32_array): Likewise.
51041         (maybe_swap_uint32_obstack): Likewise.
51042         * locale/programs/locfile.c: Include <stdbool.h>.
51043         (swap_endianness_p): New variable.
51044         (add_locale_uint32): Call maybe_swap_uint32.
51045         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
51046         (write_locale_data): Call maybe_swap_uint32_array.
51047         * locale/programs/ld-collate.c (obstack_int32_grow): Call
51048         maybe_swap_uint32.
51049         (obstack_int32_grow_fast): Likewise.
51050         (output_weightwc): Call maybe_swap_uint32_obstack.
51051         (collate_output): Likewise.
51052         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
51053         (OPT_LITTLE_ENDIAN): Likewise.
51054         (options): Add --little-endian and --big-endian options.
51055         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
51056         * locale/programs/locarchive.c: Include "locfile.h".
51057         (GET): New macro.
51058         (SET): Likewise.
51059         (INC): Likewise.
51060         (create_archive): Use the new macros to access fields of
51061         structures directly mapped from or written to locale archives.
51062         (oldlocrecentcmp): Likewise.
51063         (enlarge_archive): Likewise.
51064         (insert_name): Likewise.
51065         (add_alias): Likewise.
51066         (add_locale): Likewise.
51067         (delete_locales_from_archive): Likewise.
51068         (show_archive_content): Likewise.
51069         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
51070         locale data.
51071
51072 2013-09-24  Roland McGrath  <roland@hack.frob.com>
51073
51074         * manual/freemanuals.texi: Updated from (newly) canonical copy at
51075         http://www.gnu.org/doc/freemanuals.texi.
51076         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
51077
51078 2013-09-24  Will Newton  <will.newton@linaro.org>
51079
51080         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
51081         macro.
51082
51083 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
51084
51085         * locale/hashval.h (compute_hashval): Interpret bytes of key as
51086         unsigned char.
51087
51088 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
51089
51090         * manual/threads.texi (POSIX Threads): Fix a typo.
51091
51092 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
51093
51094         [BZ #14547]
51095         * string/tst-strcoll-overflow.c: New test case.
51096         * string/Makefile (xtests): Add tst-strcoll-overflow.
51097         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
51098         cache if string sizes may cause integer overflow.
51099
51100         [BZ #14547]
51101         * string/strcoll_l.c (coll_seq): New members rule, idx,
51102         save_idx and back_us.
51103         (get_next_seq_nocache): New function.
51104         (do_compare_nocache): New function.
51105         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
51106         when malloc fails.
51107
51108 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
51109
51110         [BZ #15754]
51111         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
51112         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
51113         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
51114
51115         [BZ #15754]
51116         * elf/Makefile (tests): Add tst-ptrguard1.
51117         (tests-static): Add tst-ptrguard1-static.
51118         (tst-ptrguard1-ARGS): Define.
51119         (tst-ptrguard1-static-ARGS): Define.
51120         * elf/tst-ptrguard1.c: New file.
51121         * elf/tst-ptrguard1-static.c: New file.
51122         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
51123         * sysdeps/i386/stackguard-macros.h: Likewise.
51124         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
51125         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
51126         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
51127         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
51128         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
51129         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
51130
51131 2013-09-23  Hector Marco  <hecmargi@upv.es>
51132             Ismael Ripoll  <iripoll@disca.upv.es>
51133             Carlos O'Donell  <carlos@redhat.com>
51134
51135         [BZ #15754]
51136         * sysdeps/generic/stackguard-macros.h: Define
51137         __pointer_chk_guard_local and POINTER_CHK_GUARD.
51138         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
51139         Define __pointer_chk_guard_local.
51140         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
51141         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
51142
51143 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
51144
51145         [BZ #15859]
51146         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
51147
51148 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
51149
51150         * include/string.h (__ffs): Declare as hidden.
51151         * string/ffs.c (__ffs): Define as hidden.
51152         * sysdeps/i386/ffs.c (__ffs): Likewise.
51153         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
51154         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
51155         * sysdeps/s390/ffs.c (__ffs): Likewise.
51156         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
51157
51158 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
51159
51160         * NEWS: Mention malloc probes.
51161
51162         * malloc/arena.c (new_heap): New memory_heap_new probe.
51163         (grow_heap): New memory_heap_more probe.
51164         (shrink_heap): New memory_heap_less probe.
51165         (heap_trim): New memory_heap_free probe.
51166         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
51167         (systrim): New memory_sbrk_less probe.
51168         * manual/probes.texi: Document them.
51169
51170         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
51171         * manual/probes.texi: Document it.
51172
51173         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
51174         (__libc_realloc): Add memory_realloc_retry probe.
51175         (__libc_memalign): Add memory_memalign_retry probe.
51176         (__libc_valloc): Add memory_valloc_retry probe.
51177         (__libc_pvalloc): Add memory_pvalloc_retry probe.
51178         (__libc_calloc): Add memory_calloc_retry probe.
51179         * manual/probes.texi: Document them.
51180
51181         * malloc/arena.c (get_free_list): Add probe
51182         memory_arena_reuse_free_list.
51183         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
51184         and memory_arena_reuse.
51185         (arena_get2) [!PER_THREAD]: Likewise.
51186         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
51187         memory_arena_reuse_realloc.
51188         * manual/probes.texi: Document them.
51189
51190         * malloc/malloc.c (__libc_free): Add
51191         memory_mallopt_free_dyn_thresholds probe.
51192         (__libc_mallopt): Add multiple memory_mallopt probes.
51193         * manual/probes.texi: Document them.
51194
51195         * malloc/malloc.c: Include stap-probe.h.
51196         (__libc_mallopt): Add memory_mallopt probe.
51197         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
51198         * manual/probes.texi: New.
51199         * manual/Makefile (chapters): Add probes.
51200         * manual/threads.texi: Set next node.
51201
51202 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
51203
51204         [BZ #15963, #13985]
51205         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
51206         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
51207         Add `Chinese' to `nan' entry name.
51208
51209 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51210
51211         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
51212         (POLYNOMIAL): Likewise.
51213         (TAYLOR_SINCOS): Likewise.
51214         (TAYLOR_SLOW): Likewise.
51215         (__sin): Use TAYLOR_SINCOS.
51216         (__cos): Likewise.
51217         (slow): Use TAYLOR_SLOW.
51218         (sloww): Likewise.
51219         (bsloww): Likewise.
51220         (csloww): Likewise.
51221
51222 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51223
51224         * stdlib/strtod_l.c: Fix buffer overrun.
51225
51226 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51227
51228         * benchtests/Makefile (bench): Add sincos.
51229         * benchtests/bench-sincos.c: New file.
51230
51231         * math/libm-test.inc (cos_test_data): New test inputs.
51232         (sin_test_data): Likewise.
51233
51234         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
51235         macro.
51236         (__sin): Use it.
51237         (__cos): Likewise.
51238         (slow1): Likewise.
51239         (slow2): Likewise.
51240         (sloww1): Likewise.
51241         (sloww2): Likewise.
51242         (bsloww1): Likewise.
51243         (bsloww2): Likewise.
51244         (cslow2): Likewise.
51245         (csloww1): Likewise.
51246         (csloww2): Likewise.
51247
51248         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
51249         function.
51250         (__sin): Use it.
51251         (__cos): Likewise.
51252
51253         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
51254         gotos.
51255         (__cos): Likewise.
51256
51257 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
51258
51259         * config.h.in (HAVE_MIPS_NAN2008): New macro.
51260         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
51261         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
51262         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
51263         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
51264         * elf/cache.c (print_entry): Handle the new cache flags.
51265
51266 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
51267             Aldy Hernandez  <aldyh@redhat.com>
51268
51269         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
51270         Change condition to [_SOFT_FLOAT].
51271         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
51272         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
51273         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
51274         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
51275         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
51276         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
51277         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
51278         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
51279         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
51280         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
51281         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
51282         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
51283         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
51284         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
51285         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
51286         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
51287         declaration.
51288
51289 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
51290
51291         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
51292         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
51293         (__longjmp): Use LOAD_GP to load saved GPRs.
51294         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
51295         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
51296         (__sigsetjmp): Use SAVE_GP to save GPRs.
51297
51298         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
51299         Do not append -msoft-float.
51300         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
51301
51302 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51303
51304         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
51305
51306 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
51307
51308         [BZ #15966]
51309         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
51310         (_FPU_GETCW): Use initial "__" on variable and field names but not
51311         on macro parameter name.
51312         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
51313         parentheses around reference to macro parameter.
51314
51315 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
51316
51317         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
51318         prototype.
51319         (ctype_startup): Use uint32_t in cast and sizeof for
51320         ctype->charnames.
51321
51322 2013-09-11  Jia Liu  <proljc@gmail.com>
51323
51324         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
51325         __daddr_t_defined.
51326         [__FreeBSD__]: Likewise.
51327
51328 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
51329
51330         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
51331         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
51332         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
51333         (strchr): Remove __strchr_sse42 ifunc selection.
51334         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
51335         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
51336
51337 2013-09-11  Will Newton  <will.newton@linaro.org>
51338
51339         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
51340         parameter to RES. Remove hardcoded 1000 value.
51341         * benchtests/bench-skeleton.c (main): Pass RES parameter
51342         to TIMING_INIT and multiply result by 1000.
51343
51344 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51345
51346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51347
51348 2013-09-11  Andreas Schwab  <schwab@suse.de>
51349
51350         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
51351         if not defined.
51352         (O_TMPFILE) [__USE_GNU]: Define.
51353         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
51354         Define.
51355
51356 2013-09-11  Will Newton  <will.newton@linaro.org>
51357
51358         [BZ #15857]
51359         * malloc/malloc.c (__libc_memalign): Check the value of bytes
51360         does not overflow.
51361
51362 2013-09-11  Will Newton  <will.newton@linaro.org>
51363
51364         [BZ #15856]
51365         * malloc/malloc.c (__libc_valloc): Check the value of bytes
51366         does not overflow.
51367
51368 2013-09-11  Will Newton  <will.newton@linaro.org>
51369
51370         [BZ #15855]
51371         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
51372         does not overflow.
51373
51374 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
51375
51376         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
51377         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
51378         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
51379         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
51380         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
51381
51382 2013-09-10  Allan McRae  <allan@archlinux.org>
51383
51384         [BZ #15748]
51385         * manual/arith.texi (Parsing of Floats): Clarify
51386         cross-reference.
51387
51388         [BZ #15849]
51389         * manual/install.texi (Running make install): Mention
51390         --enable-pt-chown.
51391         * INSTALL: Regenerated.
51392
51393 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
51394
51395         * csu/init-first.c (_init): Remove the !SHARED condition around
51396         FPU control word initialization.
51397         * elf/dl-support.c (_dl_fpu_control): New variable.
51398         (_dl_aux_init) <AT_FPUCW>: Initialize it.
51399         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
51400         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
51401         * math/test-fpucw-static.c: New file.
51402         * math/test-fpucw-ieee.c: New file.
51403         * math/test-fpucw-ieee-static.c: New file.
51404         * math/Makefile (tests): Add `test-fpucw-ieee' and
51405         `$(tests-static)'.
51406         (tests-static): New variable.
51407         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
51408         dependency to...
51409         [($(build-shared),yes)]
51410         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
51411         ... this.
51412         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
51413         New dependency.
51414
51415 2013-09-09  Allan McRae  <allan@archlinux.org>
51416
51417         [BZ #15939]
51418         * manual/string.texi (Collation Functions): Fix typo in
51419         strcoll example.
51420         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
51421
51422         [BZ #15893]
51423         * stdlib/isomac.c (get_null_defines): Fix memory leak.
51424
51425         [BZ #15892]
51426         * libio/memstream.c (open_memstream): Fix memory leak.
51427         * libio/wmemstream.c (open_wmemstream): Likewise.
51428
51429         [BZ #15895]
51430         * nscd/netgroupcache.c: Fix nesting of ifdefs.
51431
51432 2013-09-09  Will Newton  <will.newton@linaro.org>
51433
51434         * malloc/Makefile: Add tst-realloc to tests.
51435         * malloc/tst-realloc.c: New file.
51436
51437 2013-09-09  Allan McRae  <allan@archlinux.org>
51438
51439         [BZ #15844]
51440         * COPYING: Update from GNU website to fix FSF address.
51441         * COPYING.LIB: Likewise.
51442
51443 2013-09-06  David S. Miller  <davem@davemloft.net>
51444
51445         * po/zh_TW.po: Update Chinese (traditional) translation from
51446         translation project.
51447
51448 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
51449             Joseph Myers  <joseph@codesourcery.com>
51450
51451         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
51452         "localeinfo.h".
51453         (obstack_chunk_alloc): New macro.
51454         (obstack_chunk_free): Likewise.
51455         (record_offset): New function.
51456         (init_locale_data): Likewise.
51457         (align_locale_data): Likewise.
51458         (add_locale_empty): Likewise.
51459         (add_locale_raw_data): Likewise.
51460         (add_locale_raw_obstack): Likewise.
51461         (add_locale_string): Likewise.
51462         (add_locale_wstring): Likewise.
51463         (add_locale_uint32): Likewise.
51464         (add_locale_uint32_array): Likewise.
51465         (add_locale_char): Likewise.
51466         (start_locale_structure): Likewise.
51467         (end_locale_structure): Likewise.
51468         (start_locale_prelude): Likewise.
51469         (end_locale_prelude): Likewise.
51470         (write_locale_data): Take locale_file structure rather than an
51471         iovec.
51472         * locale/programs/locfile.h: Include "obstack.h".
51473         (struct locale_file): Change to store locale file contents instead
51474         of header.
51475         (init_locale_data): New prototype.
51476         (align_locale_data): Likewise.
51477         (add_locale_empty): Likewise.
51478         (add_locale_raw_data): Likewise.
51479         (add_locale_raw_obstack): Likewise.
51480         (add_locale_string): Likewise.
51481         (add_locale_wstring): Likewise.
51482         (add_locale_uint32): Likewise.
51483         (add_locale_uint32_array): Likewise.
51484         (add_locale_char): Likewise.
51485         (start_locale_structure): Likewise.
51486         (end_locale_structure): Likewise.
51487         (start_locale_prelude): Likewise.
51488         (end_locale_prelude): Likewise.
51489         (write_locale_data): Update prototype.
51490         * locale/programs/3level.h (struct TABLE): Remove result field.
51491         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
51492         Use new locale_file interface.
51493         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
51494         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
51495         * locale/programs/ld-address.c (address_output): Use new
51496         locale_file interface.
51497         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
51498         NO_ADD_LOCALE.
51499         (collate_finish): Don't call collseq_table_finalize.
51500         (collate_output): Use new locale_file interface.
51501         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
51502         in file.
51503         (NO_FINALIZE): Change to NO_ADD_LOCALE.
51504         (TABLE): Move defines earlier in file.
51505         (ELEMENT): Likewise.
51506         (DEFAULT): Likewise.
51507         (wctrans_table_add): Move macro and inline function earlier in
51508         file.
51509         (struct wctype_table): Move type earlier in file.
51510         (add_locale_wctype_table): New static prototype.
51511         (struct locale_ctype_t): Use logical types instead of struct iovec
51512         pointers for members.
51513         (ctype_output): Use new locale_file interface.
51514         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
51515         new locale_file interface.
51516         (allocate_arrays): Update for use of new locale_file interface.
51517         * locale/programs/ld-identification.c (identification_output): Use
51518         new locale_file interface.
51519         * locale/programs/ld-measurement.c (measurement_output): Likewise.
51520         * locale/programs/ld-messages.c (messages_output): Likewise.
51521         * locale/programs/ld-monetary.c (monetary_output): Likewise.
51522         * locale/programs/ld-name.c (name_output): Likewise.
51523         * locale/programs/ld-numeric.c (numeric_output): Likewise.
51524         * locale/programs/ld-paper.c (paper_output): Likewise.
51525         * locale/programs/ld-telephone.c (telephone_output): Likewise.
51526         * locale/programs/ld-time.c (time_output): Likewise.
51527
51528 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51529
51530         * benchtests/Makefile: Add memrchr benchmark.
51531         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
51532         benchmark as memrchr.
51533         * benchtests/bench-memrchr-ifunc.c: New file.
51534         * benchtests/bench-memrchr.c: New file.
51535
51536 2013-09-06   Will Newton  <will.newton@linaro.org>
51537
51538         * benchtests/Makefile (string-bench): Add memcpy.
51539
51540 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
51541             Cong Wang  <amwang@redhat.com>
51542
51543         [BZ #15850]
51544         * sysdeps/unix/sysv/linux/bits/in.h
51545         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
51546         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
51547         before __USE_KERNEL_IPV6_DEFS uses.
51548         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
51549         IPPROTO_BEETPH.
51550         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
51551         sockaddr_in6, or ipv6_mreq.
51552
51553 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51554
51555         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
51556         memory access for final bytes in some large inputs.
51557         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
51558
51559 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51560
51561         * string/test-memrchr.c: New file.
51562         * string/test-memrchr-ifunc.c: New file.
51563         * string/Makefile: Add new memrchr testcase.
51564
51565 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
51566
51567         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
51568         fanotify_init returns EPERM.
51569
51570 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
51571
51572         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
51573         errors.
51574         (top level): Treat second token from macro or constant entries for
51575         allowed headers as allowed.
51576         * include/complex.h: Condition internal declarations on
51577         [!_ISOMAC].
51578         * include/fenv.h: Condition include of <stdbool.h> and internal
51579         declarations on [!_ISOMAC].
51580
51581 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
51582
51583         [BZ #15923]
51584         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
51585
51586 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
51587
51588         * configure.in (--enable-versioning): Remove configure option.
51589         (libc_cv_asm_symver_directive): Remove configure test.
51590         (libc_cv_ld_version_script_option): Likewise.
51591         (VERSIONING): Remove variable and AC_SUBST.
51592         (DO_VERSIONING): Remove AC_DEFINE.
51593         * configure: Regenerated.
51594         * config.h.in (DO_VERSIONING): Remove macro.
51595         * Makerules [$(versioning) = yes]: Change conditionals to
51596         [$(build-shared) = yes].
51597         * config.make.in (versioning): Remove variable.
51598         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
51599         [$(build-shared) = yes].
51600         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
51601         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
51602         * elf/Makefile [$(versioning) = yes]: Change conditionals to
51603         [$(build-shared) = yes].
51604         * extra-lib.mk [$(versioning) = yes]: Likewise.
51605         * hurd/Makefile [$(versioning) = yes]: Likewise.
51606         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
51607         [SHARED].
51608         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
51609         [SHARED].
51610         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
51611         [SHARED && !NO_HIDDEN].
51612         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
51613         [SHARED].
51614         [SHARED && DO_VERSIONING]: Likewise..
51615         * libio/Makefile [$(versioning) = yes]: Change conditionals to
51616         [$(build-shared) = yes].
51617         * manual/install.texi (--disable-versioning): Remove
51618         documentation.
51619         * INSTALL: Regenerated.
51620         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
51621         to [SHARED].
51622         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
51623         [$(build-shared) = yes].
51624         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
51625         * sysdeps/i386/i686/multiarch/strstr-c.c
51626         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
51627         [SHARED && !NO_HIDDEN].
51628         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
51629         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
51630         * sysdeps/powerpc/powerpc32/dl-machine.c
51631         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
51632         * sysdeps/powerpc/powerpc32/sysdep.h
51633         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
51634         to [SHARED && PIC && !NO_HIDDEN].
51635         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
51636         conditional to [SHARED].
51637
51638 2013-09-04   Will Newton  <will.newton@linaro.org>
51639
51640         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
51641         * benchtests/bench-string.h: Include bench-timing.h instead
51642         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
51643         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
51644         call to HP_TIMING_DIFF_INIT.
51645         * benchtests/bench-memccpy.c: Use bench-timing.h macros
51646         instead of hp-timing.h macros.
51647         * benchtests/bench-memchr.c: Likewise.
51648         * benchtests/bench-memcmp.c: Likewise.
51649         * benchtests/bench-memcpy.c: Likewise.
51650         * benchtests/bench-memmem.c: Likewise.
51651         * benchtests/bench-memmove.c: Likewise.
51652         * benchtests/bench-memset.c: Likewise.
51653         * benchtests/bench-rawmemchr.c: Likewise.
51654         * benchtests/bench-strcasecmp.c: Likewise.
51655         * benchtests/bench-strcasestr.c: Likewise.
51656         * benchtests/bench-strcat.c: Likewise.
51657         * benchtests/bench-strchr.c: Likewise.
51658         * benchtests/bench-strcmp.c: Likewise.
51659         * benchtests/bench-strcpy.c: Likewise.
51660         * benchtests/bench-strcpy_chk.c: Likewise.
51661         * benchtests/bench-strlen.c: Likewise.
51662         * benchtests/bench-strncasecmp.c: Likewise.
51663         * benchtests/bench-strncat.c: Likewise.
51664         * benchtests/bench-strncmp.c: Likewise.
51665         * benchtests/bench-strncpy.c: Likewise.
51666         * benchtests/bench-strnlen.c: Likewise.
51667         * benchtests/bench-strpbrk.c: Likewise.
51668         * benchtests/bench-strrchr.c: Likewise.
51669         * benchtests/bench-strspn.c: Likewise.
51670         * benchtests/bench-strstr.c: Likewise.
51671
51672 2013-09-04  Will Newton  <will.newton@linaro.org>
51673
51674         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
51675
51676 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
51677
51678         [BZ #15427]
51679         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
51680         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
51681         * math/libm-test.inc (lgamma_test_data): Add more tests.
51682         * sysdeps/i386/fpu/libm-test-ulps: Update.
51683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51684
51685 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
51686
51687         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
51688         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
51689         Add ifunc.
51690         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
51691         Add strcmp-sse2-unaligned
51692         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
51693
51694 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
51695
51696         * Versions.def (libc): Add GLIBC_2.19.
51697
51698 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
51699
51700         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
51701         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
51702
51703 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
51704
51705         [BZ #14155]
51706         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
51707         intermediate calculations in recurrence.
51708         (__ieee754_ynf): Likewise.
51709         * math/libm-test.inc (jn_test_data): Do not allow spurious
51710         underflow exception.  Add more tests.
51711         (yn_test_data): Add more tests.
51712         * sysdeps/i386/fpu/libm-test-ulps: Update.
51713         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51714
51715 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
51716
51717         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
51718
51719 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
51720
51721         * csu/init-first.c: Fix then/than typos.
51722         * locale/programs/ld-collate.c: Likewise.
51723         * locale/programs/linereader.h: Likewise.
51724         * manual/charset.texi: Likewise.
51725         * manual/filesys.texi: Likewise.
51726         * manual/stdio.texi: Likewise.
51727         * manual/string.texi: Likewise.
51728         * stdlib/fmtmsg.c: Likewise.
51729         * sysdeps/i386/stpncpy.S: Likewise.
51730         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
51731         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
51732         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
51733         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
51734
51735 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
51736
51737         * elf/dl-open.c: Fix typos.
51738         * iconvdata/gbbig5.c: Likewise.
51739         * iconvdata/iso-2022-jp.c: Likewise.
51740         * iconv/gconv_int.h: Likewise.
51741         * iconv/loop.c: Likewise.
51742         * nis/rpcsvc/nis.h: Likewise.
51743         * resolv/ns_name.c: Likewise.
51744         * stdio-common/vfscanf.c: Likewise.
51745         * streams/stropts.h: Likewise.
51746         * sunrpc/rpc_thread.c: Likewise.
51747         * sysdeps/i386/strpbrk.S: Likewise.
51748         * sysdeps/ieee754/k_standard.c: Likewise.
51749         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
51750         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
51751         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
51752         * sysdeps/mach/hurd/profil.c: Likewise.
51753         * sysdeps/s390/dl-procinfo.h: Likewise.
51754         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
51755         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
51756         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
51757         * sysdeps/x86_64/dl-trampoline.S: Likewise.
51758         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
51759
51760 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
51761
51762         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
51763         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
51764
51765 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
51766
51767         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
51768         aix specific files.
51769         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
51770         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
51771         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
51772         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
51773         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
51774         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
51775         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
51776         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
51777
51778 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
51779             Roland McGrath  <roland@hack.frob.com>
51780
51781         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
51782         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
51783
51784 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
51785
51786         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
51787         __executable_start symbol instead of _start.
51788
51789 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
51790
51791         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
51792         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
51793         Move macros to...
51794         * sysdeps/gnu/ldsodefs.h: ... this new file.
51795
51796         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
51797         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
51798         instead of ELFOSABI_LINUX.
51799
51800         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
51801         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
51802         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
51803         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
51804         Likewise.
51805         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
51806         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
51807         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
51808         Likewise.
51809         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
51810         (ibm_extended_long_double): Add ieee_nan member.
51811         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
51812         (do_test): New function.
51813
51814         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
51815         TEST_TRUNC.
51816         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
51817         functions, renamed from truncdfsf_test, trunctfsf_test,
51818         trunctfdf_test.
51819         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
51820         functions.
51821         (do_test): Run all these.
51822
51823 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
51824
51825         * argp/argp-help.c: Fix typos.
51826         * argp/argp-parse.c: Likewise.
51827         * debug/backtracesyms.c: Likewise.
51828         * elf/elf.h: Likewise.
51829         * malloc/malloc.c: Likewise.
51830         * nis/nis_print.c: Likewise.
51831         * resolv/res_comp.c: Likewise.
51832         * stdlib/stdlib.h: Likewise.
51833         * sunrpc/clnt_tcp.c: Likewise.
51834         * sunrpc/clnt_udp.c: Likewise.
51835         * sunrpc/clnt_unix.c: Likewise.
51836         * sysdeps/unix/bsd/ptsname.c: Likewise.
51837         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
51838         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
51839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
51840         Likewise.
51841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
51842         Likewise.
51843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
51844         Likewise.
51845         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
51846
51847 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51848
51849         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
51850         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
51851
51852 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
51853
51854         [BZ #15897]
51855         * dlfcn/Makefile (tests): Add bug-dl-leaf.
51856         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
51857         ($(objpfx)bug-dl-leaf): New rule.
51858         ($(objpfx)bug-dl-leaf.so): Likewise.
51859         ($(objpfx)bug-dl-leaf.out): Likewise.
51860         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
51861         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
51862         * dlfcn/bug-dl-leaf.c: New test.
51863         * dlfcn/bug-dl-leaf-lib.c: Likewise.
51864         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
51865         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
51866         (dlclose): Likewise.
51867         (dlmopen): Likewise.
51868
51869 2013-08-27  Roland McGrath  <roland@hack.frob.com>
51870
51871         * include/netdb.h [!_ISOMAC]:
51872         Don't include <tls.h>.
51873         (h_errno, __libc_h_errno): Move declaration and macros out of
51874         [_LIBC_REENTRANT].
51875
51876         * include/resolv.h [_RESOLV_H_]:
51877         Don't include <tls.h>.
51878         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
51879         * resolv/res_libc.c: Don't include <tls.h>.
51880         (_res): Use __attribute__ ((nocommon)) in place of
51881         __attribute__ ((section (".bss"))).
51882
51883         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
51884         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
51885
51886         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
51887
51888         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
51889         only under [SIOCGIFCONF && SIOCGIFNETMASK].
51890
51891         * resolv/res_mkquery.c: Include <sys/time.h>.
51892
51893         * inet/ifreq.c: Moved to ...
51894         * sysdeps/unix/ifreq.c: ... here.
51895         * inet/ifreq.c: New file, true stub version.
51896
51897         * socket/sa_len.c: New file.
51898         * socket/Makefile (aux): Add it.
51899         * sysdeps/unix/sysv/linux/Makefile
51900         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
51901         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
51902         and #include <socket/sa_len.c>.
51903         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
51904         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
51905
51906         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
51907         * bits/socket.h: ... here.
51908
51909         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
51910         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
51911         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
51912
51913 2013-08-27  Andreas Schwab  <schwab@suse.de>
51914
51915         [BZ #15736]
51916         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
51917         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
51918         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
51919         * string/test-strcasecmp.c (test_main): Run tests in several
51920         locales.
51921         * string/test-strncasecmp.c (test_main): Likewise.
51922
51923         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
51924         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
51925         to __strcasecmp_nonascii and __strncasecmp_nonascii.
51926         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
51927         (__strncasecmp_ssse3) [PIC]: Likewise.
51928
51929 2013-08-26  Roland McGrath  <roland@hack.frob.com>
51930
51931         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
51932
51933         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
51934         instead of explicitly declaring xdecrypt.
51935         * nis/nss_nis/nis-publickey.c: Likewise.
51936
51937 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51938
51939         [BZ #15890]
51940         * nscd/aicache.c: Include res_hconf.h.
51941         (addhstaiX): Initialize res_hconf.
51942
51943 2013-08-26  Andreas Schwab  <schwab@suse.de>
51944
51945         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
51946         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
51947
51948 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51949
51950         * nscd/aicache.c (addhstaiX): Fix indentation.
51951
51952 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
51953
51954         * configure.ac: Quote $build_pt_chown test.
51955         * configure: Regenerated.
51956
51957 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
51958
51959         [BZ #15532]
51960         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
51961         * math/s_cexpf.c (__cexpf): Likewise.
51962         * math/s_cexpl.c (__cexpl): Likewise.
51963         * math/libm-test.inc (cexp_test_data): Correct expected return
51964         value for NaN + i0.  Add another test.
51965
51966 2013-08-22  David S. Miller  <davem@davemloft.net>
51967
51968         * po/ca.po: Update Catalan translation from translation project.
51969         * po/uk.po: Add Ukrainian translations from translation project.
51970
51971 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
51972
51973         [BZ #15797]
51974         * math/s_fdim.c (__fdim): Check for infinite arguments if result
51975         is infinite, not alongside NaN test.
51976         * math/s_fdimf.c (__fdimf): Likewise.
51977         * math/s_fdiml.c (__fdiml): Likewise.
51978         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
51979         errno is unchanged.
51980
51981 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
51982
51983         * argp/argp-help.c: Fix typos.
51984         * crypt/speeds.c: Likewise.
51985         * csu/check_fds.c: Likewise.
51986         * elf/dl-load.c: Likewise.
51987         * elf/dl-open.c: Likewise.
51988         * elf/reldep3.c: Likewise.
51989         * elf/reldep.c: Likewise.
51990         * elf/sprof.c: Likewise.
51991         * iconv/iconv_charmap.c: Likewise.
51992         * iconv/skeleton.c: Likewise.
51993         * iconv/strtab.c: Likewise.
51994         * io/lockf64.c: Likewise.
51995         * libio/libioP.h: Likewise.
51996         * resolv/gai_notify.c: Likewise.
51997         * resolv/ns_name.c: Likewise.
51998         * resolv/ns_samedomain.c: Likewise.
51999         * resolv/res_send.c: Likewise.
52000         * stdlib/random.c: Likewise.
52001         * sunrpc/rpc/xdr.h: Likewise.
52002         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
52003         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
52004         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
52005         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
52006         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
52007         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
52008         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
52009         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
52010         * sysdeps/mach/hurd/check_fds.c: Likewise.
52011         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
52012         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
52013         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52014         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
52015         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
52016         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
52017         * sysdeps/pthread/aio_notify.c: Likewise.
52018         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
52019         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
52020         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
52021         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
52022         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
52023
52024 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
52025
52026         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
52027         version if bit_Slow_SSE4_2 is set.
52028         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
52029         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
52030
52031 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52032
52033         [BZ #15867]
52034         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
52035         trampoline stack frame information.
52036         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
52037         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
52038         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
52039         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
52040         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
52041         * sysdeps/unix/sysv/linux/powerpc/init-first.c
52042         (_libc_vdso_platform_setup): Initialize the signal trampolines.
52043         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
52044         sa_flags value.
52045         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
52046         interrupting a syscall and set with option SA_SIGINFO.
52047
52048 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
52049
52050         [BZ #15531]
52051         * math/s_cproj.c (__cproj): Only return an infinity if one part of
52052         argument is infinite.
52053         * math/s_cprojf.c (__cprojf): Likewise.
52054         * math/s_cprojl.c (__cprojl): Likewise.
52055         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
52056         * math/libm-test.inc (cproj_test_data): Add more tests.
52057
52058         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
52059
52060         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
52061         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
52062         size.  Use __ffs to determine corresponding shift.
52063
52064 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
52065             Roland McGrath  <roland@hack.frob.com>
52066
52067         * Makefile (INSTALL): Remove trailing blank lines from output of
52068         makeinfo.
52069
52070 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52071
52072         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
52073         Align 32 bit compat elf_greg to 8 bytes.
52074
52075 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
52076
52077         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
52078
52079 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
52080
52081         * string/strcoll_l.c (coll_seq): New structure.
52082         (get_next_seq_cached): New function.
52083         (get_next_seq): New function.
52084         (do_compare): New function.
52085         (STRCOLL): Use GNU style definition.  Simplify implementation
52086         by using get_next_seq, get_next_seq_cached and do_compare.
52087
52088 2013-08-16  Florian Weimer  <fweimer@redhat.com>
52089
52090         [BZ #14699]
52091         CVE-2013-4237
52092         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
52093         member.
52094         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
52095         member.
52096         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
52097         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
52098         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
52099         conditional.
52100         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
52101         GETDENTS_64BIT_ALIGNED.
52102         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
52103         * manual/filesys.texi (Reading/Closing Directory): Document
52104         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
52105         strongly.
52106         * manual/conf.texi (Limits for Files): Add portability note to
52107         NAME_MAX, PATH_MAX.
52108         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
52109
52110 2013-08-13  Andreas Schwab  <schwab@suse.de>
52111
52112         [BZ #15749]
52113         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
52114         of fabs.
52115         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
52116         LDBL_MAX_EXP >= 16384]: Add tests for it.
52117
52118 2013-08-12  David S. Miller  <davem@davemloft.net>
52119
52120         * version.h (RELEASE): Set to "development".
52121         (VERSION): Set to "2.18.90".
52122         * NEWS: Add 2.19 section.
52123
52124 2013-08-03  David S. Miller  <davem@davemloft.net>
52125
52126         * po/ko.po: Update Korean translation from translation project.
52127
52128 2013-08-01  David S. Miller  <davem@davemloft.net>
52129
52130         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
52131         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
52132         Bilka.
52133
52134 2013-07-30  David S. Miller  <davem@davemloft.net>
52135
52136         * po/fr.po: Update French translation from translation project.
52137
52138 2013-07-28  David S. Miller  <davem@davemloft.net>
52139
52140         * po/cs.po: Update Czech translation from translation project.
52141
52142         * po/sv.po: Update Swedish translation from translation project.
52143
52144 2013-07-27  David S. Miller  <davem@davemloft.net>
52145
52146         * po/eo.po: Update Esperanto translation from translation project.
52147
52148         * po/vi.po: Update Vietnamese translation from translation project.
52149
52150         * po/de.po: Update German translation from translation project.
52151
52152 2013-07-26  David S. Miller  <davem@davemloft.net>
52153
52154         * po/bg.po: Update Bulgarian translation from translation project.
52155
52156         * po/nl.po: Update Dutch translation from translation project.
52157         * po/pl.po: Update Polish translation from translation project.
52158         * po/ru.po: Update Russian translation from translation project.
52159
52160 2013-07-24  David S. Miller  <davem@davemloft.net>
52161
52162         * po/libc.pot: Update.
52163
52164 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52165
52166         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
52167         variable page size.
52168         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
52169         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
52170         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
52171
52172 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52173
52174         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
52175
52176 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
52177             Andreas Schwab  <schwab@suse.de>
52178             Roland McGrath  <roland@hack.frob.com>
52179             Joseph Myers  <joseph@codesourcery.com>
52180             Carlos O'Donell  <carlos@redhat.com>
52181
52182         [BZ #15755]
52183         * config.h.in: Define HAVE_PT_CHOWN.
52184         * config.make.in (build-pt-chown): New variable.
52185         * configure.in (--enable-pt_chown): New configure option.
52186         * configure: Regenerate.
52187         * login/Makefile: Include Makeconfig.  Build pt_chown only if
52188         build-pt-chown is enabled.
52189         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
52190         pt_chown to fix pty ownership.
52191         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
52192         CLOSE_ALL_FDS.
52193         * manual/install.texi (Configuring and compiling): Mention
52194         --enable-pt_chown. Add @findex for grantpt.
52195         * INSTALL: Regenerate.
52196
52197 2013-07-20  David S. Miller  <davem@davemloft.net>
52198
52199         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
52200         difference between 32-bit and 64-bit.
52201
52202 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
52203
52204         [BZ #15711]
52205         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
52206         Avoid system header dependency with -ffreestanding.
52207         ($(objpfx)bits/syscall%d): Likewise.
52208
52209 2013-07-13  David S. Miller  <davem@davemloft.net>
52210
52211         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
52212         underflows from atanl/atan2l due to bug 15319.
52213         (casinh_test_data): Likewise.
52214
52215 2013-07-07  David S. Miller  <davem@davemloft.net>
52216
52217         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
52218
52219 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
52220
52221         * sysdeps/i386/fpu/libm-test-ulps: Update.
52222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52223
52224 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
52225
52226         * configure.in (--enable-lock-elision): Fix message text.
52227         * INSTALL: Regenerate.
52228         * configure: Regenerate.
52229
52230 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52231
52232         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52233
52234 2013-07-03  Andreas Jaeger  <aj@suse.de>
52235
52236         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
52237         define.
52238         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
52239         (ptrace_peeksiginfo_args): Add.
52240         (__ptrace_peeksiginfo_flags): Add.
52241         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
52242         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
52243         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
52244
52245 2013-07-03  Allan McRae  <allan@archlinux.org>
52246
52247         * sysdeps/i386/fpu/libm-test-ulps: Update.
52248
52249 2013-07-02  David S. Miller  <davem@davemloft.net>
52250
52251         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52252
52253 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
52254
52255         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
52256
52257 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
52258
52259         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
52260         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52261
52262 2013-07-02  Andi Kleen <ak@linux.intel.com>
52263
52264         * config.h.in (ENABLE_LOCK_ELISION): Add.
52265         * configure.in (--enable-lock-elision): Add option.
52266         * manual/install.texi: Document --enable lock elision.
52267         * configure: Regenerate
52268         * INSTALL: Regenerate.
52269
52270 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
52271
52272         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
52273         SSE4.2 strcasecmp for libc.a.
52274         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
52275
52276 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
52277
52278         [BZ #13304]
52279         * soft-fp/op-common.h (_FP_FMA): New macro.
52280         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
52281         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
52282         (_FP_MUL_MEAT_1_imm): ... here.
52283         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
52284         (_FP_MUL_MEAT_1_wide): ... here.
52285         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
52286         (_FP_MUL_MEAT_1_hard): ... here.
52287         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
52288         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
52289         (_FP_MUL_MEAT_2_wide): ... here.
52290         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
52291         (_FP_MUL_MEAT_2_wide_3mul): ... here.
52292         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
52293         (_FP_MUL_MEAT_2_gmp): ... here.
52294         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
52295         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
52296         (_FP_MUL_MEAT_4_wide): ... here.
52297         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
52298         (_FP_MUL_MEAT_4_gmp): ... here.
52299         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
52300         (_FP_WFRACBITS_DW_S): Likewise.
52301         (_FP_WFRACXBITS_DW_S): Likewise.
52302         (_FP_HIGHBIT_DW_S): Likewise.
52303         (FP_FMA_S): Likewise.
52304         (_FP_FRAC_HIGH_DW_S): Likewise.
52305         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
52306         (_FP_WFRACBITS_DW_D): Likewise.
52307         (_FP_WFRACXBITS_DW_D): Likewise.
52308         (_FP_HIGHBIT_DW_D): Likewise.
52309         (FP_FMA_D): Likewise.
52310         (_FP_FRAC_HIGH_DW_D): Likewise.
52311         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
52312         (_FP_WFRACBITS_DW_E): Likewise.
52313         (_FP_WFRACXBITS_DW_E): Likewise.
52314         (_FP_HIGHBIT_DW_E): Likewise.
52315         (FP_FMA_E): Likewise.
52316         (_FP_FRAC_HIGH_DW_E): Likewise.
52317         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
52318         (_FP_WFRACBITS_DW_Q): Likewise.
52319         (_FP_WFRACXBITS_DW_Q): Likewise.
52320         (_FP_HIGHBIT_DW_Q): Likewise.
52321         (FP_FMA_Q): Likewise.
52322         (_FP_FRAC_HIGH_DW_Q): Likewise.
52323         * soft-fp/fmasf4.c: New file.
52324         * soft-fp/fmadf4.c: Likewise.
52325         * soft-fp/fmatf4.c: Likewise.
52326
52327 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
52328
52329         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
52330         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
52331         Silvermont.
52332         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
52333         macro.
52334         (index_Slow_SSE4_2): Likewise.
52335         (index_Prefer_PMINUB_for_stringop): Likewise.
52336         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
52337         bit_Slow_SSE4_2 is set.
52338         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
52339         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
52340
52341 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52342
52343         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
52344         rtld_global._dl_hwcap2.
52345         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
52346         POWER8.
52347         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
52348         POWER8 feature descriptions defined in _dl_hwcap2.
52349         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
52350         string handling for POWER8 feature bits.
52351         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
52352         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
52353         _dl_powerpc_cap_flags.
52354         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
52355         * sysdeps/powerpc/rtld-global-offsets.sym
52356         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
52357         _dl_hwcap2 in the rtld_global_ro structure.
52358
52359 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52360
52361         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
52362         hardware capabilities in support of AT_HWCAP2.
52363         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
52364         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
52365         GLRO(dl_hwcap2).
52366         (_dl_show_auxv): Add support for calling _dl_procinfo to display
52367         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
52368         explicitly the unknown a_type display mechanism is used.
52369         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
52370         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
52371         struct member.
52372         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
52373         to macro prototype for AT_HWCAP2 support.
52374         * sysdeps/i386/dl-procinfo.h: Likewise.
52375         * sysdeps/s390/dl-procinfo.h: Likewise.
52376         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
52377         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
52378         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
52379         return -1 for unknown a_type display fallback.
52380         * sysdeps/sparc/dl-procinfo.h: Likewise.
52381         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
52382         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
52383
52384 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
52385
52386         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
52387         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
52388
52389 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
52390
52391         [BZ #12492]
52392         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
52393         mprotect making __stack_prot writable.
52394
52395 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
52396             Joseph Myers  <joseph@codesourcery.com>
52397
52398         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
52399         as being properly aligned.
52400
52401 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
52402
52403         * dlfcn/modstatic5.c: New file.
52404         * dlfcn/tststatic5.c: New file.
52405         * dlfcn/Makefile (tests): Add tststatic5.
52406         (tests-static): Likewise.
52407         (modules-names): Add modstatic5.
52408         (tststatic5-ENV): New variable.
52409         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
52410
52411         [BZ #15022]
52412         * elf/dl-support.c (_dl_main_map): New variable.
52413         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
52414         (_dl_nns, _dl_load_adds): Set to 1.
52415         (_dl_initial_searchlist): Refer to _dl_main_map.
52416         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
52417         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
52418         call to _dl_get_origin.
52419         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
52420         around call_map.
52421         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
52422         * dlfcn/modstatic3.c: New file.
52423         * dlfcn/tststatic3.c: New file.
52424         * dlfcn/tststatic4.c: New file.
52425         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
52426         (tests-static): Likewise.
52427         (modules-names): Add modstatic3.
52428         (tststatic3-ENV, tststatic4-ENV): New variables.
52429         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
52430         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
52431
52432 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
52433
52434         * configure.in (CC): Require GCC version 4.4 or later.
52435         * configure: Regenerated.
52436         * manual/install.texi (Tools for Compilation): Update GCC version
52437         requirement.
52438         * INSTALL: Regenerated.
52439
52440 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
52441
52442         [BZ #15674]
52443         * string/test-memcmp.c (check2): New.
52444         (main): Call check2.
52445
52446         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
52447
52448 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
52449
52450         [BZ #15022]
52451         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
52452         over to...
52453         (dl_open_worker) [!SHARED]: ... here.
52454
52455 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52456
52457         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
52458
52459 2013-06-25  Richard Henderson  <rth@redhat.com>
52460
52461         * locale/programs/locarchive.c: Include <libc-internal.h>
52462
52463 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
52464
52465         * manual/texinfo.tex: Update to version 2013-06-21.17, with
52466         trailing whitespace removed.
52467
52468 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
52469
52470         [BZ #10283]
52471         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
52472         * locale/programs/locarchive.c: Include libc-mmap.h.
52473         (prepare_address_space): Take two new outputs (the mmap base and len).
52474         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
52475         values.
52476         (create_archive): Declare new mmap base and len values for
52477         prepare_address_space, and store the result in ah.
52478         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
52479         (enlarge_archive): If ah->mmap_base is not NULL, use that and
52480         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
52481         Declare new mmap base and len values for
52482         prepare_address_space, and store the result in new_ah.
52483         (open_archive): Declare new mmap base and len values for
52484         prepare_address_space, and store the result in ah.
52485         (close_archive): If ah->mmap_base is not NULL, use that and
52486         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
52487         * sysdeps/generic/libc-mmap.h: New file.
52488
52489 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
52490
52491         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
52492         (ALIGN_UP): Likewise.
52493         (PTR_ALIGN_DOWN): Likewise.
52494         (PTR_ALIGN_UP): Likewise.
52495
52496 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52497
52498         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
52499         entry mapped to PPC_PLATFORM_POWER8.
52500         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
52501         POWER8.
52502         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
52503         (_dl_string_platform): Add case for exporting platform position for
52504         POWER8.
52505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
52506         search path to sysdeps/powerpc/powerpc32/power8 directory.
52507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
52508         search path to sysdeps/powerpc/powerpc64/power8 directory.
52509         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
52510         power7 directories.
52511         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
52512         power7 directories.
52513
52514 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
52515
52516         * INSTALL: Regenerate.
52517
52518         * nscd/connections.c (nscd_init): Fix comment.
52519
52520 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
52521
52522         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
52523
52524         [BZ #15667]
52525         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
52526         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
52527
52528 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
52529
52530         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
52531         DL_DST_REQ_STATIC.
52532         (DL_DST_REQ_STATIC): Remove macro.
52533
52534 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
52535
52536         [BZ #7006]
52537         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
52538         with a shift of 0 bits.
52539
52540 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
52541
52542         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
52543         $(tststatic-ENV).
52544
52545 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52546
52547         [BZ #15655]
52548         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
52549
52550 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52551
52552         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
52553         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
52554         accepts -fno-tree-loop-distribute-patterns.
52555         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
52556         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
52557         recursive call.
52558         * string/memset.c (memset): Likewise.
52559         * string/test-memmove.c (simple_memmove): Disable loop transformation
52560         to library calls.
52561         * string/test-memset.c (simple_memset): Likewise.
52562         * benchtests/bench-memmove.c (simple_memmove): Likewise.
52563         * benchtests/bench-memset.c (simple_memset): Likewise.
52564         * configure: Regenerated.
52565
52566 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
52567
52568         * math/test-misc.c (main): Ignore fesetround failure when failures
52569         of subsequent rounding tests would be ignored.
52570
52571         [BZ #15654]
52572         * math/fedisblxcpt.c (fedisableexcept): Return 0.
52573         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
52574         * math/fegetenv.c (__fegetenv): Return 0.
52575         * math/fegetexcept.c (fegetexcept): Return 0.
52576         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
52577         FE_TONEAREST.
52578         * math/feholdexcpt.c (feholdexcept): Return 0.
52579         * math/fesetenv.c (__fesetenv): Return 0.
52580         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
52581         argument FE_TONEAREST.
52582         * math/feupdateenv.c (__feupdateenv): Return 0.
52583         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
52584
52585 2013-06-18  Roland McGrath  <roland@hack.frob.com>
52586
52587         * elf/rtld-Rules (rtld-compile-command.S): New variable.
52588         (rtld-compile-command.s, rtld-compile-command.c): New variables.
52589         ($(objpfx)rtld-%.os rules): Use them.
52590
52591 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52592
52593         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
52594         fields.
52595
52596 2013-06-17  Roland McGrath  <roland@hack.frob.com>
52597
52598         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
52599         length of target pattern, then descending length of dependency pattern.
52600         * configure.in (AWK): Require gawk 3.1.2 or newer.
52601         * manual/install.texi (Tools for Compilation): Say that we do.
52602         * configure: Regenerated.
52603
52604         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
52605         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
52606         * scripts/sysd-rules.awk: ... this new script.
52607         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
52608         than a glob-style pattern.
52609
52610 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
52611
52612         * math/test-misc.c (main): Do not treat incorrectly rounded
52613         conversions as failure unless ROUNDING_TESTS passes.
52614
52615 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
52616
52617         [BZ #15631]
52618         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
52619         restore exception state around main square root computation, then
52620         check for inexactness explicitly.
52621
52622         * math/libm-test.inc (fma_test_data): Add another test.
52623
52624 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
52625
52626         * manual/threads.texi (Non-POSIX Extensions): New document
52627         node.  Document pthread_getattr_default_np and
52628         pthread_setattr_default_np.
52629
52630         * Versions.def (libpthread): Add GLIBC_2.18.
52631         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
52632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
52633         Likewise.
52634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
52635         Likewise.
52636         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
52637         Likewise.
52638         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
52639         Likewise.
52640         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
52641         Likewise.
52642         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
52643         Likewise.
52644         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
52645         Likewise.
52646         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
52647         Likewise.
52648         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
52649         Likewise.
52650
52651 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
52652
52653         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
52654         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
52655
52656 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52657             H.J. Lu  <hjl.tools@gmail.com>
52658
52659         [BZ #15627]
52660         * sysdeps/x86_64/rtld-memset.c: Remove file.
52661         * sysdeps/x86_64/rtld-memset.S: New file.
52662
52663 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
52664
52665         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
52666         (test_in_one_mode): Take arguments for whether the rounding mode
52667         is supported for each floating-point type.
52668         (do_test): Pass new arguments to test_in_one_mode using
52669         ROUNDING_TESTS.
52670
52671 2013-06-13  Roland McGrath  <roland@hack.frob.com>
52672
52673         * posix/tst-waitid.c (do_test): Distinguish different instances of
52674         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
52675         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
52676         before entering the kernel for waitpid.
52677
52678 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52679
52680         * NEWS: Fix note on clock function precision.  Text by Roland
52681         McGrath.
52682
52683 2013-06-13  Roland McGrath  <roland@hack.frob.com>
52684
52685         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
52686         it into place only when and if the sanity check passes.
52687
52688 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
52689
52690         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
52691         output for whether conversion result is exact.  Take argument
52692         indicating whether type is IBM long double.
52693         (round_for_all): Change need_exact field to ibm_ld.
52694         * stdlib/tst-strtod-round.c (struct exactness): New type.
52695         (struct test): Change bool ld_ok field to struct exactness exact.
52696         (TEST): Update all definitions for change to field.
52697         (tests): Regenerate array contents.
52698         (test_in_one_mode): Take pointer to new field instead of old ld_ok
52699         field value.  Check for IBM long double here.
52700         (do_test): Update calls to test_in_one_mode.
52701
52702 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52703
52704         [BZ #12515]
52705         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
52706         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
52707
52708 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52709
52710         [BZ #15605]
52711         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
52712         generated by the compiler on loop optimizations.
52713         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
52714         general definitions.
52715
52716 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
52717
52718         * math/bug-nextafter.c: Include <math-tests.h>.
52719         (main): Only test for exceptions if EXCEPTION_TESTS is true for
52720         the relevant type.
52721         * math/bug-nexttoward.c: Include <math-tests.h>.
52722         (main): Only test for exceptions if EXCEPTION_TESTS is true for
52723         the relevant type.
52724         * math/test-misc.c: Include <math-tests.h>.
52725         (main): Only test for exceptions if EXCEPTION_TESTS is true for
52726         the relevant type.
52727
52728 2013-06-12  Andreas Jaeger  <aj@suse.de>
52729
52730         * po/ia.po: Update Interlingua translation from translation
52731         project.
52732
52733 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
52734
52735         * include/fenv.h: Include stdbool.h.
52736         (struct rm_ctx): New structure.
52737         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
52738         Define macro.
52739         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
52740         (SET_RESTORE_ROUNDF): Likewise.
52741         (SET_RESTORE_ROUNDL): Likewise.
52742         (SET_RESTORE_ROUND_NOEX): Likewise.
52743         (SET_RESTORE_ROUND_NOEXF): Likewise.
52744         (SET_RESTORE_ROUND_NOEXL): Likewise.
52745         (SET_RESTORE_ROUND_53BIT): Likewise.
52746         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
52747         (libc_feresetround_noexf_ctx): Likewise.
52748         (libc_feresetround_noexl_ctx): Likewise.
52749         (libc_feholdsetround_53bit_ctx): Likewise.
52750         (libc_feresetround_53bit_ctx): Likewise.
52751         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
52752         (libc_feholdexcept_setround_sse_ctx): New function.
52753         (libc_fesetenv_sse_ctx): Likewise.
52754         (libc_feupdateenv_sse_ctx): Likewise.
52755         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
52756         (libc_feholdexcept_setround_387_ctx): Likewise.
52757         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
52758         (libc_feholdsetround_387_prec_ctx): Likewise.
52759         (libc_feholdsetround_387_ctx): Likewise.
52760         (libc_feholdsetround_387_53bit_ctx): Likewise.
52761         (libc_feholdsetround_sse_ctx): Likewise.
52762         (libc_feresetround_sse_ctx): Likewise.
52763         (libc_feresetround_387_ctx): Likewise.
52764         (libc_feupdateenv_387_ctx): Likewise.
52765         (libc_feholdexcept_setroundf_ctx): Define macro.
52766         (libc_fesetenvf_ctx): Likewise.
52767         (libc_feupdateenvf_ctx): Likewise.
52768         (libc_feholdsetroundf_ctx): Likewise.
52769         (libc_feresetroundf_ctx): Likewise.
52770         (libc_feholdexcept_setround_ctx): Likewise.
52771         (libc_fesetenv_ctx): Likewise.
52772         (libc_feupdateenv_ctx): Likewise.
52773         (libc_feholdsetround_ctx): Likewise.
52774         (libc_feresetround_ctx): Likewise.
52775         (libc_feholdexcept_setroundl_ctx): Likewise.
52776         (libc_feupdateenvl_ctx): Likewise.
52777         (libc_feholdsetroundl_ctx): Likewise.
52778         (libc_feresetroundl_ctx): Likewise.
52779         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
52780         (libc_feresetround_53bit_ctx): Likewise.
52781
52782 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52783
52784         * locale/iso-639.def: Convert to UTF-8.
52785
52786 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
52787
52788         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
52789         (EXCEPTION_TESTS_double): Likewise.
52790         (EXCEPTION_TESTS_long_double): Likewise.
52791         (EXCEPTION_TESTS): Likewise.
52792         * math/libm-test.inc (test_exceptions): Only test exceptions if
52793         EXCEPTION_TESTS (FLOAT).
52794
52795 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52796
52797         * benchtests/Makefile (string-bench): Add strcpy_chk and
52798         stpcpy_chk.
52799         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
52800         * benchtests/bench-stpcpy_chk.c: New file.
52801         * benchtests/bench-strcpy_chk-ifunc.c: New file.
52802         * benchtests/bench-strcpy_chk.c: New file.
52803         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
52804         code.
52805         (do_test): Likewise.
52806
52807 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52808
52809         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
52810         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
52811         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
52812         with tabs where appropriate.
52813         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
52814         dl-procinfo.h.
52815         [PPC_PLATFORM_PPC440]: Likewise.
52816         [PPC_PLATFORM_PPC464]: Likewise.
52817         [PPC_PLATFORM_PPC476]: Likewise.
52818         (_dl_string_platform): Add support for detecting ppc405, ppc440,
52819         ppc464, and ppc476 platform strings merging from ports/
52820         dl-procinfo.h.
52821
52822 2013-06-11  Andreas Schwab  <schwab@suse.de>
52823
52824         [BZ #14991]
52825         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
52826         (from_ucs4_idx): Regenerate.
52827         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
52828         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
52829         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
52830         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
52831         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
52832         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
52833         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
52834         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
52835         from FROM_LOOP and TO_LOOP specific macros.
52836         (BODY): Handle combining characters.
52837         * iconvdata/BIG5HKSCS.irreversible: Update.
52838         * iconvdata/BIG5HKSCS.precomposed: New file.
52839         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
52840         characters.
52841         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
52842
52843 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52844
52845         * include/sys/time.h: Fix indentation and add copyright header.
52846
52847         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
52848         (do_test): Likewise.
52849         * string/test-memchr.c (do_one_test): Likewise.
52850         (do_test): Likewise.
52851         * string/test-memcmp.c (do_one_test): Likewise.
52852         (do_test): Likewise.
52853         * string/test-memcpy.c (do_one_test): Likewise.
52854         (do_test): Likewise.
52855         * string/test-memmem.c (do_one_test): Likewise.
52856         (do_test): Likewise.
52857         (do_random_tests): Likewise.
52858         * string/test-memmove.c (do_one_test): Likewise.
52859         (do_test): Likewise.
52860         * string/test-memset.c (do_one_test): Likewise.
52861         (do_test): Likewise.
52862         * string/test-rawmemchr.c (do_one_test): Likewise.
52863         (do_test): Likewise.
52864         * string/test-strcasecmp.c (do_one_test): Likewise.
52865         (do_test): Likewise.
52866         * string/test-strcasestr.c (do_one_test): Likewise.
52867         (do_test): Likewise.
52868         * string/test-strcat.c (do_one_test): Likewise.
52869         (do_test): Likewise.
52870         * string/test-strchr.c (do_one_test): Likewise.
52871         (do_test): Likewise.
52872         * string/test-strcmp.c (do_one_test): Likewise.
52873         (do_test): Likewise.
52874         * string/test-strcpy.c (do_one_test): Likewise.
52875         (do_test): Likewise.
52876         * string/test-string.h: Likewise.
52877         (test_init): Likewise.
52878         * string/test-strlen.c (do_one_test): Likewise.
52879         (do_test): Likewise.
52880         * string/test-strncasecmp.c (do_one_test): Likewise.
52881         (do_test): Likewise.
52882         * string/test-strncat.c (do_one_test): Likewise.
52883         (do_test): Likewise.
52884         * string/test-strncmp.c (do_one_test): Likewise.
52885         (do_test_limit): Likewise.
52886         (do_test): Likewise.
52887         * string/test-strncpy.c (do_one_test): Likewise.
52888         (do_test): Likewise.
52889         * string/test-strnlen.c (do_one_test): Likewise.
52890         (do_test): Likewise.
52891         * string/test-strpbrk.c (do_one_test): Likewise.
52892         (do_test): Likewise.
52893         * string/test-strrchr.c (do_one_test): Likewise.
52894         (do_test): Likewise.
52895         * string/test-strspn.c (do_one_test): Likewise.
52896         (do_test): Likewise.
52897         * string/test-strstr.c (do_one_test): Likewise.
52898         (do_test): Likewise.
52899
52900         * benchtests/Makefile (string-bench): Add string benchmarks.
52901         * benchtests/bench-bcopy-ifunc.c: New file.
52902         * benchtests/bench-bcopy.c: New file.
52903         * benchtests/bench-bzero-ifunc.c: New file.
52904         * benchtests/bench-bzero.c: New file.
52905         * benchtests/bench-memccpy-ifunc.c: New file.
52906         * benchtests/bench-memccpy.c: New file.
52907         * benchtests/bench-memchr-ifunc.c: New file.
52908         * benchtests/bench-memchr.c: New file.
52909         * benchtests/bench-memcmp-ifunc.c: New file.
52910         * benchtests/bench-memcmp.c: New file.
52911         * benchtests/bench-memmem-ifunc.c: New file.
52912         * benchtests/bench-memmem.c: New file.
52913         * benchtests/bench-memmove-ifunc.c: New file.
52914         * benchtests/bench-memmove.c: New file.
52915         * benchtests/bench-mempcpy-ifunc.c: New file.
52916         * benchtests/bench-mempcpy.c: New file.
52917         * benchtests/bench-memset-ifunc.c: New file.
52918         * benchtests/bench-memset.c: New file.
52919         * benchtests/bench-rawmemchr-ifunc.c: New file.
52920         * benchtests/bench-rawmemchr.c: New file.
52921         * benchtests/bench-stpcpy-ifunc.c: New file.
52922         * benchtests/bench-stpcpy.c: New file.
52923         * benchtests/bench-stpncpy-ifunc.c: New file.
52924         * benchtests/bench-stpncpy.c: New file.
52925         * benchtests/bench-strcasecmp-ifunc.c: New file.
52926         * benchtests/bench-strcasecmp.c: New file.
52927         * benchtests/bench-strcasestr-ifunc.c: New file.
52928         * benchtests/bench-strcasestr.c: New file.
52929         * benchtests/bench-strcat-ifunc.c: New file.
52930         * benchtests/bench-strcat.c: New file.
52931         * benchtests/bench-strchr-ifunc.c: New file.
52932         * benchtests/bench-strchr.c: New file.
52933         * benchtests/bench-strchrnul-ifunc.c: New file.
52934         * benchtests/bench-strchrnul.c: New file.
52935         * benchtests/bench-strcmp-ifunc.c: New file.
52936         * benchtests/bench-strcmp.c: New file.
52937         * benchtests/bench-strcpy-ifunc.c: New file.
52938         * benchtests/bench-strcpy.c: New file.
52939         * benchtests/bench-strcspn-ifunc.c: New file.
52940         * benchtests/bench-strcspn.c: New file.
52941         * benchtests/bench-strlen-ifunc.c: New file.
52942         * benchtests/bench-strlen.c: New file.
52943         * benchtests/bench-strncasecmp-ifunc.c: New file.
52944         * benchtests/bench-strncasecmp.c: New file.
52945         * benchtests/bench-strncat-ifunc.c: New file.
52946         * benchtests/bench-strncat.c: New file.
52947         * benchtests/bench-strncmp-ifunc.c: New file.
52948         * benchtests/bench-strncmp.c: New file.
52949         * benchtests/bench-strncpy-ifunc.c: New file.
52950         * benchtests/bench-strncpy.c: New file.
52951         * benchtests/bench-strnlen-ifunc.c: New file.
52952         * benchtests/bench-strnlen.c: New file.
52953         * benchtests/bench-strpbrk-ifunc.c: New file.
52954         * benchtests/bench-strpbrk.c: New file.
52955         * benchtests/bench-strrchr-ifunc.c: New file.
52956         * benchtests/bench-strrchr.c: New file.
52957         * benchtests/bench-strspn-ifunc.c: New file.
52958         * benchtests/bench-strspn.c: New file.
52959         * benchtests/bench-strstr-ifunc.c: New file.
52960         * benchtests/bench-strstr.c: New file.
52961
52962         * benchtests/Makefile: Disable parallel execution of targets.
52963         (string-bench): Add memcpy.
52964         (benchset): New variable to store a list of benchmark sets.
52965         (bench-func): Renamed from bench.
52966         (bench-set): New target.
52967         (bench): Depend on bench-func and bench-set.
52968         * benchtests/README: Add section on benchmark sets.
52969         * benchtests/bench-memcpy-ifunc.c: New file.
52970         * benchtests/bench-memcpy.c: New file.
52971         * benchtests/bench-string.h: New file.
52972
52973 2013-06-11  Andreas Schwab  <schwab@suse.de>
52974
52975         [BZ #15577]
52976         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
52977         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
52978         values in the triple.
52979         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
52980         terminator in the group key.
52981
52982 2013-06-11  Andreas Jaeger  <aj@suse.de>
52983
52984         * po/zh_TW.po: Update Chinese (traditional) translation from
52985         translation project.
52986
52987 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52988
52989         * include/time.h (__clock_gettime): Add libc_hidden_proto.
52990         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
52991         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
52992         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
52993         (clock_getcpuclockid): Likewise.
52994         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
52995         Add weak_alias and libc_hidden_def.
52996         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
52997         * rt/clock_gettime.c (clock_gettime): Rename to
52998         __clock_gettime.  Add weak_alias and libc_hidden_def.
52999         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
53000         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
53001         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
53002         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
53003         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
53004         Likewise.
53005         * rt/clock_settime.c (clock_settime): Rename to
53006         __clock_settime.  Add weak_alias and libc_hidden_def.
53007         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
53008
53009 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
53010
53011         * mach/err_boot.sub: Remove trailing whitespace.
53012         * mach/err_ipc.sub: Likewise.
53013         * mach/err_mach.sub: Likewise.
53014
53015         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
53016         (ROUNDING_TESTS_double): Likewise.
53017         (ROUNDING_TESTS_long_double): Likewise.
53018         (ROUNDING_TESTS): Likewise.
53019         * math/libm-test.inc: Include <math-tests.h>.
53020         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
53021         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
53022         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
53023         (IF_ROUND_INIT_FE_UPWARD): Likewise.
53024
53025 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53026
53027         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
53028         of assigning.
53029
53030 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
53031
53032         * sysdeps/gnu/errlist.awk: Do not generate space at end of
53033         otherwise empty TRANS lines.
53034         * sysdeps/gnu/errlist.c: Regenerated.
53035
53036         * catgets/gencat.c (error_print): Use (void) in function
53037         definition.
53038         * crypt/crypt_util.c (__init_des): Likewise.
53039         * crypt/speeds.c (Stop): Likewise.
53040         (main): Likewise.
53041         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
53042         * inet/ruserpass.c (token): Likewise.
53043         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
53044         * intl/localealias.c (extend_alias_table): Likewise.
53045         * intl/plural-exp.c (init_germanic_plural): Likewise.
53046         * libio/fcloseall.c (__fcloseall): Likewise.
53047         * libio/genops.c (_IO_flush_all): Likewise.
53048         (_IO_flush_all_linebuffered): Likewise.
53049         (_IO_cleanup): Likewise.
53050         (_IO_iter_begin): Likewise.
53051         (_IO_iter_end): Likewise.
53052         (_IO_list_lock): Likewise.
53053         (_IO_list_unlock): Likewise.
53054         (_IO_list_resetlock): Likewise.
53055         * libio/getchar.c (getchar): Likewise.
53056         * libio/getchar_u.c (getchar_unlocked): Likewise.
53057         * libio/getwchar.c (getwchar): Likewise.
53058         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
53059         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
53060         * login/getpt.c (__getpt): Likewise.
53061         * login/tst-utmp.c (main): Likewise.
53062         * malloc/hooks.c (__malloc_check_init): Likewise.
53063         * malloc/malloc.c (__malloc_stats): Likewise.
53064         * malloc/mtrace.c (tr_break): Likewise.
53065         (mtrace): Likewise.
53066         (muntrace): Likewise.
53067         * misc/fstab.c (endfsent): Likewise.
53068         * misc/getclktck.c (__getclktck): Likewise.
53069         * misc/getdtsz.c (__getdtablesize): Likewise.
53070         * misc/gethostid.c (gethostid): Likewise.
53071         * misc/getpagesize.c (__getpagesize): Likewise.
53072         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
53073         (__get_nprocs): Likewise.
53074         (__get_phys_pages): Likewise.
53075         (__get_avphys_pages): Likewise.
53076         * misc/getttyent.c (getttyent): Likewise.
53077         (setttyent): Likewise.
53078         (endttyent): Likewise.
53079         * misc/getusershell.c (getusershell): Likewise.
53080         (endusershell): Likewise.
53081         (setusershell): Likewise.
53082         (initshells): Likewise.
53083         * misc/hsearch.c (__hdestroy): Likewise.
53084         * misc/sync.c (sync): Likewise.
53085         * misc/syslog.c (closelog_internal): Likewise.
53086         (closelog): Likewise.
53087         * misc/ttyslot.c (ttyslot): Likewise.
53088         * misc/vhangup.c (vhangup): Likewise.
53089         * posix/fork.c (__fork): Likewise.
53090         * posix/getegid.c (__getegid): Likewise.
53091         * posix/geteuid.c (__geteuid): Likewise.
53092         * posix/getgid.c (__getgid): Likewise.
53093         * posix/getpid.c (__getpid): Likewise.
53094         * posix/getppid.c (__getppid): Likewise.
53095         * posix/getuid.c (__getuid): Likewise.
53096         * posix/pause.c (pause): Likewise.
53097         * posix/setpgrp.c (setpgrp): Likewise.
53098         * posix/setsid.c (__setsid): Likewise.
53099         * posix/test-vfork.c (noop): Likewise.
53100         * resolv/gethnamaddr.c (_endhtent): Likewise.
53101         (_gethtent): Likewise.
53102         (ht_endhostent): Likewise.
53103         (gethostent): Likewise.
53104         (dns_service): Likewise.
53105         * stdlib/drand48.c (drand48): Likewise.
53106         * stdlib/lrand48.c (lrand48): Likewise.
53107         * stdlib/mrand48.c (mrand48): Likewise.
53108         * stdlib/rand.c (rand): Likewise.
53109         * stdlib/random.c (__random): Likewise.
53110         * stdlib/setenv.c (clearenv): Likewise.
53111         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
53112         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
53113         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
53114         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
53115         (__get_nprocs): Likewise.
53116         (__get_phys_pages): Likewise.
53117         (__get_avphys_pages): Likewise.
53118         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
53119         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
53120         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
53121         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
53122         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
53123         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
53124         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
53125         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
53126         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
53127         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
53128         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
53129         * sysdeps/mach/hurd/sync.c (sync): Likewise.
53130         * sysdeps/posix/clock.c (clock): Likewise.
53131         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
53132         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
53133         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
53134         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
53135         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
53136         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
53137         (__get_nprocs_conf): Likewise.
53138         (__get_phys_pages): Likewise.
53139         (__get_avphys_pages): Likewise.
53140         * time/clock.c (clock): Likewise.
53141         * time/tzset.c (__tzname_max): Likewise.
53142
53143 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
53144
53145         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
53146         (__bswap_32): Do not use "register".
53147         * crypt/crypt.c (_ufc_doit_r): Likewise.
53148         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
53149         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
53150         * gmon/gmon.c (__monstartup): Likewise.
53151         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
53152         * hurd/hurdmalloc.c (more_memory): Likewise.
53153         (malloc): Likewise.
53154         (free): Likewise.
53155         (realloc): Likewise.
53156         (malloc_fork_prepare): Likewise.
53157         (malloc_fork_parent): Likewise.
53158         (malloc_fork_child): Likewise.
53159         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
53160         (_svcauth_des): Likewise.
53161         * inet/inet_lnaof.c (inet_lnaof): Likewise.
53162         * inet/inet_net.c (inet_network): Likewise.
53163         * inet/inet_netof.c (inet_netof): Likewise.
53164         * inet/rcmd.c (__validuser2_sa): Likewise.
53165         * io/fts.c (fts_open): Likewise.
53166         (fts_load): Likewise.
53167         (fts_close): Likewise.
53168         (fts_read): Likewise.
53169         (fts_children): Likewise.
53170         (fts_build): Likewise.
53171         (fts_stat): Likewise.
53172         (fts_sort): Likewise.
53173         (fts_alloc): Likewise.
53174         (fts_lfree): Likewise.
53175         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
53176         (_IO_file_xsgetn): Likewise.
53177         (_IO_file_xsgetn_mmap): Likewise.
53178         * libio/iofopncook.c (_IO_cookie_read): Likewise.
53179         (_IO_cookie_write): Likewise.
53180         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
53181         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
53182         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
53183         * malloc/obstack.c (_obstack_begin): Likewise.
53184         (_obstack_begin_1): Likewise.
53185         (_obstack_newchunk): Likewise.
53186         (_obstack_allocated_p): Likewise.
53187         (obstack_free): Likewise.
53188         (_obstack_memory_used): Likewise.
53189         * misc/getttyent.c (getttynam): Likewise.
53190         (getttyent): Likewise.
53191         (skip): Likewise.
53192         (value): Likewise.
53193         * misc/getusershell.c (initshells): Likewise.
53194         * misc/syslog.c (__vsyslog_chk): Likewise.
53195         * misc/ttyslot.c (ttyslot): Likewise.
53196         * nis/nis_hash.c (__nis_hash): Likewise.
53197         * posix/fnmatch_loop.c (FCT): Likewise.
53198         * posix/getconf.c (print_all): Likewise.
53199         (main): Likewise.
53200         * posix/getopt.c (exchange): Likewise.
53201         * posix/glob.c (globfree): Likewise.
53202         (prefix_array): Likewise.
53203         (__glob_pattern_type): Likewise.
53204         * resolv/arpa/nameser.h (NS_GET16): Likewise.
53205         (NS_GET32): Likewise.
53206         (NS_PUT16): Likewise.
53207         (NS_PUT32): Likewise.
53208         * resolv/gethnamaddr.c (getanswer): Likewise.
53209         (gethostbyname2): Likewise.
53210         (gethostbyaddr): Likewise.
53211         (_gethtent): Likewise.
53212         (_gethtbyname2): Likewise.
53213         (_gethtbyaddr): Likewise.
53214         * resolv/ns_print.c (dst_s_get_int16): Likewise.
53215         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
53216         * resolv/res_init.c (__res_vinit): Likewise.
53217         (net_mask): Likewise.
53218         * resolv/res_mkquery.c (outchar): Likewise.
53219         (PRINT): Likewise.
53220         * stdio-common/printf_fp.c (outchar): Likewise.
53221         (PRINT): Likewise.
53222         * stdio-common/printf_fphex.c (outchar): Likewise.
53223         (PRINT): Likewise.
53224         * stdio-common/printf_size.c (outchar): Likewise.
53225         (PRINT): Likewise.
53226         * stdio-common/test_rdwr.c (main): Likewise.
53227         * stdio-common/tfformat.c (matches): Likewise.
53228         * stdio-common/vfprintf.c (outchar): Likewise.
53229         (printf_unknown): Likewise.
53230         (buffered_vfprintf): Likewise.
53231         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
53232         * stdio-common/xbug.c (AppendToBuffer): Likewise.
53233         (ReadFile): Likewise.
53234         * stdlib/qsort.c (SWAP): Likewise.
53235         (_quicksort): Likewise.
53236         * stdlib/setenv.c (__add_to_environ): Likewise.
53237         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
53238         * stdlib/strtol_l.c (__strtol_l): Likewise.
53239         * stdlib/tst-strtod.c (main): Likewise.
53240         * stdlib/tst-strtol.c (main): Likewise.
53241         * stdlib/tst-strtoll.c (main): Likewise.
53242         * string/bits/string2.h (__strcmp_cc): Likewise.
53243         (__strcmp_cg): Likewise.
53244         (__strcspn_c1): Likewise.
53245         (__strcspn_c2): Likewise.
53246         (__strcspn_c3): Likewise.
53247         (__strspn_c1): Likewise.
53248         (__strspn_c2): Likewise.
53249         (__strspn_c3): Likewise.
53250         (__strsep_1c): Likewise.
53251         (__strsep_2c): Likewise.
53252         (__strsep_3c): Likewise.
53253         * string/memccpy.c (__memccpy): Likewise.
53254         * string/stpcpy.c (__stpcpy): Likewise.
53255         * string/strcmp.c (strcmp): Likewise.
53256         * string/strrchr.c (strrchr): Likewise.
53257         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
53258         Likewise.
53259         * sysdeps/mach/hurd/getcwd.c
53260         (_hurd_canonicalize_directory_name_internal): Likewise.
53261         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
53262         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
53263         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
53264         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
53265         Likewise, in both definitions.
53266         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
53267         definitions.
53268         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
53269         64] (__bswap_64): Likewise.
53270         * time/test_time.c (main): Likewise.
53271         * time/tzfile.c (__tzfile_read): Likewise.
53272         (__tzfile_compute): Likewise.
53273         * time/tzset.c (__tzset_parse_tz): Likewise.
53274         (tzset_internal): Likewise.
53275         (compute_change): Likewise.
53276         * wcsmbs/wcscat.c (__wcscat): Likewise.
53277         * wcsmbs/wcschr.c (wcschr): Likewise.
53278         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
53279         * wcsmbs/wcscspn.c (wcscspn): Likewise.
53280         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
53281         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
53282         * wcsmbs/wcsspn.c (wcsspn): Likewise.
53283         * wcsmbs/wcsstr.c (wcsstr): Likewise.
53284         * wcsmbs/wmemchr.c (wmemchr): Likewise.
53285         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
53286         * wcsmbs/wmemset.c (wmemset): Likewise.
53287
53288 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
53289
53290         * scripts/config.guess: Update to version 2013-05-16.
53291         * scripts/config.sub: Update to version 2013-04-24.
53292         * scripts/install-sh: Update to version 2011-11-20.07.
53293         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
53294         * scripts/move-if-change: Update to version 2012-01-06 07:23.
53295
53296 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
53297
53298         * debug/fgetws_u_chk.c: Fix leading whitespaces.
53299         * elf/sln.c: Likewise.
53300         * hurd/hurd/ioctl.h: Likewise.
53301         * hurd/hurdmalloc.c: Likewise.
53302         * hurd/xattr.c: Likewise.
53303         * include/shlib-compat.h: Likewise.
53304         * inet/ruserpass.c: Likewise.
53305         * libio/iofgets_u.c: Likewise.
53306         * libio/iofgetws_u.c: Likewise.
53307         * locale/programs/ld-identification.c: Likewise.
53308         * locale/programs/ld-time.c: Likewise.
53309         * mach/msg-destroy.c: Likewise.
53310         * nss/nss_files/files-netgrp.c: Likewise.
53311         * resolv/res_data.c: Likewise.
53312         * soft-fp/op-1.h: Likewise.
53313         * soft-fp/op-2.h: Likewise.
53314         * soft-fp/op-4.h: Likewise.
53315         * soft-fp/op-common.h: Likewise.
53316         * stdio-common/printf_fphex.c: Likewise.
53317         * stdlib/strtod_l.c: Likewise.
53318         * sunrpc/rpc/clnt.h: Likewise.
53319         * sysdeps/generic/framestate.c: Likewise.
53320         * sysdeps/i386/bsd-_setjmp.S: Likewise.
53321         * sysdeps/i386/bsd-setjmp.S: Likewise.
53322         * sysdeps/i386/__longjmp.S: Likewise.
53323         * sysdeps/i386/setjmp.S: Likewise.
53324         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
53325         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
53326         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
53327         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
53328         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
53329         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
53330         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
53331         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
53332         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
53333         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53334         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
53335         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
53336         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
53337         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
53338         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
53339         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
53340         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
53341         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
53342         * sysdeps/ieee754/support.c: Likewise.
53343         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53344         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
53345         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
53346         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
53347         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
53348         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
53349         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
53350         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
53351         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
53352         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
53353         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
53354         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
53355         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
53356         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
53357         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
53358         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
53359         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
53360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
53361
53362 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
53363
53364         * posix/transbug.c: Remove executable mode.
53365
53366 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
53367
53368         * crypt/speeds.c: Remove trailing whitespace.
53369         * dlfcn/default.c: Likewise.
53370         * elf/ifuncdep2.c: Likewise.
53371         * elf/ifuncmain1.c: Likewise.
53372         * elf/ifuncmain1vis.c: Likewise.
53373         * elf/testobj.h: Likewise.
53374         * elf/tst-stackguard1.c: Likewise.
53375         * gmon/sys/gmon.h: Likewise.
53376         * hurd/hurdmsg.c: Likewise.
53377         * hurd/new-fd.c: Likewise.
53378         * hurd/ports-get.c: Likewise.
53379         * iconvdata/ibm1008_420.c: Likewise.
53380         * inet/tst-getni1.c: Likewise.
53381         * inet/tst-getni2.c: Likewise.
53382         * libio/ioungetc.c: Likewise.
53383         * libio/wfiledoalloc.c: Likewise.
53384         * manual/libm-err-tab.pl: Likewise.
53385         * math/w_dremf.c: Likewise.
53386         * misc/ftruncate.c: Likewise.
53387         * posix/bug-glob2.c: Likewise.
53388         * posix/tst-pcre.c: Likewise.
53389         * posix/wait4.c: Likewise.
53390         * resolv/README: Likewise.
53391         * resolv/res_debug.h: Likewise.
53392         * resolv/tst-inet_ntop.c: Likewise.
53393         * setjmp/bug269-setjmp.c: Likewise.
53394         * soft-fp/extended.h: Likewise.
53395         * soft-fp/op-1.h: Likewise.
53396         * soft-fp/op-2.h: Likewise.
53397         * soft-fp/op-4.h: Likewise.
53398         * soft-fp/op-8.h: Likewise.
53399         * soft-fp/testit.c: Likewise.
53400         * stdio-common/bug16.c: Likewise.
53401         * stdlib/random.c: Likewise.
53402         * sunrpc/rpcsvc/rquota.x: Likewise.
53403         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
53404         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
53405         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
53406         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
53407         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
53408         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
53409         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
53410         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
53411         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
53412         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
53413         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
53414         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
53415         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
53416         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
53417         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
53418         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
53419         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
53420         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
53421         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
53422         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
53423         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
53424         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
53425         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
53426         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
53427         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
53428         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
53429         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
53430         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
53431         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
53432         * sysdeps/ieee754/s_lib_version.c: Likewise.
53433         * sysdeps/mach/hurd/check_fds.c: Likewise.
53434         * sysdeps/mach/hurd/getsockname.c: Likewise.
53435         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
53436         * sysdeps/mach/hurd/recvfrom.c: Likewise.
53437         * sysdeps/powerpc/bits/link.h: Likewise.
53438         * sysdeps/powerpc/dl-procinfo.c: Likewise.
53439         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
53440         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
53441         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
53442         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53443         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
53444         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
53445         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53446         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
53447         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
53448         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
53449         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
53450         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
53451         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
53452         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
53453         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
53454         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
53455         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
53456         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
53457         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53458         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53459         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
53460         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53461         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
53462         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
53463         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
53464         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
53465         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53466         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53467         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
53468         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
53469         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
53470         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53471         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
53472         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
53473         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53474         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
53475         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
53476         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
53477         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
53478         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
53479         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
53480         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
53481         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
53482         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
53483         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
53484         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
53485         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
53486         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
53487         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
53488         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
53489         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
53490         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53491         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53492         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
53493         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
53494         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
53495         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53496         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
53497         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
53498         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
53499         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
53500         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
53501         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53502         * sysdeps/powerpc/sysdep.h: Likewise.
53503         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
53504         * sysdeps/s390/s390-64/sub_n.S: Likewise.
53505         * sysdeps/sh/dl-trampoline.S: Likewise.
53506         * sysdeps/sh/memset.S: Likewise.
53507         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
53508         * sysdeps/sh/strlen.S: Likewise.
53509         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
53510         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
53511         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
53512         * sysdeps/sparc/sparc32/rem.S: Likewise.
53513         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
53514         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
53515         * sysdeps/sparc/sparc32/strchr.S: Likewise.
53516         * sysdeps/sparc/sparc32/udiv.S: Likewise.
53517         * sysdeps/sparc/sparc32/urem.S: Likewise.
53518         * sysdeps/sparc/sparc64/add_n.S: Likewise.
53519         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
53520         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
53521         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
53522         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
53523         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
53524         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
53525         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
53526         * sysdeps/unix/bsd/times.c: Likewise.
53527         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
53528         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
53529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
53530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
53531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
53532         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
53533         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
53534         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
53535         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
53536         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
53537         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
53538         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
53539         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
53540         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
53541         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
53542         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
53543         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
53544         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
53545         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
53546         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
53547         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
53548         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
53549         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
53550         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
53551         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
53552         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
53553         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
53554         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
53555         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
53556         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
53557         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
53558         * sysdeps/x86_64/strcspn.S: Likewise.
53559
53560 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
53561
53562         * locale/C-translit.h: Revert #include <stdint.h> because this is a
53563         generated file.  Regenerate properly from gen-translit.pl.
53564         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
53565         locale/C-translit.h.
53566
53567 2013-06-05  Andreas Schwab  <schwab@suse.de>
53568
53569         [BZ #15100]
53570         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
53571         week as 6 instead of -1.
53572         * time/tst-strptime.c (day_tests): Add test case.
53573
53574 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
53575
53576         * sysdeps/generic/math_private.h
53577         (libc_feholdexcept_setround_53bit): Replace with
53578         libc_feholdsetround_53bit.
53579         (libc_feupdateenv_53bit): Replace with
53580         libc_feresetround_53bit.
53581         (SET_RESTORE_ROUND_53BIT): Adjust.
53582
53583 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
53584
53585         * string/test-strchrnul.c: Add copyright header.
53586
53587         * posix/tst-getaddrinfo4.c: Increase test timeout.
53588
53589 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
53590
53591         [BZ #15536]
53592         * math/libm-test.inc (MAX_EXP): Remove
53593         (MIN_EXP): Define.
53594         (ulp): Use MIN_EXP - MANT_DIG.
53595         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
53596
53597 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
53598
53599         * po/be.po: Revert last change.
53600         * po/zh_CN.po: Likewise.
53601         * po/header.pot: Likewise.
53602
53603 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
53604
53605         * Makefile ($(common-objpfx)linkobj/libc.so): Define
53606         link-libc-deps to empty as target-specific variable.
53607         * Makerules (link-libc-args): New variable.
53608         (libc-for-link): Likewise.
53609         (link-libc-deps): Likewise.
53610         (lib%.so): Depend on $(link-libc-deps).  Link with
53611         $(link-libc-args).
53612         (build-module): Link with $(link-libc-args).
53613         (build-module-asneeded): Likewise.
53614         (build-module-helper-objlist): Filter out $(link-libc-deps) from
53615         list of objects.
53616         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
53617         target-specific variable.
53618         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
53619         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
53620         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
53621         libc.
53622         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
53623         libc and ld.so.
53624         ($(objpfx)libpcprofile.so): Likewise.
53625         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
53626         libc_nonshared.a.
53627         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
53628         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
53629         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
53630         $(link-libc-deps).
53631         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
53632         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
53633         * login/Makefile ($(objpfx)libutil.so): Likewise.
53634         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
53635         * math/Makefile ($(objpfx)libm.so): Likewise.
53636         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
53637         $(objpfx)libnsl.so): Define libc-for-link as target-specific
53638         variable instead of depending directly on libc.
53639         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
53640         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
53641         $(link-libc-deps).
53642         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
53643         libc.
53644         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
53645         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
53646         ($(objpfx)libanl.so): Likewise.
53647         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
53648         ld.so.
53649         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
53650         $(link-libc-deps).
53651         * sysdeps/i386/fpu/Makefile: Remove file.
53652         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
53653         ($(objpfx)libm.so): Remove dependency on ld.so.
53654
53655 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
53656
53657         [BZ # 15553]
53658         * nis/yp_xdr.c (XDRMAXNAME): Define.
53659         (XDRMAXRECORD): Define.
53660         (xdr_domainname): Use XDRMAXNAME.
53661         (xdr_mapname): Likewise.
53662         (xdr_peername): Likewise.
53663         (xdr_keydat): Use XDRMAXRECORD.
53664         (xdr_valdat): Likewise.
53665
53666 2013-05-30  Jeff Law  <law@redhat.com>
53667
53668         [BZ #14256]
53669         * manual/errno.texi (ESTALE): Update to account for more than
53670         just NFS file systems.
53671         * sysdeps/gnu/errlist.c: Regenerated.
53672
53673 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53674
53675         [BZ #15465]
53676         * elf/Makefile (tests): Add tst-null-argv.
53677         (modules-names):  Add tst-null-argv-lib.
53678         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
53679         (tst-null-argv-ENV): Set environment for tst-null-argv.
53680         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
53681         (RTLD_PROGNAME): New macro.
53682         * elf/tst-null-argv.c: New test case.
53683         * elf/tst-null-argv-lib.c: Library for test case.
53684         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
53685         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
53686         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
53687         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
53688         * elf/dl-init.c (call_init): Likewise.
53689         (_dl_init): Likewise.
53690         * elf/dl-load.c (print_search_path): Likewise.
53691         (_dl_map_object): Likewise.
53692         * elf/dl-lookup.c (do_lookup_x): Likewise.
53693         (add_dependency): Likewise.
53694         (_dl_lookup_symbol_x): Likewise.
53695         (_dl_debug_bindings): Likewise.
53696         * elf/dl-open.c (_dl_show_scope): Likewise.
53697         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
53698         * elf/dl-version.c (match_symbol): Likewise.
53699         (_dl_check_map_versions): Likewise.
53700         * elf/rtld.c (dl_main): Likewise.
53701         (print_unresolved): Use RTLD_PROGNAME.
53702         (print_missing_version): Likewise.
53703         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
53704         (elf_machine_rela): Likewise.
53705         * sysdeps/powerpc/powerpc32/dl-machine.c
53706         (__process_machine_rela): Likewise.
53707         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
53708         Likewise.
53709         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
53710         Likewise.
53711         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
53712         Likewise.
53713         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
53714         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
53715         Likewise.
53716         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
53717         Likewise.
53718         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
53719
53720 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
53721
53722         * po/be.po: Add descriptive title.
53723         * po/zh_CN.po: Likewise.
53724         * po/header.pot: Likewise.
53725
53726 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
53727
53728         * locale/programs/locarchive.c (create_archive): Inlucde fname in
53729         error message.
53730         (enlarge_archive): Likewise.
53731
53732 2013-05-28  Ben North  <ben@redfrontdoor.org>
53733
53734         * manual/arith.texi (frexp): It is the magnitude of the return
53735         value which lies in [0.5, 1), not the return value itself.
53736
53737 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53738
53739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53740
53741 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
53742
53743         * stdio-common/bug26.c (main): Correct fscanf template.
53744
53745         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
53746         declare _dl_skip_args.
53747
53748         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
53749         Don't declare.
53750
53751         * manual/platform.texi: Add missing @end deftypefun.
53752
53753 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
53754
53755         [BZ #15529]
53756         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
53757         bit of mantissa of 2^16382.
53758         * math/libm-test.inc (hypot_test_data): Add more tests.
53759
53760         * math/libm-test.inc: Add drem and pow10 to list of tested
53761         functions.
53762         (pow10_test): New function.
53763         (drem_test): Likewise.
53764         (drem_test_tonearest): Likewise.
53765         (drem_test_towardzero): Likewise.
53766         (drem_test_downward): Likewise.
53767         (drem_test_upward): Likewise.
53768         (main): Call the new functions.
53769
53770         * math/libm-test.inc (finite_test_data): Remove.
53771         (finite_test): Run tests from isfinite_test_data.
53772         (gamma_test_data): Remove.
53773         (gamma_test): Run tests from lgamma_test_data.
53774         * sysdeps/i386/fpu/libm-test-ulps: Update.
53775         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53776
53777 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53778
53779         * manual/platform.texi: Add PowerPC PPR function set documentation.
53780         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
53781         implementation.
53782
53783 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
53784
53785         * math/libm-test.inc (MAX_EXP): Define.
53786         (ULPDIFF): Define.
53787         (ulp): New function.
53788         (check_float_internal): Use ULPDIFF.
53789         (cpow_test): Disable failing test.
53790         (check_ulp): Test ulp() implemetnation.
53791         (main): Call check_ulp before starting tests.
53792
53793 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
53794
53795         * math/gen-libm-test.pl (generate_testfile): Do not handle
53796         START_DATA and END_DATA.
53797         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
53798         END_DATA.
53799         (acos_tonearest_test_data): Likewise.
53800         (acos_towardzero_test_data): Likewise.
53801         (acos_downward_test_data): Likewise.
53802         (acos_upward_test_data): Likewise.
53803         (acosh_test_data): Likewise.
53804         (asin_test_data): Likewise.
53805         (asin_tonearest_test_data): Likewise.
53806         (asin_towardzero_test_data): Likewise.
53807         (asin_downward_test_data): Likewise.
53808         (asin_upward_test_data): Likewise.
53809         (asinh_test_data): Likewise.
53810         (atan_test_data): Likewise.
53811         (atanh_test_data): Likewise.
53812         (atan2_test_data): Likewise.
53813         (cabs_test_data): Likewise.
53814         (cacos_test_data): Likewise.
53815         (cacosh_test_data): Likewise.
53816         (carg_test_data): Likewise.
53817         (casin_test_data): Likewise.
53818         (casinh_test_data): Likewise.
53819         (catan_test_data): Likewise.
53820         (catanh_test_data): Likewise.
53821         (cbrt_test_data): Likewise.
53822         (ccos_test_data): Likewise.
53823         (ccosh_test_data): Likewise.
53824         (ceil_test_data): Likewise.
53825         (cexp_test_data): Likewise.
53826         (cimag_test_data): Likewise.
53827         (clog_test_data): Likewise.
53828         (clog10_test_data): Likewise.
53829         (conj_test_data): Likewise.
53830         (copysign_test_data): Likewise.
53831         (cos_test_data): Likewise.
53832         (cos_tonearest_test_data): Likewise.
53833         (cos_towardzero_test_data): Likewise.
53834         (cos_downward_test_data): Likewise.
53835         (cos_upward_test_data): Likewise.
53836         (cosh_test_data): Likewise.
53837         (cosh_tonearest_test_data): Likewise.
53838         (cosh_towardzero_test_data): Likewise.
53839         (cosh_downward_test_data): Likewise.
53840         (cosh_upward_test_data): Likewise.
53841         (cpow_test_data): Likewise.
53842         (cproj_test_data): Likewise.
53843         (creal_test_data): Likewise.
53844         (csin_test_data): Likewise.
53845         (csinh_test_data): Likewise.
53846         (csqrt_test_data): Likewise.
53847         (ctan_test_data): Likewise.
53848         (ctan_tonearest_test_data): Likewise.
53849         (ctan_towardzero_test_data): Likewise.
53850         (ctan_downward_test_data): Likewise.
53851         (ctan_upward_test_data): Likewise.
53852         (ctanh_test_data): Likewise.
53853         (ctanh_tonearest_test_data): Likewise.
53854         (ctanh_towardzero_test_data): Likewise.
53855         (ctanh_downward_test_data): Likewise.
53856         (ctanh_upward_test_data): Likewise.
53857         (erf_test_data): Likewise.
53858         (erfc_test_data): Likewise.
53859         (exp_test_data): Likewise.
53860         (exp_tonearest_test_data): Likewise.
53861         (exp_towardzero_test_data): Likewise.
53862         (exp_downward_test_data): Likewise.
53863         (exp_upward_test_data): Likewise.
53864         (exp10_test_data): Likewise.
53865         (exp2_test_data): Likewise.
53866         (expm1_test_data): Likewise.
53867         (fabs_test_data): Likewise.
53868         (fdim_test_data): Likewise.
53869         (finite_test_data): Likewise.
53870         (floor_test_data): Likewise.
53871         (fma_test_data): Likewise.
53872         (fma_towardzero_test_data): Likewise.
53873         (fma_downward_test_data): Likewise.
53874         (fma_upward_test_data): Likewise.
53875         (fmax_test_data): Likewise.
53876         (fmin_test_data): Likewise.
53877         (fmod_test_data): Likewise.
53878         (fpclassify_test_data): Likewise.
53879         (frexp_test_data): Likewise.
53880         (gamma_test_data): Likewise.
53881         (hypot_test_data): Likewise.
53882         (ilogb_test_data): Likewise.
53883         (isfinite_test_data): Likewise.
53884         (isgreater_test_data): Likewise.
53885         (isgreaterequal_test_data): Likewise.
53886         (isinf_test_data): Likewise.
53887         (isless_test_data): Likewise.
53888         (islessequal_test_data): Likewise.
53889         (islessgreater_test_data): Likewise.
53890         (isnan_test_data): Likewise.
53891         (isnormal_test_data): Likewise.
53892         (issignaling_test_data): Likewise.
53893         (isunordered_test_data): Likewise.
53894         (j0_test_data): Likewise.
53895         (j1_test_data): Likewise.
53896         (jn_test_data): Likewise.
53897         (ldexp_test_data): Likewise.
53898         (lgamma_test_data): Likewise.
53899         (lrint_test_data): Likewise.
53900         (lrint_tonearest_test_data): Likewise.
53901         (lrint_towardzero_test_data): Likewise.
53902         (lrint_downward_test_data): Likewise.
53903         (lrint_upward_test_data): Likewise.
53904         (llrint_test_data): Likewise.
53905         (llrint_tonearest_test_data): Likewise.
53906         (llrint_towardzero_test_data): Likewise.
53907         (llrint_downward_test_data): Likewise.
53908         (llrint_upward_test_data): Likewise.
53909         (log_test_data): Likewise.
53910         (log10_test_data): Likewise.
53911         (log1p_test_data): Likewise.
53912         (log2_test_data): Likewise.
53913         (logb_test_data): Likewise.
53914         (logb_downward_test_data): Likewise.
53915         (lround_test_data): Likewise.
53916         (llround_test_data): Likewise.
53917         (modf_test_data): Likewise.
53918         (nearbyint_test_data): Likewise.
53919         (nextafter_test_data): Likewise.
53920         (nexttoward_test_data): Likewise.
53921         (pow_test_data): Likewise.
53922         (pow_tonearest_test_data): Likewise.
53923         (pow_towardzero_test_data): Likewise.
53924         (pow_downward_test_data): Likewise.
53925         (pow_upward_test_data): Likewise.
53926         (remainder_test_data): Likewise.
53927         (remainder_tonearest_test_data): Likewise.
53928         (remainder_towardzero_test_data): Likewise.
53929         (remainder_downward_test_data): Likewise.
53930         (remainder_upward_test_data): Likewise.
53931         (remquo_test_data): Likewise.
53932         (rint_test_data): Likewise.
53933         (rint_tonearest_test_data): Likewise.
53934         (rint_towardzero_test_data): Likewise.
53935         (rint_downward_test_data): Likewise.
53936         (rint_upward_test_data): Likewise.
53937         (round_test_data): Likewise.
53938         (scalb_test_data): Likewise.
53939         (scalbn_test_data): Likewise.
53940         (scalbln_test_data): Likewise.
53941         (signbit_test_data): Likewise.
53942         (sin_test_data): Likewise.
53943         (sin_tonearest_test_data): Likewise.
53944         (sin_towardzero_test_data): Likewise.
53945         (sin_downward_test_data): Likewise.
53946         (sin_upward_test_data): Likewise.
53947         (sincos_test_data): Likewise.
53948         (sinh_test_data): Likewise.
53949         (sinh_tonearest_test_data): Likewise.
53950         (sinh_towardzero_test_data): Likewise.
53951         (sinh_downward_test_data): Likewise.
53952         (sinh_upward_test_data): Likewise.
53953         (sqrt_test_data): Likewise.
53954         (tan_test_data): Likewise.
53955         (tan_tonearest_test_data): Likewise.
53956         (tan_towardzero_test_data): Likewise.
53957         (tan_downward_test_data): Likewise.
53958         (tan_upward_test_data): Likewise.
53959         (tanh_test_data): Likewise.
53960         (tgamma_test_data): Likewise.
53961         (trunc_test_data): Likewise.
53962         (y0_test_data): Likewise.
53963         (y1_test_data): Likewise.
53964         (yn_test_data): Likewise.
53965         (significand_test_data): Likewise.
53966
53967         * math/gen-libm-test.pl (@functions): Remove variable.
53968         (generate_testfile): Don't handle START and END lines.
53969         * math/libm-test.inc (START): New macro.
53970         (END): Likewise.
53971         (END_COMPLEX): Likewise.
53972         (acos_test): Use END macro without arguments.
53973         (acos_test_tonearest): Likewise.
53974         (acos_test_towardzero): Likewise.
53975         (acos_test_downward): Likewise.
53976         (acos_test_upward): Likewise.
53977         (acosh_test): Likewise.
53978         (asin_test): Likewise.
53979         (asin_test_tonearest): Likewise.
53980         (asin_test_towardzero): Likewise.
53981         (asin_test_downward): Likewise.
53982         (asin_test_upward): Likewise.
53983         (asinh_test): Likewise.
53984         (atan_test): Likewise.
53985         (atanh_test): Likewise.
53986         (atan2_test): Likewise.
53987         (cabs_test): Likewise.
53988         (cacos_test): Use END_COMPLEX macro without arguments.
53989         (cacosh_test): Likewise.
53990         (carg_test): Use END macro without arguments.
53991         (casin_test): Use END_COMPLEX macro without arguments.
53992         (casinh_test): Likewise.
53993         (catan_test): Likewise.
53994         (catanh_test): Likewise.
53995         (cbrt_test): Use END macro without arguments.
53996         (ccos_test): Use END_COMPLEX macro without arguments.
53997         (ccosh_test): Likewise.
53998         (ceil_test): Use END macro without arguments.
53999         (cexp_test): Use END_COMPLEX macro without arguments.
54000         (cimag_test): Use END macro without arguments.
54001         (clog_test): Use END_COMPLEX macro without arguments.
54002         (clog10_test): Likewise.
54003         (conj_test): Likewise.
54004         (copysign_test): Use END macro without arguments.
54005         (cos_test): Likewise.
54006         (cos_test_tonearest): Likewise.
54007         (cos_test_towardzero): Likewise.
54008         (cos_test_downward): Likewise.
54009         (cos_test_upward): Likewise.
54010         (cosh_test): Likewise.
54011         (cosh_test_tonearest): Likewise.
54012         (cosh_test_towardzero): Likewise.
54013         (cosh_test_downward): Likewise.
54014         (cosh_test_upward): Likewise.
54015         (cpow_test): Use END_COMPLEX macro without arguments.
54016         (cproj_test): Likewise.
54017         (creal_test): Use END macro without arguments.
54018         (csin_test): Use END_COMPLEX macro without arguments.
54019         (csinh_test): Likewise.
54020         (csqrt_test): Likewise.
54021         (ctan_test): Likewise.
54022         (ctan_test_tonearest): Likewise.
54023         (ctan_test_towardzero): Likewise.
54024         (ctan_test_downward): Likewise.
54025         (ctan_test_upward): Likewise.
54026         (ctanh_test): Likewise.
54027         (ctanh_test_tonearest): Likewise.
54028         (ctanh_test_towardzero): Likewise.
54029         (ctanh_test_downward): Likewise.
54030         (ctanh_test_upward): Likewise.
54031         (erf_test): Use END macro without arguments.
54032         (erfc_test): Likewise.
54033         (exp_test): Likewise.
54034         (exp_test_tonearest): Likewise.
54035         (exp_test_towardzero): Likewise.
54036         (exp_test_downward): Likewise.
54037         (exp_test_upward): Likewise.
54038         (exp10_test): Likewise.
54039         (exp2_test): Likewise.
54040         (expm1_test): Likewise.
54041         (fabs_test): Likewise.
54042         (fdim_test): Likewise.
54043         (finite_test): Likewise.
54044         (floor_test): Likewise.
54045         (fma_test): Likewise.
54046         (fma_test_towardzero): Likewise.
54047         (fma_test_downward): Likewise.
54048         (fma_test_upward): Likewise.
54049         (fmax_test): Likewise.
54050         (fmin_test): Likewise.
54051         (fmod_test): Likewise.
54052         (fpclassify_test): Likewise.
54053         (frexp_test): Likewise.
54054         (gamma_test): Likewise.
54055         (hypot_test): Likewise.
54056         (ilogb_test): Likewise.
54057         (isfinite_test): Likewise.
54058         (isgreater_test): Likewise.
54059         (isgreaterequal_test): Likewise.
54060         (isinf_test): Likewise.
54061         (isless_test): Likewise.
54062         (islessequal_test): Likewise.
54063         (islessgreater_test): Likewise.
54064         (isnan_test): Likewise.
54065         (isnormal_test): Likewise.
54066         (issignaling_test): Likewise.
54067         (isunordered_test): Likewise.
54068         (j0_test): Likewise.
54069         (j1_test): Likewise.
54070         (jn_test): Likewise.
54071         (ldexp_test): Likewise.
54072         (lgamma_test): Likewise.
54073         (lrint_test): Likewise.
54074         (lrint_test_tonearest): Likewise.
54075         (lrint_test_towardzero): Likewise.
54076         (lrint_test_downward): Likewise.
54077         (lrint_test_upward): Likewise.
54078         (llrint_test): Likewise.
54079         (llrint_test_tonearest): Likewise.
54080         (llrint_test_towardzero): Likewise.
54081         (llrint_test_downward): Likewise.
54082         (llrint_test_upward): Likewise.
54083         (log_test): Likewise.
54084         (log10_test): Likewise.
54085         (log1p_test): Likewise.
54086         (log2_test): Likewise.
54087         (logb_test): Likewise.
54088         (logb_test_downward): Likewise.
54089         (lround_test): Likewise.
54090         (llround_test): Likewise.
54091         (modf_test): Likewise.
54092         (nearbyint_test): Likewise.
54093         (nextafter_test): Likewise.
54094         (nexttoward_test): Likewise.
54095         (pow_test): Likewise.
54096         (pow_test_tonearest): Likewise.
54097         (pow_test_towardzero): Likewise.
54098         (pow_test_downward): Likewise.
54099         (pow_test_upward): Likewise.
54100         (remainder_test): Likewise.
54101         (remainder_test_tonearest): Likewise.
54102         (remainder_test_towardzero): Likewise.
54103         (remainder_test_downward): Likewise.
54104         (remainder_test_upward): Likewise.
54105         (remquo_test): Likewise.
54106         (rint_test): Likewise.
54107         (rint_test_tonearest): Likewise.
54108         (rint_test_towardzero): Likewise.
54109         (rint_test_downward): Likewise.
54110         (rint_test_upward): Likewise.
54111         (round_test): Likewise.
54112         (scalb_test): Likewise.
54113         (scalbn_test): Likewise.
54114         (scalbln_test): Likewise.
54115         (signbit_test): Likewise.
54116         (sin_test): Likewise.
54117         (sin_test_tonearest): Likewise.
54118         (sin_test_towardzero): Likewise.
54119         (sin_test_downward): Likewise.
54120         (sin_test_upward): Likewise.
54121         (sincos_test): Likewise.
54122         (sinh_test): Likewise.
54123         (sinh_test_tonearest): Likewise.
54124         (sinh_test_towardzero): Likewise.
54125         (sinh_test_downward): Likewise.
54126         (sinh_test_upward): Likewise.
54127         (sqrt_test): Likewise.
54128         (tan_test): Likewise.
54129         (tan_test_tonearest): Likewise.
54130         (tan_test_towardzero): Likewise.
54131         (tan_test_downward): Likewise.
54132         (tan_test_upward): Likewise.
54133         (tanh_test): Likewise.
54134         (tgamma_test): Likewise.
54135         (trunc_test): Likewise.
54136         (y0_test): Likewise.
54137         (y1_test): Likewise.
54138         (yn_test): Likewise.
54139         (significand_test): Likewise.
54140
54141 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
54142
54143         [BZ #15381]
54144         * libio/genops.c (_IO_no_init): Initialize wide struct info.
54145
54146 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
54147
54148         [BZ #14894]
54149         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
54150         __ppc_mdoio and __ppc_mdoom.
54151         * manual/platform.texi: Document new functions __ppc_yield,
54152         __ppc_mdoio and __ppc_mdoom.
54153
54154 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
54155
54156         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
54157         (main): Mention "tls" pseudo-hwcap is legacy.
54158         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
54159
54160 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
54161
54162         * math/gen-libm-test.pl (parse_args): Output only string of
54163         arguments as text for test name, not full call or descriptions of
54164         tests for extra outputs.
54165         (generate_testfile): Do not pass function name to parse_args.
54166         Generate this_func variable from START.
54167         * math/libm-test.inc (struct test_f_f_data): Rename test_name
54168         field to arg_str.
54169         (struct test_ff_f_data): Likewise.
54170         (test_ff_f_data_nexttoward): Likewise.
54171         (struct test_fi_f_data): Likewise.
54172         (struct test_fl_f_data): Likewise.
54173         (struct test_if_f_data): Likewise.
54174         (struct test_fff_f_data): Likewise.
54175         (struct test_c_f_data): Likewise.
54176         (struct test_f_f1_data): Likewise.  Remove field extra_name.
54177         (struct test_fF_f1_data): Likewise.
54178         (struct test_ffI_f1_data): Likewise.
54179         (struct test_c_c_data): Rename test_name field to arg_str.
54180         (struct test_cc_c_data): Likewise.
54181         (struct test_f_i_data): Likewise.
54182         (struct test_ff_i_data): Likewise.
54183         (struct test_f_l_data): Likewise.
54184         (struct test_f_L_data): Likewise.
54185         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
54186         and extra2_name.
54187         (COMMON_TEST_SETUP): New macro.
54188         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
54189         (COMMON_TEST_CLEANUP): Likewise.
54190         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
54191         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
54192         macros.
54193         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
54194         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
54195         macros.
54196         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
54197         (RUN_TEST_fff_f): Take argument string.  Call new setup and
54198         cleanup macros.
54199         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
54200         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
54201         macros.
54202         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
54203         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
54204         macros.
54205         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
54206         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
54207         cleanup macros.
54208         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
54209         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
54210         cleanup macros.
54211         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
54212         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
54213         cleanup macros.
54214         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
54215         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
54216         macros.
54217         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
54218         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
54219         macros.
54220         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
54221         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
54222         macros.
54223         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
54224         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
54225         cleanup macros.
54226         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
54227         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
54228         cleanup macros.
54229         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
54230         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
54231         macros.
54232         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
54233         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
54234         cleanup macros.
54235         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
54236         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
54237         macros.
54238         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
54239         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
54240         macros.
54241         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
54242         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
54243         cleanup macros.
54244         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
54245
54246 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
54247
54248         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
54249         to _sifields.sigfault.
54250         (si_addr_lsb): Define new macro.
54251         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
54252         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
54253         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
54254
54255 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
54256
54257         [BZ #15441]
54258         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
54259         returns -1.
54260         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
54261         null return -1.
54262         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
54263         loading the domain.
54264
54265 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
54266
54267         * math/gen-libm-test.pl (parse_args): Do not include expected
54268         result in test name.
54269         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
54270         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
54271         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
54272         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
54273         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
54274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54275
54276 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
54277
54278         * benchtests/Makefile: Sort function entries.
54279
54280         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
54281         tanh, asinh, acosh, atanh.
54282         * benchtests/acos-inputs: New file.
54283         * benchtests/acosh-inputs: New file.
54284         * benchtests/asin-inputs: New file.
54285         * benchtests/asinh-inputs: New file.
54286         * benchtests/atanh-inputs: New file.
54287         * benchtests/cosh-inputs: New file.
54288         * benchtests/log-inputs: New file.
54289         * benchtests/sinh-inputs: New file.
54290         * benchtests/tanh-inputs: New file.
54291
54292 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
54293
54294         [BZ #15339]
54295         * posix/tst-getaddrinfo4.c: New test.
54296         * posix/Makefile (tests): Add it.
54297
54298 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
54299
54300         [BZ #15339]
54301         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
54302         when no services were used.
54303         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
54304         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
54305
54306 2013-05-21  Andreas Schwab  <schwab@suse.de>
54307
54308         [BZ #15014]
54309         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
54310         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
54311         successful.
54312         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
54313         redundant variable declarations and reallocation of buffer when
54314         parsing as IPv6 address.  Always set NSS status when called from
54315         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
54316         buffer too small.  Correct computation of needed size.
54317         * nss/Makefile (tests): Add test-digits-dots.
54318         * nss/test-digits-dots.c: New test.
54319
54320 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
54321
54322         * benchtests/Makefile: Remove instructions for adding
54323         benchmark tests.
54324         * benchtests/README: New file to explain how to execute and
54325         enhance the benchmark tests.
54326
54327 2013-05-21  Andreas Schwab  <schwab@suse.de>
54328
54329         [BZ #15493]
54330         * setjmp/Makefile (tests): Add tst-sigsetjmp.
54331         * setjmp/tst-sigsetjmp.c: New test.
54332
54333 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
54334
54335         * sysdeps/x86_64/memset.S (memset): New implementation.
54336         (__bzero): Likewise.
54337         (__memset_tail): New function.
54338
54339 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
54340
54341         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
54342         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
54343         __memcpy_sse2_unaligned ifunc selection.
54344         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
54345         Add memcpy-sse2-unaligned.S.
54346         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
54347         Add: __memcpy_sse2_unaligned.
54348
54349 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
54350
54351         [BZ #15490]
54352         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
54353         math_force_eval before restoring floating-point envrionment.
54354         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
54355         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
54356         Likewise.
54357         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
54358         <math_private.h>.
54359         (__nearbyintl): Use math_force_eval before restoring
54360         floating-point environment.
54361         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
54362
54363         * math/gen-libm-test.pl (special_functions): Remove.
54364         (parse_args): Don't handle TEST_extra.  Handle functions with no
54365         return value.
54366         * math/libm-test.inc (struct test_sincos_data): Replace with
54367         struct test_fFF_11_data.
54368         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
54369         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
54370         (sincos_test_data): Change element type to struct
54371         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
54372         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
54373         RUN_TEST_LOOP_sincos.
54374         * math/README.libm-test: Don't mention special handling of
54375         individual functions.
54376         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
54377         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
54378         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
54379         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
54380         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
54381         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54382
54383         * math/gen-libm-test.pl (get_variable): Remove function.
54384         (parse_args): Don't show pointer parameters to call in test
54385         names.  Use "extra output N" in test names for extra outputs
54386         rather than naming variables.
54387
54388 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
54389
54390         [BZ #15488]
54391         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
54392         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
54393         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
54394         double tests.
54395         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
54396         disable.
54397         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
54398         check_long_double.
54399
54400         * math/gen-libm-test.pl (@tests): Remove variable.
54401         ($count): Likewise.
54402         (new_test): Remove function.
54403         (show_exceptions): New function.
54404         (special_functions): Use show_exceptions instead of new_test.
54405         (parse_args): Likewise.
54406         (generate_testfile): Pass only function name in generated call to
54407         print_max_error or print_complex_max_error.
54408         (get_ulps): Do not handle complex tests specially.
54409         (output_test): Rename to ...
54410         (get_all_ulps_for_test): ... this.  Return a string rather than
54411         printing to a file.  Require ulps to be present.
54412         (output_ulps): Generate arrays rather than #defines.
54413         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
54414         (struct ulp_data): New type.
54415         (BUILD_COMPLEX_ULP): Remove macro.
54416         (compare_ulp_data): New function.
54417         (find_ulps): Likewise.
54418         (find_test_ulps): Likewise.
54419         (find_function_ulps): Likewise.
54420         (find_complex_function_ulps): Likewise.
54421         (print_max_error): Determine allowed ulps using
54422         find_function_ulps.
54423         (print_complex_max_error): Determine allowed ulps using
54424         find_complex_function_ulps.
54425         (check_float_internal): Determine max ulps using find_test_ulps.
54426         (check_float): Do not take max_ulp parameter.  Update call to
54427         check_float_internal.
54428         (check_complex): Likewise.
54429         (check_int): Do not take max_ulp parameter.
54430         (check_long): Likewise.
54431         (check_bool): Likewise.
54432         (check_longlong): Likewise.
54433         (struct test_f_f_data): Remove max_ulp field.
54434         (struct test_ff_f_data): Likewise.
54435         (struct test_ff_f_data_nexttoward): Likewise.
54436         (struct test_fi_f_data): Likewise.
54437         (struct test_fl_f_data): Likewise.
54438         (struct test_if_f_data): Likewise.
54439         (struct test_fff_f_data): Likewise.
54440         (struct test_c_f_data): Likewise.
54441         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
54442         (struct test_fF_f1_data): Likewise.
54443         (struct test_ffI_f1_data): Likewise.
54444         (struct test_c_c_data): Remove max_ulp field.
54445         (struct test_cc_c_data): Likewise.
54446         (struct test_f_i_data): Likewise.
54447         (struct test_ff_i_data): Likewise.
54448         (struct test_f_l_data): Likewise.
54449         (struct test_f_L_data): Likewise.
54450         (struct test_sincos_data): Likewise.
54451         (RUN_TEST_f_f): Do not handle ulps.
54452         (RUN_TEST_LOOP_f_f): Likewise.
54453         (RUN_TEST_2_f): Likewise.
54454         (RUN_TEST_LOOP_2_f): Likewise.
54455         (RUN_TEST_fff_f): Likewise.
54456         (RUN_TEST_LOOP_fff_f): Likewise.
54457         (RUN_TEST_c_f): Likewise.
54458         (RUN_TEST_LOOP_c_f): Likewise.
54459         (RUN_TEST_f_f1): Likewise.
54460         (RUN_TEST_LOOP_f_f1): Likewise.
54461         (RUN_TEST_fF_f1): Likewise.
54462         (RUN_TEST_LOOP_fF_f1): Likewise.
54463         (RUN_TEST_fI_f1): Likewise.
54464         (RUN_TEST_LOOP_fI_f1): Likewise.
54465         (RUN_TEST_ffI_f1): Likewise.
54466         (RUN_TEST_LOOP_ffI_f1): Likewise.
54467         (RUN_TEST_c_c): Likewise.
54468         (RUN_TEST_LOOP_c_c): Likewise.
54469         (RUN_TEST_cc_c): Likewise.
54470         (RUN_TEST_LOOP_cc_c): Likewise.
54471         (RUN_TEST_f_i): Likewise.
54472         (RUN_TEST_LOOP_f_i): Likewise.
54473         (RUN_TEST_f_i_tg): Likewise.
54474         (RUN_TEST_LOOP_f_i_tg): Likewise.
54475         (RUN_TEST_ff_i_tg): Likewise.
54476         (RUN_TEST_LOOP_ff_i_tg): Likewise.
54477         (RUN_TEST_f_b): Likewise.
54478         (RUN_TEST_LOOP_f_b): Likewise.
54479         (RUN_TEST_f_b_tg): Likewise.
54480         (RUN_TEST_LOOP_f_b_tg): Likewise.
54481         (RUN_TEST_f_l): Likewise.
54482         (RUN_TEST_LOOP_f_l): Likewise.
54483         (RUN_TEST_f_L): Likewise.
54484         (RUN_TEST_LOOP_f_L): Likewise.
54485         (RUN_TEST_sincos): Likewise.
54486         (RUN_TEST_LOOP_sincos): Likewise.
54487
54488 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
54489
54490         [BZ #15480]
54491         [BZ #15485]
54492         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
54493         main case of finite arguments, set rounding mode to FE_TONEAREST
54494         and discard exceptions.
54495         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
54496         exceptions.
54497         (remainder_tonearest_test_data): New variable.
54498         (remainder_test_tonearest): New function.
54499         (remainder_towardzero_test_data): New variable.
54500         (remainder_test_towardzero): New function.
54501         (remainder_downward_test_data): New variable.
54502         (remainder_test_downward): New function.
54503         (remainder_upward_test_data): New variable.
54504         (remainder_test_upward): New function.
54505         (main): Call the new test functions.
54506
54507         * math/libm-test.inc (struct test_f_f1_data): Remove field
54508         extra_init.
54509         (struct test_fF_f1_data): Likewise.
54510         (struct test_ffI_f1_data): Likewise.
54511         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
54512         based on value of EXTRA_EXPECTED.
54513         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
54514         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
54515         EXTRA_VAR based on value of EXTRA_EXPECTED.
54516         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
54517         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
54518         EXTRA_VAR based on value of EXTRA_EXPECTED.
54519         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
54520         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
54521         EXTRA_VAR based on value of EXTRA_EXPECTED.
54522         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
54523         * math/gen-libm-test.pl (parse_args): Don't output initializers
54524         for extra output values.
54525
54526         * math/libm-test.inc (check_int): Expect result to be exactly
54527         equal to expected value and do not handle ulps.
54528         (check_long): Likewise.
54529         (check_longlong): Likewise.
54530
54531         * math/libm-test.inc (ceil_test_data): Test for "inexact"
54532         exceptions.
54533         (cimag_test_data): Likewise.
54534         (conj_test_data): Likewise.
54535         (copysign_test_data): Likewise.
54536         (cproj_test_data): Likewise.
54537         (creal_test_data): Likewise.
54538         (fabs_test_data): Likewise.
54539         (fdim_test_data): Likewise.
54540         (finite_test_data): Likewise.
54541         (floor_test_data): Likewise.
54542         (fmax_test_data): Likewise.
54543         (fmin_test_data): Likewise.
54544         (fmod_test_data): Likewise.
54545         (fpclassify_test_data): Likewise.
54546         (frexp_test_data): Likewise.
54547         (ilogb_test_data): Likewise.
54548         (isfinite_test_data): Likewise.
54549         (isgreater_test_data): Likewise.
54550         (isgreaterequal_test_data): Likewise.
54551         (isinf_test_data): Likewise.
54552         (isless_test_data): Likewise.
54553         (islessequal_test_data): Likewise.
54554         (islessgreater_test_data): Likewise.
54555         (isnan_test_data): Likewise.
54556         (isnormal_test_data): Likewise.
54557         (issignaling_test_data): Likewise.
54558         (isunordered_test_data): Likewise.
54559         (ldexp_test_data): Likewise.
54560         (lrint_test_data): Likewise.
54561         (lrint_test_data) [TEST_FLOAT]: Disable one test.
54562         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
54563         (lrint_tonearest_test_data): Test for "inexact" exceptions.
54564         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
54565         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
54566         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
54567         test input.
54568         (lrint_towardzero_test_data): Test for "inexact" exceptions.
54569         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
54570         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
54571         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
54572         that test input.
54573         (lrint_downward_test_data): Test for "inexact" exceptions.
54574         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
54575         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
54576         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
54577         test input.
54578         (lrint_upward_test_data): Test for "inexact" exceptions.
54579         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
54580         test input.
54581         (llrint_test_data): Test for "inexact" exceptions.
54582         (llrint_test_data) [TEST_FLOAT]: Disable one test.
54583         (llrint_tonearest_test_data): Test for "inexact" exceptions.
54584         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
54585         (llrint_towardzero_test_data): Test for "inexact" exceptions.
54586         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
54587         (llrint_downward_test_data): Test for "inexact" exceptions.
54588         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
54589         (llrint_upward_test_data): Test for "inexact" exceptions.
54590         (logb_test_data): Likewise.
54591         (logb_downward_test_data): Likewise.
54592         (nextafter_test_data): Likewise.
54593         (nexttoward_test_data): Likewise.
54594         (remainder_test_data): Likewise.
54595         (remquo_test_data): Likewise.
54596         (scalbn_test_data): Likewise.
54597         (scalbln_test_data): Likewise.
54598         (signbit_test_data): Likewise.
54599         (sqrt_test_data): Likewise.
54600         (significand_test_data): Likewise.
54601
54602 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
54603
54604         [BZ #15424]
54605         * benchtests/bench-modf.c (struct args): Mark arg0 as
54606         volatile.
54607         * scripts/bench.pl: Mark members of struct args as volatile.
54608
54609 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54610
54611         [BZ # 15497]
54612         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
54613         negative infinity on POWER6 or lower.
54614         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
54615
54616 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
54617
54618         [BZ #15442]
54619         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
54620         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
54621         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
54622         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
54623         (_FP_SETQNAN): New macro.
54624         (_FP_SETQNAN_SEMIRAW): Likewise.
54625         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
54626         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
54627         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
54628         (FP_EXTEND): Use _FP_FRAC_SNANP.
54629         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
54630         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
54631         into account.
54632         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
54633         New macro.
54634         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
54635         Likewise.
54636
54637 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54638
54639         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
54640         with DIVIDE_BY_ZERO_EXCEPTION.
54641         (gamma_test_data): Likewise.
54642         (lgamma_test_data): Likewise.
54643         (log_test_data): Likewise.
54644         (log10_test_data): Likewise.
54645         (log2_test_data): Likewise.
54646         (tgamma_test_data): Likewise.
54647
54648         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
54649         (acos_test_tonearest): Likewise.
54650         (acos_test_towardzero): Likewise.
54651         (acos_test_downward): Likewise.
54652         (acos_test_upward): Likewise.
54653         (acosh_test): Likewise.
54654         (asin_test): Likewise.
54655         (asin_test_tonearest): Likewise.
54656         (asin_test_towardzero): Likewise.
54657         (asin_test_downward): Likewise.
54658         (asin_test_upward): Likewise.
54659         (asinh_test): Likewise.
54660         (atan_test): Likewise.
54661         (atanh_test): Likewise.
54662         (atan2_test): Likewise.
54663         (cabs_test): Likewise.
54664         (cacos_test): Likewise.
54665         (cacosh_test): Likewise.
54666         (casin_test): Likewise.
54667         (casinh_test): Likewise.
54668         (catan_test): Likewise.
54669         (catanh_test): Likewise.
54670         (cbrt_test): Likewise.
54671         (ccos_test): Likewise.
54672         (ccosh_test): Likewise.
54673         (cexp_test): Likewise.
54674         (clog_test): Likewise.
54675         (clog10_test): Likewise.
54676         (cos_test): Likewise.
54677         (cos_test_tonearest): Likewise.
54678         (cos_test_towardzero): Likewise.
54679         (cos_test_downward): Likewise.
54680         (cos_test_upward): Likewise.
54681         (cosh_test): Likewise.
54682         (cosh_test_tonearest): Likewise.
54683         (cosh_test_towardzero): Likewise.
54684         (cosh_test_downward): Likewise.
54685         (cosh_test_upward): Likewise.
54686         (cpow_test): Likewise.
54687         (csin_test): Likewise.
54688         (csinh_test): Likewise.
54689         (csqrt_test): Likewise.
54690         (ctan_test): Likewise.
54691         (ctan_test_tonearest): Likewise.
54692         (ctan_test_towardzero): Likewise.
54693         (ctan_test_downward): Likewise.
54694         (ctan_test_upward): Likewise.
54695         (ctanh_test): Likewise.
54696         (ctanh_test_tonearest): Likewise.
54697         (ctanh_test_towardzero): Likewise.
54698         (ctanh_test_downward): Likewise.
54699         (ctanh_test_upward): Likewise.
54700         (erf_test): Likewise.
54701         (erfc_test): Likewise.
54702         (exp_test): Likewise.
54703         (exp_test_tonearest): Likewise.
54704         (exp_test_towardzero): Likewise.
54705         (exp_test_downward): Likewise.
54706         (exp_test_upward): Likewise.
54707         (exp10_test): Likewise.
54708         (exp2_test): Likewise.
54709         (expm1_test): Likewise.
54710         (fmod_test): Likewise.
54711         (gamma_test): Likewise.
54712         (hypot_test): Likewise.
54713         (j0_test): Likewise.
54714         (j1_test): Likewise.
54715         (jn_test): Likewise.
54716         (lgamma_test): Likewise.
54717         (log_test): Likewise.
54718         (log10_test): Likewise.
54719         (log1p_test): Likewise.
54720         (log2_test): Likewise.
54721         (logb_test_downward): Likewise.
54722         (pow_test): Likewise.
54723         (pow_test_tonearest): Likewise.
54724         (pow_test_towardzero): Likewise.
54725         (pow_test_downward): Likewise.
54726         (pow_test_upward): Likewise.
54727         (remainder_test): Likewise.
54728         (remquo_test): Likewise.
54729         (sin_test): Likewise.
54730         (sin_test_tonearest): Likewise.
54731         (sin_test_towardzero): Likewise.
54732         (sin_test_downward): Likewise.
54733         (sin_test_upward): Likewise.
54734         (sincos_test): Likewise.
54735         (sinh_test): Likewise.
54736         (sinh_test_tonearest): Likewise.
54737         (sinh_test_towardzero): Likewise.
54738         (sinh_test_downward): Likewise.
54739         (sinh_test_upward): Likewise.
54740         (sqrt_test): Likewise.
54741         (tan_test): Likewise.
54742         (tan_test_tonearest): Likewise.
54743         (tan_test_towardzero): Likewise.
54744         (tan_test_downward): Likewise.
54745         (tan_test_upward): Likewise.
54746         (tanh_test): Likewise.
54747         (tgamma_test): Likewise.
54748         (y0_test): Likewise.
54749         (y1_test): Likewise.
54750         (yn_test): Likewise.
54751
54752         * math/gen-libm-test.pl (adjust_arg): Remove function.
54753         (special_function): Remove argument $in_func.  Only handle
54754         generating output for tables of tests, not inside functions.
54755         (parse_args): Likewise.
54756         (generate_testfile): Remove variable $in_func.  Update call to
54757         parse_args.
54758         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
54759         (MINUS_ZERO_INIT): Rename macro to minus_zero.
54760         (PLUS_INFTY_INIT): Rename macro to plus_infty.
54761         (MINUS_INFTY_INIT): Rename macro to minus_infty.
54762         (QNAN_VALUE_INIT): Rename macro to qnan_value.
54763         (MAX_VALUE_INIT): Rename macro to max_value.
54764         (MIN_VALUE_INIT): Rename macro to min_value.
54765         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
54766         (plus_zero): Remove variable.
54767         (minus_zero): Likewise.
54768         (plus_infty): Likewise.
54769         (minus_infty): Likewise.
54770         (qnan_value): Likewise.
54771         (max_value): Likewise.
54772         (min_value): Likewise.
54773         (min_subnorm_value): Likewise.
54774
54775 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
54776
54777         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
54778         uint64_t or uint32_t usage.
54779         * crypt/sha256-block.c: Likewise.
54780         * crypt/sha256-crypt.c: Likewise.
54781         * crypt/sha256.c: Likewise.
54782         * crypt/sha512-block.c: Likewise.
54783         * crypt/sha512-crypt.c: Likewise.
54784         * crypt/sha512.c: Likewise.
54785         * debug/backtrace-tst.c: Likewise.
54786         * debug/pcprofiledump.c: Likewise.
54787         * elf/cache.c: Likewise.
54788         * elf/dl-cache.c: Likewise.
54789         * elf/dl-misc.c: Likewise.
54790         * elf/dl-profile.c: Likewise.
54791         * elf/dl-support.c: Likewise.
54792         * elf/ldconfig.c: Likewise.
54793         * elf/sprof.c: Likewise.
54794         * iconv/dummy-repertoire.c: Likewise.
54795         * iconv/iconv_charmap.c: Likewise.
54796         * iconv/skeleton.c: Likewise.
54797         * iconvdata/8bit-generic.c: Likewise.
54798         * iconvdata/cp737.h: Likewise.
54799         * iconvdata/cp775.h: Likewise.
54800         * iconvdata/ibm1008.h: Likewise.
54801         * iconvdata/ibm1025.h: Likewise.
54802         * iconvdata/ibm1046.h: Likewise.
54803         * iconvdata/ibm1097.h: Likewise.
54804         * iconvdata/ibm1112.h: Likewise.
54805         * iconvdata/ibm1122.h: Likewise.
54806         * iconvdata/ibm1123.h: Likewise.
54807         * iconvdata/ibm1124.h: Likewise.
54808         * iconvdata/ibm1129.h: Likewise.
54809         * iconvdata/ibm1130.h: Likewise.
54810         * iconvdata/ibm1132.h: Likewise.
54811         * iconvdata/ibm1133.h: Likewise.
54812         * iconvdata/ibm1137.h: Likewise.
54813         * iconvdata/ibm1140.h: Likewise.
54814         * iconvdata/ibm1141.h: Likewise.
54815         * iconvdata/ibm1142.h: Likewise.
54816         * iconvdata/ibm1143.h: Likewise.
54817         * iconvdata/ibm1144.h: Likewise.
54818         * iconvdata/ibm1145.h: Likewise.
54819         * iconvdata/ibm1146.h: Likewise.
54820         * iconvdata/ibm1147.h: Likewise.
54821         * iconvdata/ibm1148.h: Likewise.
54822         * iconvdata/ibm1149.h: Likewise.
54823         * iconvdata/ibm1153.h: Likewise.
54824         * iconvdata/ibm1154.h: Likewise.
54825         * iconvdata/ibm1155.h: Likewise.
54826         * iconvdata/ibm1156.h: Likewise.
54827         * iconvdata/ibm1157.h: Likewise.
54828         * iconvdata/ibm1158.h: Likewise.
54829         * iconvdata/ibm1160.h: Likewise.
54830         * iconvdata/ibm1161.h: Likewise.
54831         * iconvdata/ibm1162.h: Likewise.
54832         * iconvdata/ibm1163.h: Likewise.
54833         * iconvdata/ibm1164.h: Likewise.
54834         * iconvdata/ibm1166.h: Likewise.
54835         * iconvdata/ibm1167.h: Likewise.
54836         * iconvdata/ibm12712.h: Likewise.
54837         * iconvdata/ibm1390.h: Likewise.
54838         * iconvdata/ibm1399.h: Likewise.
54839         * iconvdata/ibm16804.h: Likewise.
54840         * iconvdata/ibm4517.h: Likewise.
54841         * iconvdata/ibm4899.h: Likewise.
54842         * iconvdata/ibm4909.h: Likewise.
54843         * iconvdata/ibm4971.h: Likewise.
54844         * iconvdata/ibm5347.h: Likewise.
54845         * iconvdata/ibm803.h: Likewise.
54846         * iconvdata/ibm856.h: Likewise.
54847         * iconvdata/ibm901.h: Likewise.
54848         * iconvdata/ibm902.h: Likewise.
54849         * iconvdata/ibm9030.h: Likewise.
54850         * iconvdata/ibm9066.h: Likewise.
54851         * iconvdata/ibm921.h: Likewise.
54852         * iconvdata/ibm922.h: Likewise.
54853         * iconvdata/ibm9448.h: Likewise.
54854         * iconvdata/isiri-3342.h: Likewise.
54855         * iconvdata/jis0201.h: Likewise.
54856         * include/link.h: Likewise.
54857         * include/netdb.h: Likewise.
54858         * inet/check_native.c: Likewise.
54859         * inet/check_pf.c: Likewise.
54860         * inet/getipv4sourcefilter.c: Likewise.
54861         * inet/getnameinfo.c: Likewise.
54862         * inet/getsourcefilter.c: Likewise.
54863         * inet/htonl.c: Likewise.
54864         * inet/setipv4sourcefilter.c: Likewise.
54865         * inet/setsourcefilter.c: Likewise.
54866         * inet/test-inet6_opt.c: Likewise.
54867         * inet/tst-network.c: Likewise.
54868         * locale/C-collate.c: Likewise.
54869         * locale/C-ctype.c: Likewise.
54870         * locale/C-time.c: Likewise.
54871         * locale/C-translit.h: Likewise.
54872         * locale/loadarchive.c: Likewise.
54873         * locale/programs/3level.h: Likewise.
54874         * locale/programs/charmap.c: Likewise.
54875         * locale/programs/charmap.h: Likewise.
54876         * locale/programs/ld-address.c: Likewise.
54877         * locale/programs/ld-collate.c: Likewise.
54878         * locale/programs/ld-ctype.c: Likewise.
54879         * locale/programs/ld-identification.c: Likewise.
54880         * locale/programs/ld-measurement.c: Likewise.
54881         * locale/programs/ld-messages.c: Likewise.
54882         * locale/programs/ld-monetary.c: Likewise.
54883         * locale/programs/ld-name.c: Likewise.
54884         * locale/programs/ld-numeric.c: Likewise.
54885         * locale/programs/ld-paper.c: Likewise.
54886         * locale/programs/ld-telephone.c: Likewise.
54887         * locale/programs/ld-time.c: Likewise.
54888         * locale/programs/linereader.c: Likewise.
54889         * locale/programs/locale.c: Likewise.
54890         * locale/programs/locarchive.c: Likewise.
54891         * locale/programs/locfile.h: Likewise.
54892         * locale/programs/repertoire.c: Likewise.
54893         * locale/programs/simple-hash.c: Likewise.
54894         * locale/programs/simple-hash.h: Likewise.
54895         * malloc/memusage.c: Likewise.
54896         * malloc/memusagestat.c: Likewise.
54897         * nis/nis_defaults.c: Likewise.
54898         * nis/nis_hash.c: Likewise.
54899         * nis/nis_print.c: Likewise.
54900         * nis/nis_xdr.c: Likewise.
54901         * nscd/connections.c: Likewise.
54902         * nscd/hstcache.c: Likewise.
54903         * nscd/nscd_gethst_r.c: Likewise.
54904         * nscd/nscd_getserv_r.c: Likewise.
54905         * nscd/nscd_helper.c: Likewise.
54906         * nscd/servicescache.c: Likewise.
54907         * nss/makedb.c: Likewise.
54908         * nss/nss_db/db-XXX.c: Likewise.
54909         * nss/nss_db/db-initgroups.c: Likewise.
54910         * nss/nss_db/db-netgrp.c: Likewise.
54911         * nss/nss_files/files-network.c: Likewise.
54912         * nss/nss_files/files-parse.c: Likewise.
54913         * posix/bug-regex5.c: Likewise.
54914         * posix/fnmatch_loop.c: Likewise.
54915         * posix/regcomp.c: Likewise.
54916         * posix/regexec.c: Likewise.
54917         * posix/tst-rfc3484-2.c: Likewise.
54918         * posix/tst-rfc3484-3.c: Likewise.
54919         * posix/tst-rfc3484.c: Likewise.
54920         * resolv/nss_dns/dns-canon.c: Likewise.
54921         * resolv/nss_dns/dns-network.c: Likewise.
54922         * resolv/res_init.c: Likewise.
54923         * resolv/res_mkquery.c: Likewise.
54924         * resolv/tst-aton.c: Likewise.
54925         * stdlib/cxa_atexit.c: Likewise.
54926         * stdlib/cxa_finalize.c: Likewise.
54927         * stdlib/gen-fpioconst.c: Likewise.
54928         * stdlib/strtol_l.c: Likewise.
54929         * string/tst-endian.c: Likewise.
54930         * sunrpc/auth_des.c: Likewise.
54931         * sunrpc/clnt_udp.c: Likewise.
54932         * sunrpc/rtime.c: Likewise.
54933         * sunrpc/svcauth_des.c: Likewise.
54934         * sunrpc/xdr.c: Likewise.
54935         * sunrpc/xdr_intXX_t.c: Likewise.
54936         * sunrpc/xdr_rec.c: Likewise.
54937         * sysdeps/generic/ldconfig.h: Likewise.
54938         * sysdeps/generic/ldsodefs.h: Likewise.
54939         * sysdeps/generic/memusage.h: Likewise.
54940         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
54941         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
54942         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
54943         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
54944         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
54945         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
54946         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
54947         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
54948         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
54949         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
54950         * sysdeps/posix/getaddrinfo.c: Likewise.
54951         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
54952         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
54953         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
54954         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
54955         * sysdeps/powerpc/test-gettimebase.c: Likewise.
54956         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
54957         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
54958         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
54959         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
54960         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
54961         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
54962         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
54963         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
54964         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
54965         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
54966         * sysdeps/x86_64/dl-tls.h: Likewise.
54967         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
54968         * time/alt_digit.c: Likewise.
54969         * time/era.c: Likewise.
54970         * wcsmbs/tst-c16c32-1.c: Likewise.
54971
54972 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54973
54974         * math/libm-test.inc (struct test_sincos_data): New type.
54975         (RUN_TEST_LOOP_sincos): New macro.
54976         (sincos_test_data): New variable.
54977         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
54978
54979 2013-05-16  Richard Henderson  <rth@redhat.com>
54980
54981         * math/atest-exp2.c (LIMB64): New macro.
54982         (CONSTSZ): New macro.
54983         (mp_exp1, mp_exp_m1, mp_log2): New variables.
54984         (hexdig): Move ...
54985         (print_mpn_fp): ... to function scope.
54986         (read_mpn_hex): Remove.
54987         (get_log2): Remove.
54988         (exp2_mpn): Use mp_log2.
54989         (main): Use mp_exp1.
54990
54991 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54992
54993         * math/libm-test.inc: Remove comment about not testing "inexact"
54994         exceptions.
54995         (INEXACT_EXCEPTION): New macro.
54996         (NO_INEXACT_EXCEPTION): Likewise.
54997         (INVALID_EXCEPTION_OK): Update value.
54998         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
54999         (OVERFLOW_EXCEPTION_OK): Likewise.
55000         (UNDERFLOW_EXCEPTION_OK): Likewise.
55001         (IGNORE_ZERO_INF_SIGN): Likewise.
55002         (ERRNO_UNCHANGED): Likewise.
55003         (ERRNO_EDOM): Likewise.
55004         (ERRNO_ERANGE): Likewise.
55005         (test_exceptions): Handle testing "inexact" exceptions.
55006         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
55007         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
55008         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
55009         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
55010         INEXACT_EXCEPTION.
55011         (rint_towardzero_test_data): Likewise.
55012         (rint_downward_test_data): Likewise.
55013         (rint_upward_test_data): Likewise.
55014
55015         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
55016         with OVERFLOW_EXCEPTION.
55017         (exp10_test_data): Likewise.
55018         (exp2_test_data): Likewise.
55019         (expm1_test_data): Likewise.
55020         (lgamma_test_data): Likewise.
55021         (pow_test_data): Likewise.
55022         (tgamma_test_data): Likewise.
55023         (yn_test_data): Remove duplicate test of overflow.
55024
55025         * math/libm-test.inc (struct test_cc_c_data): New type.
55026         (RUN_TEST_LOOP_cc_c): New macro.
55027         (cpow_test_data): New variable.
55028         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
55029
55030         * math/libm-test.inc (struct test_f_L_data): New type.
55031         (RUN_TEST_LOOP_f_L): New macro.
55032         (llrint_test_data): New variable.
55033         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
55034         (llrint_tonearest_test_data): New variable.
55035         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
55036         (llrint_towardzero_test_data): New variable.
55037         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
55038         (llrint_downward_test_data): New variable.
55039         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
55040         (llrint_upward_test_data): New variable.
55041         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
55042         (llround_test_data): New variable.
55043         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
55044
55045 2013-05-13  Peter Collingbourne  <pcc@google.com>
55046
55047         * math/atest-exp2.c (get_log2): Remove const attribute.
55048
55049 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
55050
55051         * math/libm-test.inc (struct test_f_l_data): New type.
55052         (RUN_TEST_LOOP_f_l): New macro.
55053         (lrint_test_data): New variable.
55054         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
55055         (lrint_tonearest_test_data): New variable.
55056         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
55057         (lrint_towardzero_test_data): New variable.
55058         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
55059         (lrint_downward_test_data): New variable.
55060         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
55061         (lrint_upward_test_data): New variable.
55062         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
55063         (lround_test_data): New variable.
55064         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
55065
55066 2013-05-15  Peter Collingbourne  <pcc@google.com>
55067
55068         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
55069         (EXTRACT_WORDS64) Use where appropriate.
55070         (INSERT_WORDS64) Likewise.
55071
55072         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
55073         constraints with x constraints.
55074         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
55075
55076         * malloc/obstack.c (_obstack_compat): Add initializer.
55077
55078 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
55079
55080         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
55081         si_trapno and add si_addr_lsb to _sifields.sigfault.
55082         (si_trapno): Remove macro.
55083         (si_addr_lsb): Define new macro.
55084         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
55085
55086 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
55087
55088         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
55089         instead of TEST_f_l.
55090         (llrint_test_tonearest): Likewise.
55091         (llrint_test_towardzero): Likewise.
55092         (llrint_test_downward): Likewise.
55093         (llrint_test_upward): Likewise.
55094         (llround_test): Likewise.
55095
55096         * math/libm-test.inc (struct test_f_i_data): Add comment.
55097         (RUN_TEST_LOOP_f_b): New macro.
55098         (RUN_TEST_LOOP_f_b_tg): Likewise.
55099         (finite_test_data): New variable.
55100         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
55101         (isfinite_test_data): New variable.
55102         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
55103         (isinf_test_data): New variable.
55104         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
55105         (isnan_test_data): New variable.
55106         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
55107         (isnormal_test_data): New variable.
55108         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
55109         (issignaling_test_data): New variable.
55110         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
55111         (signbit_test_data): New variable.
55112         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
55113
55114         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
55115         with INVALID_EXCEPTION.
55116         (acosh_test_data): Likewise.
55117         (asin_test_data): Likewise.
55118         (atanh_test_data): Likewise.
55119         (fmod_test_data): Likewise.
55120         (log_test_data): Likewise.
55121         (log10_test_data): Likewise.
55122         (log2_test_data): Likewise.
55123         (pow_test_data): Likewise.
55124         (sqrt_test_data): Likewise.
55125         (y0_test_data): Likewise.
55126         (y1_test_data): Likewise.
55127         (yn_test_data): Likewise.
55128
55129         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
55130         function contents.
55131
55132         * math/libm-test.inc (struct test_ff_i_data): New type.
55133         (RUN_TEST_LOOP_ff_i_tg): New macro.
55134         (isgreater_test_data): New variable.
55135         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
55136         (isgreaterequal_test_data): New variable.
55137         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
55138         (isless_test_data): New variable.
55139         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
55140         (islessequal_test_data): New variable.
55141         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
55142         (islessgreater_test_data): New variable.
55143         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
55144         (isunordered_test_data): New variable.
55145         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
55146
55147 2013-05-14  David S. Miller  <davem@davemloft.net>
55148
55149         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55150
55151 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
55152
55153         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
55154
55155         * math/libm-test.inc (struct test_fF_f1_data): Change type of
55156         extra_test to int.
55157         (struct test_f_i_data): Change type of max_ulp to int.
55158
55159         * math/libm-test.inc (test_ffI_f1_data): New type.
55160         (RUN_TEST_LOOP_ffI_f1): New macro.
55161         (remquo_test_data): New variable.
55162         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
55163
55164         * setjmp/tst-setjmp-fp.c: New file.
55165         * setjmp/Makefile (tests): Add tst-setjmp-fp.
55166         (link-libm): New variable.
55167         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
55168
55169         * math/libm-test.inc (struct test_f_i_data): New type.
55170         (RUN_TEST_LOOP_f_i): New macro.
55171         (RUN_TEST_LOOP_f_i_tg): Likewise.
55172         (fpclassify_test_data): New variable.
55173         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
55174         (ilogb_test_data): New variable.
55175         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
55176
55177         * math/libm-test.inc (scalbln_test): Correct function name in END
55178         call.
55179
55180         * math/libm-test.inc (struct test_f_f1_data): Add comment.
55181         (RUN_TEST_LOOP_fI_f1): New macro.
55182         (frexp_test_data): New variable.
55183         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
55184
55185         * math/libm-test.inc (struct test_fF_f1_data): New type.
55186         (RUN_TEST_LOOP_fF_f1): New macro.
55187         (modf_test_data): New variable.
55188         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
55189
55190         * math/libm-test.inc (struct test_f_f1_data): New type.
55191         (RUN_TEST_LOOP_f_f1): New macro.
55192         (gamma_test_data): New variable.
55193         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
55194         (lgamma_test_data): New variable.
55195         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
55196
55197 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
55198
55199         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
55200         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
55201         (main): Comment "tls" pseudo-hwcap.
55202
55203 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
55204
55205         * math/libm-test.inc (struct test_fl_f_data): New type.
55206         (RUN_TEST_LOOP_fl_f): New variable.
55207         (scalbln_test_data): New variable.
55208         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
55209
55210         * math/libm-test.inc (struct test_fi_f_data): New type.
55211         (RUN_TEST_LOOP_fi_f): New macro.
55212         (ldexp_test_data): New variable.
55213         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
55214         (scalbn_test_data): New variable.
55215         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
55216
55217         * math/libm-test.inc (struct test_c_f_data): New type.
55218         (RUN_TEST_LOOP_c_f): New macro.
55219         (cabs_test_data): New variable.
55220         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
55221         (carg_test_data): New variable.
55222         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
55223         (cimag_test_data): New variable.
55224         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
55225         (creal_test_data): New variable.
55226         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
55227
55228         * math/libm-test.inc (struct test_if_f_data): New type.
55229         (RUN_TEST_LOOP_if_f): New macro.
55230         (jn_test_data): New variable.
55231         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
55232         (yn_test_data): New variable.
55233         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
55234
55235         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
55236
55237 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55238
55239         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
55240         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
55241
55242 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
55243
55244         * benchtests/Makefile (CPPFLAGS-nonlib): Add
55245         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
55246         (bench-deps): Add bench-timing.h.
55247         * benchtests-bench-skeleton.c: Include bench-timing.h.
55248         (main): Use TIMING_* macros instead of clock_gettime.
55249         * benchtests/bench-timing.h: New file.
55250
55251         [BZ #14582]
55252         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
55253         Renamed from _LIB_VERSION.
55254         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
55255
55256 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
55257
55258         * math/libm-test.inc (struct test_fff_f_data): New type.
55259         (RUN_TEST_LOOP_fff_f): New macro.
55260         (fma_test_data): New variable.
55261         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
55262         (fma_towardzero_test_data): New variable.
55263         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
55264         (fma_downward_test_data): New variable.
55265         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
55266         (fma_upward_test_data): New variable.
55267         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
55268
55269         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
55270         (struct test_c_c_data): New type.
55271         (RUN_TEST_LOOP_c_c): New macro.
55272         (cacos_test_data): New variable.
55273         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
55274         (cacosh_test_data): New variable.
55275         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
55276         (casin_test_data): New variable.
55277         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
55278         (casinh_test_data): New variable.
55279         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
55280         (catan_test_data): New variable.
55281         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
55282         (catanh_test_data): New variable.
55283         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
55284         (ccos_test_data): New variable.
55285         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
55286         (ccosh_test_data): New variable.
55287         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
55288         (cexp_test_data): New variable.
55289         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
55290         (clog_test_data): New variable.
55291         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
55292         (clog10_test_data): New variable.
55293         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
55294         (conj_test_data): New variable.
55295         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
55296         (cproj_test_data): New variable.
55297         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
55298         (csin_test_data): New variable.
55299         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
55300         (csinh_test_data): New variable.
55301         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
55302         (csqrt_test_data): New variable.
55303         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
55304         (ctan_test_data): New variable.
55305         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
55306         (ctan_tonearest_test_data): New variable.
55307         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
55308         (ctan_towardzero_test_data): New variable.
55309         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
55310         (ctan_downward_test_data): New variable.
55311         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
55312         (ctan_upward_test_data): New variable.
55313         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
55314         (ctanh_test_data): New variable.
55315         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
55316         (ctanh_tonearest_test_data): New variable.
55317         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
55318         (ctanh_towardzero_test_data): New variable.
55319         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
55320         (ctanh_downward_test_data): New variable.
55321         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
55322         (ctanh_upward_test_data): New variable.
55323         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
55324         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
55325         of BUILD_COMPLEX.
55326
55327         * math/libm-test.inc (struct test_ff_f_data): New type.
55328         (struct test_ff_f_data_nexttoward): Likewise.
55329         (RUN_TEST_LOOP_2_f): New macro.
55330         (RUN_TEST_LOOP_ff_f): Likewise.
55331         (atan2_test_data): New variable.
55332         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
55333         (copysign_test_data): New variable.
55334         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
55335         (fdim_test_data): New variable.
55336         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
55337         (fmax_test_data): New variable.
55338         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
55339         (fmin_test_data): New variable.
55340         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
55341         (fmod_test_data): New variable.
55342         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
55343         (hypot_test_data): New variable.
55344         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
55345         (nextafter_test_data): New variable.
55346         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
55347         (nexttoward_test_data): New variable.
55348         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
55349         (pow_test_data): New variable.
55350         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
55351         (pow_tonearest_test_data): New variable.
55352         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
55353         (pow_towardzero_test_data): New variable.
55354         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
55355         (pow_downward_test_data): New variable.
55356         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
55357         (pow_upward_test_data): New variable.
55358         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
55359         (remainder_test_data): New variable.
55360         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
55361         (scalb_test_data): New variable.
55362         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
55363         * sysdeps/i386/fpu/libm-test-ulps: Update.
55364
55365 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
55366
55367         * math/libm-test.inc (fma_test): Use max_value instead of local
55368         variable fltmax.
55369         (nextafter_test): Likewise.
55370
55371         * math/libm-test.inc (acos_towardzero_test_data): New variable.
55372         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
55373         (acos_downward_test_data): New variable.
55374         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55375         (acos_upward_test_data): New variable.
55376         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
55377         (acosh_test_data): New variable.
55378         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
55379         (asin_test_data): New variable.
55380         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
55381         (asin_tonearest_test_data): New variable.
55382         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
55383         (asin_towardzero_test_data): New variable.
55384         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
55385         (asin_downward_test_data): New variable.
55386         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55387         (asin_upward_test_data): New variable.
55388         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
55389         (asinh_test_data): New variable.
55390         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
55391         (atan_test_data): New variable.
55392         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
55393         (atanh_test_data): New variable.
55394         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
55395         (cbrt_test_data): New variable.
55396         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
55397         (ceil_test_data): New variable.
55398         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
55399         (cos_test_data): New variable.
55400         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
55401         (cos_tonearest_test_data): New variable.
55402         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
55403         (cos_towardzero_test_data): New variable.
55404         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
55405         (cos_downward_test_data): New variable.
55406         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55407         (cos_upward_test_data): New variable.
55408         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
55409         (cosh_test_data): New variable.
55410         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
55411         (cosh_tonearest_test_data): New variable.
55412         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
55413         (cosh_towardzero_test_data): New variable.
55414         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
55415         (cosh_downward_test_data): New variable.
55416         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55417         (cosh_upward_test_data): New variable.
55418         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
55419         (erf_test_data): New variable.
55420         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
55421         (erfc_test_data): New variable.
55422         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
55423         (exp_test_data): New variable.
55424         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
55425         (exp_tonearest_test_data): New variable.
55426         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
55427         (exp_towardzero_test_data): New variable.
55428         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
55429         (exp_downward_test_data): New variable.
55430         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55431         (exp_upward_test_data): New variable.
55432         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
55433         (exp10_test_data): New variable.
55434         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
55435         (exp2_test_data): New variable.
55436         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
55437         (expm1_test_data): New variable.
55438         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
55439         (fabs_test_data): New variable.
55440         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
55441         (floor_test_data): New variable.
55442         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
55443         (j0_test_data): New variable.
55444         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
55445         (j1_test_data): New variable.
55446         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
55447         (log_test_data): New variable.
55448         (log_test): Run tests with RUN_TEST_LOOP_f_f.
55449         (log10_test_data): New variable.
55450         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
55451         (log1p_test_data): New variable.
55452         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
55453         (log2_test_data): New variable.
55454         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
55455         (logb_test_data): New variable.
55456         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
55457         (logb_downward_test_data): New variable.
55458         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55459         (nearbyint_test_data): New variable.
55460         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
55461         (rint_test_data): New variable.
55462         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
55463         (rint_tonearest_test_data): New variable.
55464         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
55465         (rint_towardzero_test_data): New variable.
55466         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
55467         (rint_downward_test_data): New variable.
55468         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55469         (rint_upward_test_data): New variable.
55470         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
55471         (round_test_data): New variable.
55472         (round_test): Run tests with RUN_TEST_LOOP_f_f.
55473         (sin_test_data): New variable.
55474         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
55475         (sin_tonearest_test_data): New variable.
55476         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
55477         (sin_towardzero_test_data): New variable.
55478         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
55479         (sin_downward_test_data): New variable.
55480         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55481         (sin_upward_test_data): New variable.
55482         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
55483         (sinh_test_data): New variable.
55484         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
55485         (sinh_tonearest_test_data): New variable.
55486         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
55487         (sinh_towardzero_test_data): New variable.
55488         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
55489         (sinh_downward_test_data): New variable.
55490         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55491         (sinh_upward_test_data): New variable.
55492         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
55493         (sqrt_test_data): New variable.
55494         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
55495         (tan_test_data): New variable.
55496         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
55497         (tan_tonearest_test_data): New variable.
55498         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
55499         (tan_towardzero_test_data): New variable.
55500         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
55501         (tan_downward_test_data): New variable.
55502         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
55503         (tan_upward_test_data): New variable.
55504         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
55505         (tanh_test_data): New variable.
55506         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
55507         (tgamma_test_data): New variable.
55508         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
55509         (trunc_test_data): New variable.
55510         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
55511         (y0_test_data): New variable.
55512         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
55513         (y1_test_data): New variable.
55514         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
55515         (significand_test_data): New variable.
55516         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
55517
55518 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
55519
55520         [BZ #12387]
55521         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
55522
55523 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
55524
55525         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
55526
55527 2013-05-10  Andreas Jaeger  <aj@suse.de>
55528
55529         [BZ #15448]
55530         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
55531         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
55532
55533 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
55534
55535         * math/gen-libm-test.pl (adjust_arg): New function.
55536         (special_functions): Handle generating output in both functions
55537         and arrays.
55538         (parse_args): Likewise.
55539         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
55540         $in_func argument to parse_args.
55541         * math/libm-test.inc (struct test_f_f_data): New type.
55542         (IF_ROUND_INIT_): New macro.
55543         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
55544         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
55545         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
55546         (IF_ROUND_INIT_FE_UPWARD): Likewise.
55547         (ROUND_RESTORE_): Likewise.
55548         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
55549         (ROUND_RESTORE_FE_TONEAREST): Likewise.
55550         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
55551         (ROUND_RESTORE_FE_UPWARD): Likewise.
55552         (RUN_TEST_LOOP_f_f): New macro.
55553         (acos_test_data): New variable.
55554         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
55555         (acos_tonearest_test_data): New variable.
55556         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
55557
55558 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
55559
55560         * benchtests/bench-skeleton.c (startup): Fix coding style.
55561
55562 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
55563
55564         [BZ #6809]
55565         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
55566         negative infinity argument.
55567         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
55568         negative infinity argument.
55569         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
55570         negative infinity argument.
55571         * math/libm-test.inc (tgamma_test): Expect errno to be set for
55572         domain errors.
55573
55574 2013-05-10  Florian Weimer  <fweimer@redhat.com>
55575
55576         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
55577         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
55578         * iconv/iconv_prog.c (main): Likewise.
55579         * locale/programs/charmap-dir.c (charmap_readdir)
55580         (fopen_uncompressed): Likewise.
55581         * locale/programs/locfile.c (siblings_uncached)
55582         (write_locale_data): Use lstat64 instead of lstat.
55583         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
55584         stat.
55585
55586 2013-05-10  Andreas Jaeger  <aj@suse.de>
55587
55588         [BZ #15395]
55589         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
55590         localization.
55591         Include <locale.h>.
55592
55593 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
55594
55595         * elf/dl-close.c (_dl_close_worker): Add comments.
55596
55597 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
55598
55599         [BZ #15359]
55600         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
55601         high part of pi/2.
55602         (__ieee754_rem_pio2l): Update comments.
55603
55604         [BZ #15429]
55605         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
55606         high part of pi/2.
55607         (__ieee754_rem_pio2l): Update comments.
55608
55609         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
55610         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
55611
55612         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
55613         M_PI_4l.
55614
55615         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
55616         (M_PI_34_LOG10El): Likewise.
55617         (M_PI2_LOG10El): Likewise.
55618         (M_PI4_LOG10El): Likewise.
55619         (M_PI_LOG10El): Likewise.
55620
55621 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55622
55623         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55624
55625 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
55626
55627         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
55628         (MINUS_ZERO_INIT): Likewise.
55629         (PLUS_INFTY_INIT): Likewise.
55630         (MINUS_INFTY_INIT): Likewise.
55631         (QNAN_VALUE_INIT): Likewise.
55632         (MAX_VALUE_INIT): Likewise.
55633         (MIN_VALUE_INIT): Likewise.
55634         (MIN_SUBNORM_VALUE_INIT): Likewise.
55635         (plus_zero): Initialize with PLUS_ZERO_INIT.
55636         (minus_zero): Initialize with MINUS_ZERO_INIT.
55637         (plus_infty): Initialize with PLUS_INFTY_INIT.
55638         (minus_infty): Initialize with MINUS_INFTY_INIT.
55639         (qnan_value): Initialize with QNAN_VALUE_INIT.
55640         (max_value): Initialize with MAX_VALUE_INIT.
55641         (min_value): Initialize with MIN_VALUE_INIT.
55642         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
55643
55644         * math/libm-test.inc (RUN_TEST_if_f): New macro.
55645         (jn_test): Use TEST_if_f instead of TEST_ff_f.
55646         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
55647         (yn_test): Use TEST_if_f instead of TEST_ff_f.
55648
55649         * math/libm-test.inc (RUN_TEST_f_f): New macro.
55650         (RUN_TEST_2_f): Likewise.
55651         (RUN_TEST_ff_f): Likewise.
55652         (RUN_TEST_fi_f): Likewise.
55653         (RUN_TEST_fl_f): Likewise.
55654         (RUN_TEST_fff_f): Likewise.
55655         (RUN_TEST_c_f): Likewise.
55656         (RUN_TEST_f_f1): Likewise.
55657         (RUN_TEST_fF_f1): Likewise.
55658         (RUN_TEST_fI_f1): Likewise.
55659         (RUN_TEST_ffI_f1): Likewise.
55660         (RUN_TEST_c_c): Likewise.
55661         (RUN_TEST_cc_c): Likewise.
55662         (RUN_TEST_f_i): Likewise.
55663         (RUN_TEST_f_i_tg): Likewise.
55664         (RUN_TEST_ff_i_tg): Likewise.
55665         (RUN_TEST_f_b): Likewise.
55666         (RUN_TEST_f_b_tg): Likewise.
55667         (RUN_TEST_f_l): Likewise.
55668         (RUN_TEST_f_L): Likewise.
55669         (RUN_TEST_sincos): Likewise.
55670         * math/gen-libm-test.pl (new_test): Take new argument to indicate
55671         whether to show exceptions.  Do not include ");\n" in return
55672         value.
55673         (special_functions): Output call to RUN_TEST_sincos instead of
55674         check_float calls.  Update calls to new_test.
55675         (parse_args): Output call to single RUN_TEST_* macro instead of
55676         check_* calls and other assignments.  Update calls to new_test.
55677
55678         [BZ #2546]
55679         [BZ #2560]
55680         [BZ #5159]
55681         [BZ #15426]
55682         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
55683         input to result for tgamma overflow.
55684         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
55685         (gamma_coeff): New variable.
55686         (NCOEFF): New macro.
55687         (gamma_positive): New function.
55688         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
55689         underflow here.  Use gamma_positive instead of exp (lgamma) for
55690         other arguments.
55691         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
55692         (gamma_coeff): New variable.
55693         (NCOEFF): New macro.
55694         (gammaf_positive): New function.
55695         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
55696         underflow here.  Use gamma_positive instead of exp (lgamma) for
55697         other arguments.
55698         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
55699         (gamma_coeff): New variable.
55700         (NCOEFF): New macro.
55701         (gammal_positive): New function.
55702         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
55703         underflow here.  Use gamma_positive instead of exp (lgamma) for
55704         other arguments.
55705         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
55706         (gamma_coeff): New variable.
55707         (NCOEFF): New macro.
55708         (gammal_positive): New function.
55709         (__ieee754_gammal_r): Handle positive infinity, overflow and
55710         underflow here.  Handle NaN the same as positive infinity.  Remove
55711         check x < 0xffffffff for negative integers.  Use gamma_positive
55712         instead of exp (lgamma) for other arguments.
55713         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
55714         (gamma_coeff): New variable.
55715         (NCOEFF): New macro.
55716         (gammal_positive): New function.
55717         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
55718         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
55719         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
55720         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
55721         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
55722         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
55723         * sysdeps/generic/math_private.h (__gamma_productf): New
55724         prototype.
55725         (__gamma_product): Likewise.
55726         (__gamma_productl): Likewise.
55727         * math/Makefile (libm-calls): Add gamma_product.
55728         * math/libm-test.inc (tgamma_test): Add more tests.
55729         * sysdeps/i386/fpu/libm-test-ulps: Update.
55730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55731
55732 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
55733
55734         * benchtests/bench-skeleton.c (main): Preheat CPU.
55735
55736 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
55737
55738         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
55739
55740 2013-05-07  Roland McGrath  <roland@hack.frob.com>
55741
55742         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
55743         and _dl_skip_args_internal.
55744
55745 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
55746
55747         * manual/message.texi (Message Translation): Talk about users.
55748         Message to key mapping impacts design.
55749
55750 2013-05-06  Roland McGrath  <roland@hack.frob.com>
55751
55752         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
55753
55754         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
55755
55756         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
55757         * sysdeps/wordsize-64/glob64.c: ... here.
55758
55759         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
55760         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
55761         New macros.
55762
55763         * debug/getlogin_r_chk.c: Moved to ...
55764         * login/getlogin_r_chk.c: ... here.
55765         * debug/Makefile (routines): Move getlogin_r_chk to ...
55766         * login/Makefile (routines): ... here.
55767         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
55768         * login/Versions (libc: GLIBC_2.4): ... here.
55769
55770         * io/poll.c (__poll): Renamed from poll.
55771         Add libc_hidden_def.
55772         (poll): Define as weak alias.
55773
55774         * debug/ptsname_r_chk.c: Moved to ...
55775         * login/ptsname_r_chk.c: ... here.
55776         * debug/Makefile (routines): Move ptsname_r_chk to ...
55777         * login/Makefile (routines): ... here.
55778         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
55779         * login/Versions (libc: GLIBC_2.4): ... here.
55780
55781         * posix/getlogin.c: Moved to ...
55782         * login/getlogin.c: ... here.
55783         * posix/getlogin_r.c: Moved to ...
55784         * login/getlogin_r.c: ... here.
55785         * posix/getlogin_r.c: Moved to ...
55786         * login/getlogin_r.c: ... here.
55787         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
55788         * login/Makefile (routines): ... here.
55789         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
55790         * login/Versions (libc: GLIBC_2.0): ... here.
55791
55792         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
55793         (setrlimit): Define as weak alias.
55794
55795         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
55796         Call __ names for open, ftruncate, and close.
55797         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
55798         (truncate): Define as weak alias.
55799
55800 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
55801
55802         * math/gen-libm-test.pl (parse_args): Initialize x before each
55803         test of frexp, modf and remquo.
55804
55805         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
55806         test signgam value.
55807
55808 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55809
55810         [BZ #15418]
55811         [BZ #15419]
55812         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
55813         internal tests.
55814         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
55815
55816 2013-05-06  Roland McGrath  <roland@hack.frob.com>
55817
55818         * elf/dl-writev.h: New file.
55819         * elf/dl-misc.c: Include it.
55820         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
55821         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
55822
55823 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
55824
55825         * math/libm-test.inc (noXFails): Remove variable.
55826         (noXPasses): Likewise.
55827         (BUILD_COMPLEX_INT): Remove macro.
55828         (print_screen): Remove xfail argument.
55829         (print_screen_max_error): Likewise.
55830         (update_stats): Likewise.
55831         (print_max_error): Likewise.  Update calls to other affected
55832         functions.
55833         (print_complex_max_error): Likewise.
55834         (test_single_exception): Update calls to print_screen.
55835         (test_single_errno): Likewise.
55836         (check_float_internal): Remove xfail argument.  Update calls to
55837         other affected functions.
55838         (check_float): Likewise.
55839         (check_complex): Likewise.
55840         (check_int): Likewise.
55841         (check_long): Likewise.
55842         (check_bool): Likewise.
55843         (check_longlong): Likewise.
55844         (main): Don't print noXFails and noXPasses.
55845         * math/gen-libm-test.pl (top level): Don't mention expected
55846         failure handling in comment.
55847         (new_test): Don't handle expected failures.
55848         (parse_args): Don't mention expected failure handling in comment.
55849         (generate_testfile): Don't handle expected failures.
55850         (parse_ulps): Likewise.
55851         (print_ulps_file): Likewise.
55852         (get_failure): Remove function.
55853         (output_test): Don't handle expected failures.
55854         * make/README.libm-test: Don't mention expected failure handling.
55855
55856         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
55857         (minus_zero): Likewise.
55858         (plus_infty): Likewise.
55859         (minus_infty): Likewise.
55860         (qnan_value): Likewise.
55861         (max_value): Likewise.
55862         (min_value): Likewise.
55863         (min_subnorm_value): Likewise.
55864         (initialize): Do not initialize those variables dynamically.
55865
55866 2013-05-03  Roland McGrath  <roland@hack.frob.com>
55867
55868         * io/open.c (__open_2): Moved to ...
55869         * io/open_2.c: ... this new file.
55870         * io/open64.c (__open64_2): Moved to ...
55871         * io/open64_2.c: ... this new file.
55872         * io/openat.c (__openat_2): Moved to ...
55873         * io/openat_2.c: ... this new file.
55874         * io/openat64.c (__openat64_2): Moved to ...
55875         * io/openat64_2.c: ... this new file.
55876         * io/Makefile (routines): Add them.
55877         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
55878         * sysdeps/unix/sysv/linux/open_2.c: File removed.
55879         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
55880         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
55881         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
55882         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
55883         (__openat64): Add hidden_ver.
55884         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
55885         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
55886
55887         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
55888         Separately conditionalize setting of GLRO(dl_sysinfo) so
55889         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
55890         as well, but the actual setting is only under [NEED_DL_SYSINFO].
55891
55892 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55893
55894         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
55895         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
55896         definition.
55897         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
55898         * sysdeps/unix/sysv/linux/powerpc/init-first.c
55899         (_libc_vdso_platform_setup): Add __vdso_time initialization.
55900         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
55901         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
55902
55903 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
55904
55905         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
55906         test signgam value.
55907
55908         * math/libm-test.inc (hypot_test): Do not use
55909         IGNORE_ZERO_INF_SIGN.
55910
55911 2013-05-03  Andreas Jaeger  <aj@suse.de>
55912
55913         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
55914         Linux 3.9.
55915         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
55916         (PF_MAX): Adjust for VSOCK change.
55917
55918 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55919
55920         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55921
55922 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
55923
55924         [BZ #15264]
55925         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
55926         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
55927         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
55928
55929 2013-05-02  David S. Miller  <davem@davemloft.net>
55930
55931         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55932
55933 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
55934
55935         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
55936
55937 2013-05-01  Roland McGrath  <roland@hack.frob.com>
55938
55939         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
55940
55941 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
55942
55943         [BZ #14952]
55944         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
55945         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55946         Use __attribute__ ((__gnu_inline__)).
55947         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55948         Don't use __attribute__ ((__gnu_inline__)).
55949
55950 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
55951
55952         [BZ #15423]
55953         * math/s_catan.c (__catan): Handle small real or imaginary part of
55954         input specially to avoid spurious underflow.
55955         * math/s_catanf.c (__catanf): Likewise.
55956         * math/s_catanh.c (__catanh): Likewise.
55957         * math/s_catanhf.c (__catanhf): Likewise.
55958         * math/s_catanhl.c (__catanhl): Likewise.
55959         * math/s_catanl.c (__catanl): Likewise.
55960         * math/libm-test.inc (catan_test): Add more tests.
55961         (catanh_test): Likewise.
55962         * sysdeps/i386/fpu/libm-test-ulps: Update.
55963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55964
55965 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55966
55967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55968
55969 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
55970
55971         [BZ #15416]
55972         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
55973         accurately for denominator in atan2.
55974         * math/s_catanf.c (__catanf): Likewise.
55975         * math/s_catanh.c (__catanh): Likewise.
55976         * math/s_catanhf.c (__catanhf): Likewise.
55977         * math/s_catanhl.c (__catanhl): Likewise.
55978         * math/s_catanl.c (__catanl): Likewise.
55979         * math/libm-test.inc (catan_test): Add more tests.
55980         (catanh_test): Likewise.
55981         * sysdeps/i386/fpu/libm-test-ulps: Update.
55982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55983
55984 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
55985
55986         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
55987
55988         * benchtests/Makefile (bench): Remove slow benchmarks.
55989         * benchtests/atan-inputs: Add slow benchmark inputs.
55990         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
55991         (BENCH_FUNC): Accept variant offset.
55992         (VARIANT): Define.
55993         * benchtests/bench-skeleton.c (main): Run benchmark for each
55994         variant.
55995         * benchtests/cos-inputs: Add slow benchmark inputs.
55996         * benchtests/exp-inputs: Likewise.
55997         * benchtests/pow-inputs: Likewise.
55998         * benchtests/sin-inputs: Likewise.
55999         * benchtests/slowatan-inputs: Remove.
56000         * benchtests/slowatan.c: Remove.
56001         * benchtests/slowcos-inputs: Remove.
56002         * benchtests/slowcos.c: Remove.
56003         * benchtests/slowexp-inputs: Remove.
56004         * benchtests/slowexp.c: Remove.
56005         * benchtests/slowpow-inputs: Remove.
56006         * benchtests/slowpow.c: Remove.
56007         * benchtests/slowsin-inputs: Remove.
56008         * benchtests/slowsin.c: Remove.
56009         * benchtests/slowtan-inputs: Remove.
56010         * benchtests/slowtan.c: Remove.
56011         * benchtests/tan-inputs: Add slow benchmark inputs.
56012         * scripts/bench.pl: Parse comments and directives.
56013
56014         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
56015         in CPPFLAGS.
56016         ($(objpfx)bench-%.c): Remove *-ITER.
56017         * benchtests/bench-modf.c: Remove definition of ITER.
56018         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
56019         (main): Loop for DURATION seconds instead of fixed number of
56020         iterations.
56021         * scripts/bench.pl: Don't expect iterations in parameters.
56022
56023 2013-04-29  Roland McGrath  <roland@hack.frob.com>
56024
56025         * io/fchdir.c (__fchdir): Renamed from fchdir.
56026         (fchdir): Define as weak alias.
56027
56028 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
56029
56030         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
56031         (ERRNO_EDOM): Likewise.
56032         (ERRNO_ERANGE): Likewise.
56033         (noErrnoTests): New variable.
56034         (init_max_error): Set errno to 0.
56035         (test_single_errno): New function.
56036         (test_errno): Likewise.
56037         (check_float_internal): Call test_errno.  Set errno to 0.
56038         (check_complex): Refer to errno tests in comment.
56039         (check_int): Call test_errno.  Set errno to 0.
56040         (check_long): Likewise.
56041         (check_bool): Likewise.
56042         (check_longlong): Likewise.
56043         (cos_test): Use ERRNO_* flags for errno tests instead of
56044         check_int.
56045         (expm1_test): Likewise.
56046         (fmod_test): Likewise.
56047         (ilogb_test): Likewise.
56048         (lgamma_test): Likewise.
56049         (pow_test): Likewise.
56050         (remainder_test): Likewise.
56051         (sin_test): Likewise.
56052         (tan_test): Likewise.
56053         (yn_test): Likewise.
56054         (initialize): Set errno to 0.
56055         (main): Print number of errno tests.
56056         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
56057
56058 2013-04-29  Andreas Jaeger  <aj@suse.de>
56059
56060         [BZ #15084]
56061         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
56062         and RES_USEVC.
56063
56064         [BZ #15085]
56065         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
56066         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
56067         unimplemented.
56068
56069         [BZ #15380]
56070         * stdlib/random.c (__initstate): Return NULL if
56071         __initstate fails.
56072
56073         [BZ #15086]
56074         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
56075         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
56076         RES_SNGLKUPREOP.
56077
56078 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56079
56080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56081
56082 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
56083
56084         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
56085         of individual tests.
56086         (casin_test): Likewise.
56087         (casinh_test): Likewise.
56088
56089 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
56090
56091         [BZ #15409]
56092         * math/s_catan.c (__catan): Handle arguments with large real or
56093         imaginary part separately without squaring.
56094         * math/s_catanf.c (__catanf): Likewise.
56095         * math/s_catanh.c (__catanh): Likewise.
56096         * math/s_catanhf.c (__catanhf): Likewise.
56097         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
56098         and redefine.
56099         (__catanhl): Handle arguments with large real or imaginary part
56100         separately without squaring.
56101         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
56102         and redefine.
56103         (__catanl): Handle arguments with large real or imaginary part
56104         separately without squaring.
56105         * math/libm-test.inc (catan_test): Add more tests.
56106         (catanh_test): Likewise.
56107         * sysdeps/i386/fpu/libm-test-ulps: Update.
56108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56109
56110 2013-04-27  Andreas Jaeger  <aj@suse.de>
56111
56112         [BZ #15007]
56113         * stdlib/stdlib.h: Update guards for qecvt.
56114         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
56115         <stdlib.h>.
56116
56117 2013-04-27  Allan McRae  <allan@archlinux.org>
56118
56119         * sysdeps/i386/fpu/libm-test-ulps: Update.
56120
56121 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
56122
56123         [BZ #15406]
56124         * math/s_catan.c: Include <float.h>.
56125         (__catan): Ensure underflow exception occurs for underflowed
56126         result.
56127         * math/s_catanf.c: Include <float.h>.
56128         (__catanf): Ensure underflow exception occurs for underflowed
56129         result.
56130         * math/s_catanh.c: Include <float.h>.
56131         (__catanh): Ensure underflow exception occurs for underflowed
56132         result.
56133         * math/s_catanhf.c: Include <float.h>.
56134         (__catanhf): Ensure underflow exception occurs for underflowed
56135         result.
56136         * math/s_catanhl.c: Include <float.h>.
56137         (__catanhl): Ensure underflow exception occurs for underflowed
56138         result.
56139         * math/s_catanl.c: Include <float.h>.
56140         (__catanl): Ensure underflow exception occurs for underflowed
56141         result.
56142         * math/libm-test.inc (catan_test): Add more tests.
56143         (catanh_test): Likewise.
56144
56145         [BZ #15405]
56146         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
56147         underflowed result.
56148         * math/s_ccoshf.c (__ccoshf): Likewise.
56149         * math/s_ccoshl.c (__ccoshl): Likewise.
56150         * math/s_csin.c (__csin): Likewise.
56151         * math/s_csinf.c (__csinf): Likewise.
56152         * math/s_csinh.c (__csinh): Likewise.
56153         * math/s_csinhf.c (__csinhf): Likewise.
56154         * math/s_csinhl.c (__csinhl): Likewise.
56155         * math/s_csinl.c (__csinl): Likewise.
56156         * math/libm-test.inc (ccos_test): Add more tests.
56157         (ccosh_test): Likewise.
56158         (csin_test): Likewise.
56159         (csinh_test): Likewise.
56160
56161 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56162
56163         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
56164         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
56165         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
56166         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
56167         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
56168         powerpc/power5+/fpu folders.
56169         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
56170
56171
56172 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
56173
56174         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
56175
56176 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
56177
56178         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
56179         additions to variable.
56180         [$(config-machine) = x86_64] (modules-names): Likewise.
56181         ($(objpfx)tst-audit3): Remove dependency.
56182         ($(objpfx)tst-audit3.out): Likewise.
56183         ($(objpfx)tst-audit4): Likewise.
56184         ($(objpfx)tst-audit4.out): Likewise.
56185         ($(objpfx)tst-audit5): Likewise.
56186         ($(objpfx)tst-audit5.out): Likewise.
56187         ($(objpfx)tst-audit6): Likewise.
56188         ($(objpfx)tst-audit6.out): Likewise.
56189         ($(objpfx)tst-audit7): Likewise.
56190         ($(objpfx)tst-audit7.out): Likewise.
56191         (tst-audit3-ENV): Remove variable.
56192         (tst-audit4-ENV): Likewise.
56193         (tst-audit5-ENV): Likewise.
56194         (tst-audit6-ENV): Likewise.
56195         (tst-audit7-ENV): Likewise.
56196         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
56197         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
56198         addition to variable.
56199         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
56200         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
56201         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
56202         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
56203         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
56204         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
56205         tst-audit3, tst-audit4 and tst-audit5.
56206         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
56207         tst-audit6 and tst-audit7.
56208         [$(subdir) = elf] (modules-names): Add audit modules for those
56209         tests.
56210         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
56211         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
56212         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
56213         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
56214         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
56215         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
56216         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
56217         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
56218         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
56219         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
56220         [$(subdir) = elf] (tst-audit3-ENV): New variable.
56221         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
56222         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
56223         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
56224         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
56225         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
56226         Likewise.
56227         [$(subdir) = elf && $(config-cflags-avx) = yes]
56228         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
56229         [$(subdir) = elf && $(config-cflags-avx) = yes]
56230         (CFLAGS-tst-auditmod4a.c): Likewise.
56231         [$(subdir) = elf && $(config-cflags-avx) = yes]
56232         (CFLAGS-tst-auditmod4b.c): Likewise.
56233         [$(subdir) = elf && $(config-cflags-avx) = yes]
56234         (CFLAGS-tst-auditmod6b.c): Likewise.
56235         [$(subdir) = elf && $(config-cflags-avx) = yes]
56236         (CFLAGS-tst-auditmod6c.c): Likewise.
56237         [$(subdir) = elf && $(config-cflags-avx) = yes]
56238         (CFLAGS-tst-auditmod7b.c): Likewise.
56239         * elf/tst-audit3.c: Move to ...
56240         * sysdeps/x86_64/tst-audit3.c: ... here.
56241         * elf/tst-audit4.c: Move to ...
56242         * sysdeps/x86_64/tst-audit4.c: ... here.
56243         * elf/tst-audit5.c: Move to ...
56244         * sysdeps/x86_64/tst-audit5.c: ... here.
56245         * elf/tst-audit6.c: Move to ...
56246         * sysdeps/x86_64/tst-audit6.c: ... here.
56247         * elf/tst-audit7.c: Move to ...
56248         * sysdeps/x86_64/tst-audit7.c: ... here.
56249         * elf/tst-auditmod3a.c: Move to ...
56250         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
56251         * elf/tst-auditmod3b.c: Move to ...
56252         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
56253         * elf/tst-auditmod4a.c: Move to ...
56254         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
56255         * elf/tst-auditmod4b.c: Move to ...
56256         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
56257         * elf/tst-auditmod5a.c: Move to ...
56258         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
56259         * elf/tst-auditmod5b.c: Move to ...
56260         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
56261         * elf/tst-auditmod6a.c: Move to ...
56262         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
56263         * elf/tst-auditmod6b.c: Move to ...
56264         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
56265         * elf/tst-auditmod6c.c: Move to ...
56266         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
56267         * elf/tst-auditmod7a.c: Move to ...
56268         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
56269         * elf/tst-auditmod7b.c: Move to ...
56270         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
56271
56272 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
56273
56274         [BZ #15366]
56275         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
56276         define unconditionally.
56277         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
56278         define unconditionally.
56279         (INT8_C, INT16_C, etc.): Likewise.
56280
56281 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
56282
56283         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
56284         __ehdr_start with hidden visibility.
56285
56286         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
56287
56288 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
56289
56290         * math/libm-test.inc (cos_test): Use accurate hex constants.
56291         (sincost_test): Likewise.
56292
56293 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
56294
56295         * math/libm-test.inc (catan_test): Add more tests.
56296         (catanh_test): Likewise.
56297
56298         * math/s_catanf.c (__catanf): Use suffixed floating-point
56299         constants.
56300         * math/s_catanhf.c (__catanhf): Likewise.
56301         * math/s_catanhl.c (__catanhl): Likewise.
56302         * math/s_catanl.c (__catanl): Likewise.
56303
56304         [BZ #15394]
56305         * math/s_catan.c (__catan): Calculate imaginary part of result
56306         with log1p not log unless computing log of number close to 0.
56307         * math/s_catanf.c (__catanf): Likewise.
56308         * math/s_catanl.c (__catanl): Likewise.
56309         * math/s_catanh.c (__catanh): Calculate real part of result with
56310         log1p not log unless computing log of number close to 0.
56311         * math/s_catanhf.c (__catanhf): Likewise.
56312         * math/s_catanhl.c (__catanhl): Likewise.
56313         * math/libm-test.inc (catan_test): Add more tests.
56314         (catanh_test): Likewise.
56315         * sysdeps/i386/fpu/libm-test-ulps: Update.
56316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56317
56318 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
56319
56320         * benchtests/Makefile: Mention files in which fast and slow
56321         paths of math functions are implemented.
56322
56323 2013-04-23  Roland McGrath  <roland@hack.frob.com>
56324
56325         * sysdeps/posix/timespec_get.c: New file.
56326
56327 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56328
56329         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
56330         POWER.
56331         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
56332         for POWER.
56333         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
56334         powerpc/power5/fpu folders.
56335         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
56336         * benchtests/Makefile: Add modf testcase.
56337         * benchtests/bench-modf.c: New file: Benchmark test for mo
56338
56339 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
56340
56341         [BZ #14888]
56342         * time/Makefile (tests): Add tst-strptime-whitespace.
56343         * time/strptime_l.c (get_number): Use ISSPACE.
56344         (__strptime_internal): Likewise.
56345         * time/tst-strptime-whitespace.c: New test case.
56346
56347 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
56348
56349         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
56350         member.
56351         (_nss_files_init): Set it here.
56352
56353 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
56354
56355         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
56356         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
56357         unsigned.
56358
56359 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
56360
56361         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
56362
56363 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
56364
56365         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
56366         size just once.
56367
56368 2013-04-21  David S. Miller  <davem@davemloft.net>
56369
56370         * po/ru.po: Update Russion translation from translation project.
56371
56372 2013-04-17  Adam Conrad  <adconrad@0c3.net>
56373
56374         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
56375         and setfsgid.
56376
56377 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
56378
56379         * configure.in: Remove i386 configure warning. Remove i386 case.
56380         * configure: Regenerate.
56381         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
56382         Add example to error message.
56383         * sysdeps/i386/configure: Regenerate.
56384
56385 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
56386
56387         * benchtests/Makefile (bench): Add cos, tan, slowcos and
56388         slowtan.
56389         * benchtests/cos-inputs: New file.
56390         * benchtests/slowcos-inputs: New file.
56391         * benchtests/slowcos.c: New file.
56392         * benchtests/slowtan-inputs: New file.
56393         * benchtests/slowtan.c: New file.
56394         * benchtests/tan-inputs: New file.
56395
56396 2013-04-16  Roland McGrath  <roland@hack.frob.com>
56397
56398         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
56399         considered kosher.
56400
56401 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
56402
56403         * benchtests/Makefile: Include cppflags-iterator.mk to add
56404         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
56405
56406         * Makefile.in (bench-clean): New target.
56407         * benchtests/Makefile (bench-clean): Likewise.
56408
56409 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
56410
56411         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
56412
56413 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
56414
56415         * stdio-common/tstdiomisc.c: Fix coding-style violation.
56416
56417 2013-04-15  Andreas Schwab  <schwab@suse.de>
56418
56419         * nscd/grpcache.c (cache_addgr): Properly check for short write.
56420         * nscd/initgrcache.c (addinitgroupsX): Likewise.
56421         * nscd/pwdcache.c (cache_addpw): Likewise.
56422         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
56423         more than recsize.
56424
56425 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56426
56427         * benchtests/Makefile (bench): Write all output to
56428         bench-out.tmp together.
56429
56430 2013-04-15  Andreas Schwab  <schwab@suse.de>
56431
56432         * nscd/nscd.c (main): Don't fork again after closing files.
56433
56434 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56435
56436         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
56437
56438         * benchtests/Rules (bench-deps): Collect dependencies into a
56439         single variable.  Add Makefile to dependencies.
56440         ($(objpfx)bench-%.c): Depend on bench-deps.
56441
56442 2013-04-12  Roland McGrath  <roland@hack.frob.com>
56443             Xavier Roche  <roche+kml2@exalead.com>
56444
56445         [BZ #15361]
56446         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
56447         just that it's a file descriptor.
56448         * manual/llio.texi (Synchronizing AIO Operations): Update description
56449         for EBADF error from aio_fsync.
56450
56451 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
56452
56453         * Rules (bench): Move target definition...
56454         * benchtests/Makefile: ... here.
56455
56456 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
56457
56458         * math/libm-test.inc (cos_test): Fix PI/2 test.
56459         (sincos_test): Likewise.
56460         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
56461         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
56462
56463 2013-04-11  Andreas Schwab  <schwab@suse.de>
56464
56465         [BZ #13988]
56466         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
56467         accept exponent character only when digits were seen.
56468         * stdio-common/Makefile (tests): Add bug26.
56469         * stdio-common/bug26.c: New file.
56470
56471         [BZ #14293]
56472         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
56473         non-freeable.
56474
56475 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
56476
56477         * Makeconfig (rtld-prefix): Define built linker prefix.
56478         * Rules (run-bench): Use it.
56479         * math/Makefile (run-regen-ulps): Likewise.
56480
56481         * Rules (bench): Remove eval.
56482
56483 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
56484             Roland McGrath  <roland@hack.frob.com>
56485             Ondrej Bilka  <neleai@seznam.cz>
56486
56487         [BZ #15346]
56488         * time/getdate.c: Include ctype.h and alloca.h.
56489         (__getdate_r): Trim leading and trailing spaces of input.
56490         * time/tst-getdate.c (tests): Add tests with leading and
56491         trailing spaces.
56492
56493 2013-04-08  Roland McGrath  <roland@hack.frob.com>
56494
56495         [BZ #14280]
56496         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
56497         when computing value.
56498
56499 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
56500
56501         * math/README.libm-test (How can I generate "libm-test-ulps"?):
56502         Use testrun.sh to run libm tests.
56503
56504         [BZ #15309]
56505         * elf/dl-open.c (dl_open_worker): memset all of seen array.
56506
56507 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
56508
56509         [BZ #15264]
56510         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
56511
56512 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
56513
56514         * Makefile.in (regen-ulps): New target.
56515         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
56516         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
56517         [ifneq (no,$(PERL)] (regen-ulps): New target.
56518         [ifeq (no,$(PERL)] (regen-ulps): New target.
56519         * math/libm-test.inc (ulps_file_name): Define.
56520         (output_dir): New variable.
56521         (options): Add "output-dir" option.
56522         (parse_opt): Handle 'o' case.
56523         (main): If output_dir is non-NULL use it as a prefix
56524         otherwise use "".
56525         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
56526
56527 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
56528
56529         [BZ #10060, #10062]
56530         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
56531         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
56532         fail configure if __sync_val_compare_and_swap is not inlined.
56533         * sysdeps/i386/configure: Regenerate.
56534         * configure.in: Build for i686 when configured for i386.
56535         * configure: Regenerate.
56536         * README: Remove i386 reference.
56537
56538 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
56539
56540         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
56541         * sysdeps/s390/s390-64/sysdep.h: Likewise.
56542
56543 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
56544
56545         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
56546         (lmsnanval): New variables.
56547         (F): Add conversion tests.
56548         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
56549         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
56550
56551         * stdio-common/tstdiomisc.c (F): Properly collect individual
56552         tests' results.
56553
56554         [BZ #14686, #15336]
56555         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
56556         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
56557         Instead, use input NaN values or generate a qNaN by arithmetic
56558         operation.  Also fix bugs to comply with the standard.
56559         * math/libm-test.inc (remainder_test): Add more tests.
56560
56561         [BZ #15335, #15342]
56562         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
56563         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
56564         input NaN values or generate a qNaN by arithmetic operation.
56565
56566         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
56567         unreachable code.
56568
56569         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
56570         definitions.
56571
56572 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
56573
56574         [BZ #14478]
56575         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
56576         underflowed result.
56577         * math/s_cexpf.c (__cexpf): Likewise.
56578         * math/s_cexpl.c (__cexpl): Likewise.
56579         * math/libm-test.inc (cexp_test): Add more tests.
56580
56581 2013-04-03  Andreas Schwab  <schwab@suse.de>
56582
56583         [BZ #15330]
56584         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
56585         order arrays from heap if bigger than alloca cutoff.
56586
56587 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
56588
56589         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
56590         (SNAN_TESTS_double): Refer to GCC PR56831.
56591         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
56592         GCC PR56828.
56593
56594 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
56595
56596         * Rules (bench): Move bench.out after the run is complete.
56597
56598         * Rules (bench): Echo currently running benchmark.
56599
56600         * benchtests/Makefile (bench): Add atan and slowatan.
56601         * benchtests/atan-inputs: New file.
56602         * benchtests/slowatan-inputs: New file.
56603         * benchtests/slowatan.c: New file.
56604
56605         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
56606         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
56607         its value.
56608
56609         [BZ #15305]
56610         * sysdeps/unix/sysv/linux/kernel-features.h
56611         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
56612         __ASSUME_XFS_RESTRICTED_CHOWN.
56613         * sysdeps/unix/sysv/linux/pathconf.c
56614         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
56615         Save and restore errno.
56616
56617 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
56618
56619         [BZ #15327]
56620         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
56621         arguments using __kernel_casinh.
56622         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
56623         arguments using __kernel_casinhf.
56624         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
56625         arguments using __kernel_casinhl.
56626         * math/libm-test.inc (cacosh_test): Add more tests.
56627         * sysdeps/i386/fpu/libm-test-ulps: Update.
56628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56629
56630 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
56631
56632         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
56633         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
56634
56635         * bench/Makefile (bench): Add sin and slowsin.
56636         * benchtests/sin-inputs: New file.
56637         * benchtests/slowsin-inputs: New file.
56638         * benchtests/slowsin.c: New file.
56639
56640         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
56641         (bench): Add slowexp and slowpow.
56642         (exp-ITER): Increase iterations.
56643         (pow-ITER): Likewise.
56644         * benchtests/exp-inputs: Change input.
56645         * benchtests/pow-inputs: Likewise.
56646         * benchtests/slowexp-inputs: New file.
56647         * benchtests/slowexp.c: New file.
56648         * benchtests/slowpow-inputs: New file.
56649         * benchtests/slowpow.c: New file.
56650
56651 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56652
56653         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
56654         instructions.
56655         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
56656         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
56657         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
56658         * benchtests/Makefile: Add rint benchtest.
56659         * benchtests/rint-inputs: Input for rint benchtest.
56660
56661 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
56662
56663         * Versions.def (libm): Add GLIBC_2.18.
56664         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
56665         hidden libm prototypes.
56666         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
56667         * math/Makefile (libm-calls): Add s_issignaling.
56668         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
56669         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
56670         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
56671         declaration.
56672         * math/math.h [__USE_GNU] (issignaling): New macro.
56673         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
56674         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
56675         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
56676         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
56677         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
56678         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
56679         * manual/arith.texi (issignaling): New section.
56680         * manual/libm-err-tab.pl (@all_functions): Update comment.
56681         * math/gen-libm-test.pl (parse_args): Apply special handling for
56682         issignaling.
56683         * math/libm-test.inc (print_float, issignaling_test): New
56684         functions.
56685         (check_float_internal): Add issignaling checks.
56686         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
56687         default definition.
56688         * sysdeps/powerpc/math-tests.h: New file.
56689         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
56690         tests.
56691         * math/test-snan.c (TEST_FUNC): Likewise.
56692
56693 2013-03-30  David S. Miller  <davem@davemloft.net>
56694
56695         * po/de.po: Update from translation team.
56696
56697 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
56698
56699         [BZ #10357]
56700         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56701         imaginary part less than 1.0 and real part less than 0.5
56702         specially.
56703         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56704         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56705         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
56706         (cacos_test): Add more tests.
56707         (casin_test): Likewise.
56708         (casinh_test): Likewise.
56709         * sysdeps/i386/fpu/libm-test-ulps: Update.
56710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56711
56712 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
56713
56714         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
56715         ONE with its value.
56716
56717         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
56718         (__pow_mp): Replace ONE and MONE with their values.
56719         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
56720         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
56721         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
56722         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
56723         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
56724         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
56725
56726         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
56727
56728         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
56729         (__pow_mp): Replace ZERO and MZERO with their values.
56730         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
56731         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
56732         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
56733         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
56734         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
56735         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
56736         (__sqr): Likewise.
56737
56738         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
56739
56740         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
56741
56742 2013-03-28  Roland McGrath  <roland@hack.frob.com>
56743
56744         * include/stdlib.h [!SHARED] (__call_tls_dtors):
56745         Declare with __attribute__ ((weak)).
56746         * stdlib/exit.c (__libc_atexit) [!SHARED]:
56747         Call __call_tls_dtors only if it's not NULL.
56748
56749 2013-03-28  Roland McGrath  <roland@hack.frob.com>
56750
56751         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
56752         didn't do it already, then set _dl_phdr and _dl_phnum based on the
56753         magic __ehdr_start linker symbol if it's defined.
56754         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
56755         them up here if it was already done.
56756
56757         * elf/dl-support.c (_dl_phdr): Make pointer to const.
56758         (_dl_aux_init): Use const in cast when setting it.
56759         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
56760         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
56761         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
56762
56763         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
56764         Declare them here.
56765         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
56766         * csu/libc-tls.c: Nor here.
56767         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
56768
56769         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
56770         (__libc_message): Never call vsyslog.
56771
56772 2013-03-28  Alan Modra  <amodra@gmail.com>
56773
56774         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
56775         Define as empty.
56776         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
56777         Likewise.
56778
56779 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56780
56781         [BZ #15214]
56782         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
56783         underflow.
56784         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56785
56786 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56787
56788         [BZ #15304]
56789         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
56790         Don't add gid passed as argument.
56791
56792         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
56793
56794 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
56795
56796         [BZ #15307]
56797         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56798         imaginary part between 1.0 and 1.5 and real part less than 0.5
56799         specially.
56800         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56801         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56802         * math/libm-test.inc (cacos_test): Add more tests.
56803         (casin_test): Likewise.
56804         (casinh_test): Likewise.
56805         * sysdeps/i386/fpu/libm-test-ulps: Update.
56806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56807
56808 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
56809
56810         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
56811         constants.
56812         (norm): Likewise.
56813         (denorm): Likewise.
56814         (__dbl_mp): Likewise.
56815         (add_magnitudes): Likewise.
56816         (sub_magnitudes): Likewise.
56817         (__add): Likewise.
56818         (__sub): Likewise.
56819         (__mul): Likewise.
56820         (__sqr): Likewise.
56821         (__inv): Likewise.
56822         (__dvd): Likewise.
56823
56824         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
56825         commented code.
56826         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
56827         (__dubcos): Likewise.
56828         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
56829         (__ieee754_acos): Likewise.
56830         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
56831         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
56832         (__exp1): Likewise.
56833         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
56834         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
56835         (log1): Likewise.
56836         (my_log2): Likewise.
56837         (checkint): Likewise.
56838         * sysdeps/ieee754/dbl-64/e_remainder.c
56839         (__ieee754_remainder): Likewise.
56840         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
56841         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
56842         (bsloww): Likewise.
56843         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
56844
56845         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56846         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
56847         MANTISSA_STORE_T to store computations on mantissa.  Use
56848         macros for rounding and division.
56849         (denorm): Likewise.
56850         (__dbl_mp): Likewise.
56851         (add_magnitudes): Likewise.
56852         (sub_magnitudes): Likewise.
56853         (__mul): Likewise.
56854         (__sqr): Likewise.
56855         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56856         powers of two in terms of TWOPOW macro.
56857         (mp_no): Make type of mantissa as MANTISSA_T.
56858         [!RADIXI]: Define RADIXI.
56859         [!TWO52]: Define TWO52.
56860         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56861
56862 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56863
56864         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
56865         llroundl symbol when building for PPC32.
56866
56867 2013-03-24  Mark H Weaver  <mhw@netris.org>
56868
56869         * manual/arith.texi (Normalization Functions): Fix prototypes for
56870         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
56871
56872 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56873
56874         [BZ #13889]
56875         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
56876         high value to check if expl overflow.
56877         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
56878         to check for underflow and overflow.
56879         * math/libm-test.inc: Add exp test.
56880
56881 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
56882
56883         [BZ #11120]
56884         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
56885         with NOT_IN_libc.
56886
56887 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56888
56889         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
56890         symbol.
56891
56892 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
56893
56894         * math/gen-libm-test.pl (parse_args, special_functions): Properly
56895         wrap blocks consisting of several statements.
56896
56897         * sysdeps/generic/math-tests.h: New file.
56898         * sysdeps/i386/fpu/math-tests.h: Likewise.
56899         * math/test-snan.c: Include it.
56900         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
56901
56902 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56903
56904         [BZ #15285]
56905         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
56906         (__ieee754_j0l): Do not improve calculations using cos of twice
56907         input for inputs above LDBL_MAX / 2.0L.
56908         (__ieee754_y0l): Likewise.
56909         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
56910         (__ieee754_j1l): Do not improve calculations using cos of twice
56911         input for inputs above LDBL_MAX / 2.0L.
56912         (__ieee754_y1l): Likewise.
56913         * math/libm-test.inc (j0_test): Add another test.
56914         (j1_test): Likewise.
56915         (y0_test): Likewise.
56916         (y1_test): Likewise.
56917         * sysdeps/i386/fpu/libm-test-ulps: Update.
56918
56919 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56920
56921         * Rules ($(objpfx)bench-%.c): Include code from a C source
56922         file.
56923
56924 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56925
56926         [BZ #15287]
56927         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56928         imaginary part 1.0 and real part less than 0.5 specially.
56929         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56930         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56931         * math/libm-test.inc (cacos_test): Add more tests.
56932         (casin_test): Likewise.
56933         (casinh_test): Likewise.
56934         * sysdeps/i386/fpu/libm-test-ulps: Update.
56935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56936
56937 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56938
56939         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
56940         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
56941
56942 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
56943
56944         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
56945         * config.make.in (config-cflags-sse4): Remove variable.
56946         (config-cflags-avx): Likewise.
56947         (config-cflags-sse2avx): Likewise.
56948         (config-cflags-novzeroupper): Likewise.
56949         (config-asflags-i686): Likewise.
56950         (have-mfma4): Likewise.
56951         (have-as-vis3): Likewise.
56952         (MIG): Likewise.
56953         * configure.in (MIG): Do not AC_SUBST.
56954         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
56955         (libc_cv_cc_sse4): Do not AC_SUBST.
56956         (libc_cv_cc_avx): Likewise.
56957         (libc_cv_cc_sse2avx): Likewise.
56958         (libc_cv_cc_novzeroupper): Likewise.
56959         (libc_cv_cc_fma4): Likewise.
56960         (libc_cv_as_i686): Likewise.
56961         (libc_cv_sparc_as_vis3): Likewise.
56962         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
56963         LIBC_CONFIG_VAR.
56964         (config-asflags-i686): Likewise.
56965         (config-cflags-avx): Likewise.
56966         (config-cflags-sse2avx): Likewise.
56967         (have-mfma4): Likewise.
56968         (config-cflags-novzeroupper): Likewise.
56969         * sysdeps/mach/configure.in (MIG): Likewise.
56970         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
56971         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
56972         LIBC_CONFIG_VAR.
56973         (config-cflags-avx): Likewise.
56974         (config-cflags-sse2avx): Likewise.
56975         (have-mfma4): Likewise.
56976         (config-cflags-novzeroupper): Likewise.
56977         * configure: Regenerated.
56978         * sysdeps/i386/configure: Likewise.
56979         * sysdeps/mach/configure: Likewise.
56980         * sysdeps/sparc/configure: Likewise.
56981         * sysdeps/x86_64/configure: Likewise.
56982
56983 2013-03-20  Roland McGrath  <roland@hack.frob.com>
56984
56985         [BZ #14812]
56986         * locale/programs/localedef.c (options): Put N_ translation marker
56987         on argument names, not just descriptions.
56988
56989 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56990
56991         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
56992
56993 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
56994
56995         [BZ #14176]
56996         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
56997
56998 2013-03-19  Roland McGrath  <roland@hack.frob.com>
56999
57000         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
57001         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
57002         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
57003         [!BEFORE_ABORT] (before_abort): New function.
57004         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
57005         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
57006         (writev_for_fatal): New function.
57007         (WRITEV_FOR_FATAL): New macro; call that.
57008         (backtrace_and_maps): New function.
57009         (BEFORE_ABORT): New macro; call that.
57010         (struct str_list): Type removed.
57011         (__libc_message, __libc_fatal): Functions removed.
57012         Include <sysdeps/posix/libc_fatal.c> instead.
57013
57014 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
57015
57016         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
57017         constants.
57018         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
57019         double constants.
57020
57021 2013-03-19  Andreas Schwab  <schwab@suse.de>
57022
57023         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
57024         * sysdeps/gnu/configure: Regenerate.
57025
57026         * configure.in: Substitute libc_cv_rtlddir.
57027         * configure: Regenerate.
57028         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
57029         * Makeconfig (rtlddir, inst_rtlddir): New variables.
57030         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
57031         * elf/Makefile (install-others, CFLAGS-interp.c)
57032         (ldso_install, common-ldd-rewrite): Likewise.
57033         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
57034         $(inst_slibdir)/$(rtld-installed-name).
57035         * scripts/rellns-sh: Add -p option.
57036         * Makerules (make-shlib-link): Use rellns-sh to get relative name
57037         for source.
57038
57039 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57040
57041         * manual/nptl.texi: Renamed to ...
57042         * manual/threads.texi: ... this.
57043         * manual/Makefile (chapters): Update.
57044
57045 2013-03-18  Roland McGrath  <roland@hack.frob.com>
57046
57047         [BZ #14812]
57048         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
57049         on argument names, not just descriptions.
57050         * malloc/memusagestat.c (options): Likewise.
57051         * nss/getent.c (options): Likewise.
57052
57053 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
57054
57055         [BZ #14812]
57056         * iconv/iconv_prog.c (options): Put N_ translation marker
57057         on argument names, not just descriptions.
57058         * iconv/iconvconfig.c (options): Likewise.
57059
57060 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
57061
57062         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
57063         implementation which is faster on all x86_64 architectures.
57064         Tested on AMD, Intel Nehalem, SNB, IVB.
57065         * sysdeps/x86_64/strnlen.S: Likewise.
57066
57067         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
57068         Remove all multiarch strlen and strnlen versions.
57069         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
57070         Remove strlen and strnlen related parts.
57071
57072         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
57073         Inline strlen part.
57074         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
57075
57076         * sysdeps/x86_64/multiarch/strlen.S: Remove.
57077         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
57078         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
57079         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
57080         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57081         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
57082
57083 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
57084
57085         * manual/memory.texi (Malloc Tunable Parameters):
57086         Sort parameters alphabetically. Add comments for missing entries.
57087
57088 2013-03-17  David S. Miller  <davem@davemloft.net>
57089
57090         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57091
57092 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
57093
57094         [BZ #15283]
57095         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
57096         for arguments at most half maximum finite value.
57097         * math/libm-test.inc (j0_test): Add more tests.
57098         (j1_test): Likewise.
57099         (y0_test): Likewise.
57100         (y1_test): Likewise.
57101         * sysdeps/i386/fpu/libm-test-ulps: Update.
57102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57103
57104         [BZ #14155]
57105         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
57106         1 / x and functions P and Q for arguments above 0x1p256L.
57107         (__ieee754_y0l): Likewise.
57108         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
57109         (__ieee754_y1l): Likewise.
57110         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
57111         (j1_test): Likewise.
57112         (y0_test): Likewise.
57113         (y1_test): Likewise.
57114
57115 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
57116
57117         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
57118         variable.
57119
57120 2013-03-15  Roland McGrath  <roland@hack.frob.com>
57121
57122         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
57123         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
57124         zero since it's initialized to EXEC_PAGESIZE.
57125
57126         * sysdeps/unix/sysv/linux/ldsodefs.h
57127         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
57128         * sysdeps/generic/ldsodefs.h: ... here.
57129
57130 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
57131
57132         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
57133
57134         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
57135         math/test-snan.c.
57136         * math/test-snan.c: Renamed from
57137         sysdeps/powerpc/fpu/test-powerpc-snan.c.
57138         * math/Makefile (tests): Add test-snan.
57139         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
57140         test-powerpc-snan.
57141
57142         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
57143         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
57144         functions.
57145         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
57146         __builtin_nan family of functions.
57147         * math/libm-test.inc (initialize): Initialize qnan_value with
57148         __builtin_nan family of functions.
57149         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
57150         Remove variables.
57151         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
57152         Remove functions.
57153         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
57154         storage class.  Initialize qNaN_var and sNaN_var with
57155         __builtin_nan and __builtin_nans families of functions,
57156         respectively.
57157
57158         * math/libm-test.inc (acosh_test): Also test with qNaN input.
57159         (sqrt_test): Remove duplicate test with qNaN input.
57160         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
57161         (round_test, signbit_test, significand_test): Note missing +/-Inf
57162         as well as qNaN tests.
57163
57164         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
57165         qNaN_var.  Fix a few strings, too.
57166         * math/libm-test.inc (nan_value): Rename to qnan_value.
57167         * math/gen-libm-test.pl (%beautify): Adjust to that.
57168         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
57169         * math/test-misc.c (main): Likewise.
57170         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
57171         to __qnan_bytes, and __qnan_union, respectively.
57172         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
57173         Likewise.
57174         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
57175         and lqnanval, respectively.
57176         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
57177         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
57178         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
57179         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
57180
57181         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
57182         * math/test-misc.c (main) [__x86_64__]: Enable test for long
57183         doubles.
57184
57185         * math/test-misc.c (main): Fix copy'n'pastos.
57186         * misc/tst-efgcvt.c (special): Likewise.
57187
57188         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
57189         Remove declarations.
57190
57191 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
57192
57193         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
57194         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
57195         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
57196         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
57197
57198 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57199
57200         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
57201         macro to return vdso values correctly in IFUNC implementations.
57202         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
57203         Optimization by using IFUNC.
57204
57205 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
57206             Richard Henderson  <rth@redhat.com>
57207             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57208
57209         * Makefile.in (bench): New target.
57210         * NEWS: Mention the benchmark framework.
57211         * Rules (bench): Likewise.
57212         (binaries-bench): Generate binaries for functions to
57213         benchmark.
57214         * benchtests/Makefile: New makefile for benchmark tests.
57215         * benchtests/bench-skeleton.c: New skeleton file for benchmark
57216         programs.
57217         * benchtests/exp-inputs: New input file for EXP function.
57218         * benchtests/pow-inputs: New input file for POW function.
57219         * scripts/bench.pl: New script to generate source files for
57220         benchmark programs.
57221
57222 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
57223
57224         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
57225         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
57226         computations on mantissa.  Use macros for rounding and
57227         division.
57228         (denorm): Likewise.
57229         (__dbl_mp): Likewise.
57230         (add_magnitudes): Likewise.
57231         (sub_magnitudes): Likewise.
57232         (__mul): Likewise.
57233         (__sqr): Likewise.
57234         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
57235         powers of two in terms of TWOPOW macro.
57236         (mp_no): Make type of mantissa as MANTISSA_T.
57237         [!RADIXI]: Define RADIXI.
57238         [!TWO52]: Define TWO52.
57239         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
57240
57241         * manual/nptl.texi (cindex): Modify threads to pthreads.
57242
57243 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
57244
57245         * sysdeps/x86_64/preconfigure: Regenerated.
57246
57247 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
57248
57249         [BZ #14155]
57250         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
57251         0x1p28 and above.
57252         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
57253         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
57254         0x1p28 and above.
57255         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
57256         * math/libm-test.inc (j0_test): Do not allow one spurious
57257         underflow exception.
57258         (y1_test): Likewise.
57259
57260 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
57261
57262         * manual/Makefile (chapters): Add nptl.
57263         * manual/debug.texi (Debugging Support): Add link to Threads
57264         chapter.
57265         * manual/nptl.texi: New file.
57266
57267         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
57268
57269 2013-03-14  Petr Baudis  <pasky@ucw.cz>
57270
57271         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
57272         for non-NULL pointer before the memory validity test. Pointed
57273         out by Holger Brunck <holger.brunck@keymile.com>.
57274
57275 2013-03-13  Andreas Schwab  <schwab@suse.de>
57276
57277         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
57278         instead of .os.
57279
57280 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
57281
57282         * timezone/zic.c: Update from tzcode 2013b.
57283
57284 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
57285
57286         * manual/install.texi (Configuring and compiling):
57287         Mention i686 and i586.
57288         * INSTALL: Regenerate.
57289
57290 2013-03-12  Roland McGrath  <roland@hack.frob.com>
57291
57292         * sysdeps/init_array/elf-init.c: New file.
57293         * csu/elf-init.c
57294         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
57295         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
57296
57297         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
57298         __gmon_start__ as global, but as static with a .preinit_array pointer.
57299         * sysdeps/init_array/gmon-start.c: New file.  Use that.
57300         * sysdeps/init_array/crti.S: New file, empty except for comments.
57301         * sysdeps/init_array/crtn.S: Likewise.
57302
57303 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
57304
57305         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
57306         definining bcopy.
57307         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57308         Remove Prefer_SSE_for_memop.
57309         * sysdeps/x86_64/multiarch/init-arch.h: Remove
57310         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
57311         HAS_PREFER_SSE_FOR_MEMOP.
57312         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
57313         memset-x86-64.
57314         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
57315         Remove bzero, memset ifunc support.
57316         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
57317         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
57318         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57319         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57320
57321 2013-03-11  Andreas Schwab  <schwab@suse.de>
57322
57323         [BZ #15234]
57324         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
57325         by SHLIB_COMPAT.
57326         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
57327         (GLIBC_2.16): Remove pthread_atfork.
57328
57329 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
57330
57331         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
57332         (ptestcases.h): Likewise.
57333
57334 2013-03-08  Roland McGrath  <roland@hack.frob.com>
57335
57336         * Makeconfig ($(common-objpfx)config.status): Depend on
57337         sysdeps/*/preconfigure{,.in} too.
57338
57339 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
57340
57341         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
57342         (__free_hook): Use void * instead of __malloc_ptr_t.
57343         (__malloc_hook): Likewise.
57344         (__realloc_hook): Likewise.
57345         (__memalign_hook): Likewise.
57346         (__after_morecore_hook): Likewise.
57347         * malloc/arena.c (save_malloc_hook): Likewise.
57348         (save_free_hook): Likewise.
57349         * malloc/hooks.c (malloc_hook_ini): Likewise.
57350         (realloc_hook_ini): Likewise.
57351         (memalign_hook_ini): Likewise.
57352         * malloc/malloc.c (malloc_hook_ini): Likewise.
57353         (realloc_hook_ini): Likewise.
57354         (memalign_hook_ini): Likewise.
57355         (__free_hook): Likewise.
57356         (__malloc_hook): Likewise.
57357         (__realloc_hook): Likewise.
57358         (__memalign_hook): Likewise.
57359         (__libc_malloc): Likewise.
57360         (__libc_free): Likewise.
57361         (__libc_realloc): Likewise.
57362         (__libc_memalign): Likewise.
57363         (__libc_valloc): Likewise.
57364         (__libc_pvalloc): Likewise.
57365         (__libc_calloc): Likewise.
57366         (__posix_memalign): Likewise.
57367         * malloc/morecore.c (__sbrk): Likewise.
57368         (__default_morecore): Likewise.
57369
57370         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
57371
57372         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
57373         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
57374         __malloc_ptrdiff_t.
57375
57376         * malloc/malloc.h (__malloc_size_t): Remove macro.
57377         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
57378         __malloc_size_t.
57379         (old_memalign_hook): Likewise.
57380         (old_realloc_hook): Likewise.
57381         (struct hdr): Likewise.
57382         (flood): Likewise.
57383         (mallochook): Likewise.
57384         (memalignhook): Likewise.
57385         (reallochook): Likewise.
57386         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
57387         (tr_old_realloc_hook): Likewise.
57388         (tr_old_memalign_hook): Likewise.
57389         (tr_mallochook): Likewise.
57390         (tr_reallochook): Likewise.
57391         (tr_memalignhook): Likewise.
57392
57393 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57394
57395         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
57396         default_ldbl_pack and using as default implementation.
57397         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
57398         implementation.
57399         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
57400         redundant definition.
57401         (ldbl_insert_mantissa): Likewise.
57402         (ldbl_canonicalize): Likewise.
57403         (ldbl_nearbyint): Likewise.
57404         (ldbl_pack): Rename to ldbl_pack_ppc.
57405         (ldbl_unpack): Rename to ldbl_unpack_ppc.
57406         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
57407         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
57408
57409 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
57410
57411         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
57412         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
57413         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
57414         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
57415         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
57416         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
57417         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
57418         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
57419
57420 2013-03-07  Andreas Jaeger  <aj@suse.de>
57421
57422         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
57423         bits/mman-linux.h.
57424
57425 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57426
57427         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
57428         Include mpa.h and declare __MPEXP.
57429         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
57430         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
57431         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
57432         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
57433         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
57434         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
57435         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
57436
57437         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
57438         (__slowpow): Use long double EXPL and LOGL functions to
57439         compute POW.
57440         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
57441         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
57442         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
57443         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
57444         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
57445         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
57446
57447         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
57448         intermediate variable to calculate exponent.
57449         (__sqr): Likewise.
57450         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
57451         Likewise.
57452         (__sqr): Likewise.
57453
57454         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
57455         [!NO__SQR]: Define __sqr.
57456         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
57457         and NO__SQR.  Remove all code except __mul and __sqr.  Include
57458         sysdeps/ieee754/dbl-64/mpa.c.
57459         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
57460
57461         [BZ #12723]
57462         * posix/Makefile (tests): Add tst-pathconf.
57463         * posix/tst-pathconf.c: New test case.
57464         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
57465         _PC_PIPE_BUF.
57466         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
57467
57468 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
57469
57470         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
57471
57472 2013-03-06  Andreas Jaeger  <aj@suse.de>
57473
57474         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
57475         definition via __MAP_ANONYMOUS.
57476
57477         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
57478         it's not part of Linux headers.
57479
57480         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
57481         (MAP_HUGE_MASK): Define.
57482
57483         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
57484         Define.
57485         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
57486         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
57487         Define.
57488         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
57489         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
57490         Define.
57491         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
57492         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
57493         Define.
57494         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
57495
57496         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
57497         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
57498         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
57499         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
57500         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
57501         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
57502
57503         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
57504         Handle f2fs.
57505
57506         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
57507         Handle f2fs and efivarfs.
57508
57509         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
57510         f2fs.
57511
57512         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
57513         (EFIVARFS_MAGIC): Add.
57514         (F2FS_LINK_MAX): Add.
57515
57516 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
57517
57518         * stdio-common/vfprintf.c: Replace __builtin_expect with
57519         __glibc_unlikely.
57520
57521 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
57522
57523         [BZ #13550]
57524         * sysdeps/generic/bp-sym.h: Remove file.
57525         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
57526         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
57527         <bp-sym.h> and <bp-asm.h>.
57528         (__longjmp): Don't use BP_SYM.
57529         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
57530         and <bp-asm.h>.
57531         (memcpy): Don't use BP_SYM.
57532         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
57533         <bp-sym.h> and <bp-asm.h>.
57534         (memcpy): Don't use BP_SYM.
57535         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
57536         <bp-asm.h>.
57537         (memcpy): Don't use BP_SYM.
57538         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
57539         <bp-asm.h>.
57540         (memset): Don't use BP_SYM.
57541         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
57542         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
57543         (__bzero): Don't use BP_SYM.
57544         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
57545         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
57546         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
57547         <bp-sym.h> and <bp-asm.h>.
57548         (memcmp): Don't use BP_SYM.  Remove comment about bounded
57549         pointers.
57550         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
57551         <bp-sym.h> and <bp-asm.h>.
57552         (memcpy): Don't use BP_SYM.
57553         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
57554         <bp-sym.h> and <bp-asm.h>.
57555         (memset): Don't use BP_SYM.
57556         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
57557         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
57558         (__bzero): Don't use BP_SYM.
57559         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
57560         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
57561         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
57562         <bp-sym.h> and <bp-asm.h>.
57563         (strncmp): Don't use BP_SYM.  Remove comment about bounded
57564         pointers.
57565         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
57566         <bp-sym.h> and <bp-asm.h>.
57567         (memcpy): Don't use BP_SYM.
57568         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
57569         <bp-sym.h> and <bp-asm.h>.
57570         (memset): Don't use BP_SYM.
57571         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
57572         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
57573         (__bzero): Don't use BP_SYM.
57574         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
57575         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
57576         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
57577         <bp-sym.h> and <bp-asm.h>.
57578         (__memchr): Don't use BP_SYM.
57579         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
57580         <bp-sym.h> and <bp-asm.h>.
57581         (memcmp): Don't use BP_SYM.  Remove comment about bounded
57582         pointers.
57583         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
57584         <bp-sym.h> and <bp-asm.h>.
57585         (memcpy): Don't use BP_SYM.
57586         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
57587         <bp-sym.h> and <bp-asm.h>.
57588         (__mempcpy): Don't use BP_SYM.
57589         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
57590         <bp-sym.h> and <bp-asm.h>.
57591         (__memrchr): Don't use BP_SYM.
57592         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
57593         <bp-sym.h> and <bp-asm.h>.
57594         (memset): Don't use BP_SYM.
57595         (__bzero): Likewise.
57596         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
57597         <bp-sym.h> and <bp-asm.h>.
57598         (__rawmemchr): Don't use BP_SYM.
57599         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
57600         <bp-sym.h> and <bp-asm.h>.
57601         (__STRCMP): Don't use BP_SYM.
57602         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
57603         <bp-sym.h> and <bp-asm.h>.
57604         (strchr): Don't use BP_SYM.
57605         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
57606         <bp-sym.h> and <bp-asm.h>.
57607         (__strchrnul): Don't use BP_SYM.
57608         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
57609         <bp-sym.h> and <bp-asm.h>.
57610         (strlen): Don't use BP_SYM.
57611         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
57612         <bp-sym.h> and <bp-asm.h>.
57613         (strncmp): Don't use BP_SYM.  Remove comment about bounded
57614         pointers.
57615         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
57616         <bp-sym.h> and <bp-asm.h>.
57617         (__strnlen): Don't use BP_SYM.
57618         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
57619         <bp-sym.h> and <bp-asm.h>.
57620         (__GI__setjmp): Don't use BP_SYM.
57621         (_setjmp): Likewise.
57622         (__sigsetjmp): Likewise.
57623         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
57624         (L(start_addresses)): Don't use BP_SYM.
57625         (_start): Likewise.
57626         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
57627         <bp-asm.h>.
57628         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
57629         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
57630         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57631         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57632         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
57633         <bp-asm.h>.
57634         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
57635         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
57636         about bounded pointers.
57637         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57638         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57639         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
57640         <bp-asm.h>.
57641         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
57642         about bounded pointers.  Remove GKM FIXME comments.
57643         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57644         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
57645         <bp-asm.h>.
57646         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
57647         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
57648         Remove GKM FIXME comments.
57649         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57650         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57651         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
57652         <bp-asm.h>.
57653         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
57654         about bounded pointers.  Remove GKM FIXME comment.
57655         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
57656         and <bp-asm.h>.
57657         (strncmp): Don't use BP_SYM.  Remove comment about bounded
57658         pointers.
57659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
57660         <bp-sym.h> and <bp-asm.h>.
57661         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
57662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
57663         <bp-sym.h> and <bp-asm.h>.
57664         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
57665         comment.
57666
57667 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
57668
57669         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
57670         call free(NULL).
57671
57672 2013-03-05  David S. Miller  <davem@davemloft.net>
57673
57674         * po/es.po: Update from translation team.
57675
57676 2013-03-05  Andreas Jaeger  <aj@suse.de>
57677
57678         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
57679         <bits/mman-linux.h>.
57680         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
57681         is fine.
57682         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
57683         <bits/mman-linux.h> to end of file.
57684         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
57685         is fine.
57686         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
57687         <bits/mman-linux.h> to end of file.
57688         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
57689         is fine.
57690         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
57691         <bits/mman-linux.h> to end of file.
57692
57693         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
57694         (MCL_CURRENT, MCL_FUTURE): Define here.
57695
57696 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57697
57698         [BZ #15232]
57699         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
57700         attribute_hidden.
57701         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57702
57703 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57704
57705         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
57706         fourth parameter needed for rt_sigprocmask syscall.
57707         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
57708         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
57709         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
57710         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
57711         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
57712         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
57713
57714 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
57715
57716         [BZ #13550]
57717         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
57718         comment about bounded pointers.
57719         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
57720         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
57721
57722 2013-03-04  Andreas Jaeger  <aj@suse.de>
57723
57724         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
57725         common definitions.
57726
57727         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
57728         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
57729         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
57730         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
57731         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
57732         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
57733
57734 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57735
57736         [BZ #15055]
57737         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
57738         __ieee754_sqrl instead of __sqrl.
57739
57740 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
57741
57742         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
57743         * sysdeps/powerpc/fpu_control.h: ... here.
57744         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
57745         * sysdeps/powerpc/bits/fenvinline.h: ... here.
57746         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
57747         * sysdeps/powerpc/bits/mathinline.h: ... here.
57748
57749 2013-03-01  Roland McGrath  <roland@hack.frob.com>
57750
57751         * elf/dl-hwcaps.c (_dl_important_hwcaps):
57752         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
57753         to just [NEED_DL_SYSINFO_DSO].
57754         * elf/dl-support.c: Likewise.
57755         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
57756         * elf/rtld.c (dl_main): Likewise.
57757         * elf/setup-vdso.h (setup_vdso): Likewise.
57758         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
57759         * sysdeps/unix/sysv/linux/dl-sysdep.c
57760         (_dl_discover_osversion): Likewise.
57761
57762 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
57763
57764         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
57765         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
57766
57767 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
57768
57769         * NEWS: Mention libm performance improvements and non-x86 PI
57770         futex support.
57771
57772         * csu/libc-start.c (__pthread_initialize_minimal): Change
57773         function arguments.
57774         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
57775
57776 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
57777
57778         [BZ #13550]
57779         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
57780         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
57781         <bp-sym.h> and <bp-asm.h>.
57782         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
57783         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
57784         and <bp-asm.h>.
57785         (memcpy): Don't use BP_SYM.
57786         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
57787         <bp-asm.h>.
57788         (__mpn_add_n): Don't use BP_SYM.
57789         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
57790         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
57791         and <bp-asm.h>.
57792         (__mpn_addmul_1): Don't use BP_SYM.
57793         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57794         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
57795         <bp-sym.h>.
57796         (_setjmp): Don't use BP_SYM.
57797         (__novmx_setjmp): Likewise.
57798         (__GI__setjmp): Likewise.
57799         (__vmx_setjmp): Likewise.
57800         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
57801         <bp-sym.h>.
57802         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
57803         (__bzero): Don't use BP_SYM.
57804         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
57805         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
57806         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
57807         <bp-sym.h> and <bp-asm.h>.
57808         (memcpy): Don't use BP_SYM.
57809         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
57810         <bp-sym.h> and <bp-asm.h>.
57811         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
57812         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
57813         <bp-sym.h> and <bp-asm.h>.
57814         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
57815         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
57816         <bp-asm.h>.
57817         (__mpn_lshift): Don't use BP_SYM.
57818         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57819         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
57820         <bp-asm.h>.
57821         (memset): Don't use BP_SYM.
57822         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
57823         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
57824         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
57825         <bp-asm.h>.
57826         (__mpn_mul_1): Don't use BP_SYM.
57827         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57828         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
57829         <bp-sym.h> and <bp-asm.h>.
57830         (memcmp): Don't use BP_SYM.
57831         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
57832         <bp-sym.h> and <bp-asm.h>.
57833         (memcpy): Don't use BP_SYM.
57834         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
57835         <bp-sym.h> and <bp-asm.h>.
57836         (memset): Don't use BP_SYM.
57837         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
57838         <bp-sym.h> and <bp-asm.h>.
57839         (strncmp): Don't use BP_SYM.
57840         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
57841         <bp-sym.h> and <bp-asm.h>.
57842         (memcpy): Don't use BP_SYM.
57843         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
57844         <bp-sym.h> and <bp-asm.h>.
57845         (memset): Don't use BP_SYM.
57846         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
57847         <bp-sym.h> and <bp-asm.h>.
57848         (__memchr): Don't use BP_SYM.
57849         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
57850         <bp-sym.h> and <bp-asm.h>.
57851         (memcmp): Don't use BP_SYM.
57852         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
57853         <bp-sym.h> and <bp-asm.h>.
57854         (memcpy): Don't use BP_SYM.
57855         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
57856         <bp-sym.h> and <bp-asm.h>.
57857         (__mempcpy): Don't use BP_SYM.
57858         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
57859         <bp-sym.h> and <bp-asm.h>.
57860         (__memrchr): Don't use BP_SYM.
57861         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
57862         <bp-sym.h> and <bp-asm.h>.
57863         (memset): Don't use BP_SYM.
57864         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
57865         <bp-sym.h> and <bp-asm.h>.
57866         (__rawmemchr): Don't use BP_SYM.
57867         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
57868         <bp-sym.h> and <bp-asm.h>.
57869         (__STRCMP): Don't use BP_SYM.
57870         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
57871         <bp-sym.h> and <bp-asm.h>.
57872         (strchr): Don't use BP_SYM.
57873         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
57874         <bp-sym.h> and <bp-asm.h>.
57875         (__strchrnul): Don't use BP_SYM.
57876         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
57877         <bp-sym.h> and <bp-asm.h>.
57878         (strlen): Don't use BP_SYM.
57879         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
57880         <bp-sym.h> and <bp-asm.h>.
57881         (strncmp): Don't use BP_SYM.
57882         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
57883         <bp-sym.h> and <bp-asm.h>.
57884         (__strnlen): Don't use BP_SYM.
57885         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
57886         <bp-asm.h>.
57887         (__mpn_rshift): Don't use BP_SYM.
57888         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57889         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
57890         <bp-sym.h> and <bp-asm.h>.
57891         (__sigsetjmp): Don't use BP_SYM.
57892         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
57893         (L(start_addresses)): Don't use BP_SYM.
57894         (_start): Likewise.
57895         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
57896         <bp-asm.h>.
57897         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
57898         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57899         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57900         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
57901         <bp-asm.h>.
57902         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
57903         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57904         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57905         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
57906         <bp-asm.h>.
57907         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57908         comments.
57909         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57910         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
57911         <bp-asm.h>.
57912         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
57913         FIXME comments.
57914         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57915         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57916         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
57917         <bp-asm.h>.
57918         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57919         comment.
57920         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
57921         and <bp-asm.h>.
57922         (strncmp): Don't use BP_SYM,
57923         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
57924         <bp-asm.h>.
57925         (__mpn_sub_n): Don't use BP_SYM.
57926         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57927         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
57928         and <bp-asm.h>.
57929         (__mpn_submul_1): Don't use BP_SYM.
57930         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
57932         <bp-sym.h> and <bp-asm.h>.
57933         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
57934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
57935         <bp-sym.h> and <bp-asm.h>.
57936         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
57937         comment.
57938
57939 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57940
57941         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
57942         Use ZK to minimize writes to Z.
57943         (sub_magnitudes): Simplify code a bit.
57944         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
57945         Use ZK to minimize writes to Z.
57946         (sub_magnitudes): Simplify code a bit.
57947
57948 2013-02-27  Roland McGrath  <roland@hack.frob.com>
57949
57950         * csu/gmon-start.c: Add special exception to license text.
57951
57952 2013-02-27  Richard Henderson  <rth@redhat.com>
57953
57954         * scripts/config.guess: Update from config.git.
57955         * scripts/config.sub: Likewise.
57956
57957 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
57958
57959         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
57960
57961         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
57962
57963         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
57964
57965         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
57966
57967         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
57968
57969 2013-02-26  Roland McGrath  <roland@hack.frob.com>
57970
57971         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
57972         [$(build-shared = yes].
57973
57974 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57975
57976         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
57977         (__mul): Reduce iterations for calculating mantissa.
57978
57979         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
57980         MPTWO.
57981         (__mpranred): Likewise.
57982
57983         [BZ #15160]
57984         * malloc/memusagestat.c (main): Draw graphs for heap and stack
57985         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
57986
57987 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57988
57989         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
57990         Define __attribute__.
57991
57992 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57993
57994         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
57995         unused.
57996         * posix/regex_internal.h (__attribute): Remove.
57997         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
57998         (re_string_context_at): Likewise.
57999         (bitset_not): Use __attribute__ and mark function as possibly
58000         unused.
58001         (bitset_merge): Likewise.
58002         (bitset_mask): Likewise.
58003         (re_string_char_size_at): Likewise.
58004         (re_string_wchar_at): Likewise.
58005         (re_string_elem_size_at): Likewise.
58006
58007 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
58008
58009         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
58010         code.
58011         (cc32): Likewise.
58012
58013         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
58014         (__acr): Likewise.
58015         (__cpy): Likewise.
58016         (norm): Likewise.
58017         (denorm): Likewise.
58018         (__dbl_mp): Likewise.
58019         (add_magnitudes): Likewise.
58020         (sub_magnitudes): Likewise.
58021         (__mul): Likewise.
58022         (__inv): Likewise.
58023
58024         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
58025         style.
58026
58027         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
58028         style.
58029
58030         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
58031         code.
58032
58033         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
58034         up changes with default code.
58035         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
58036         Likewise.
58037
58038 2013-02-24  Allan McRae  <allan@archlinux.org>
58039
58040         * manual/socket.texi (The Internet Namespace): Order menu items
58041         to match that in the file.
58042
58043         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
58044         node listing of the info page menu.
58045
58046 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
58047
58048         [BZ #13550]
58049         * sysdeps/i386/bp-asm.h: Remove file.
58050         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
58051         (PARMS): Do not use macros from bp-asm.h.
58052         (S1): Likewise.
58053         (S2): Likewise.
58054         (SIZE): Likewise.
58055         (__mpn_add_n): Do not use BP_SYM
58056         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
58057         "bp-asm.h".
58058         (PARMS): Do not use macros from bp-asm.h.
58059         (S1): Likewise.
58060         (SIZE): Likewise.
58061         (__mpn_addmul_1): Do not use BP_SYM
58062         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
58063         "bp-asm.h".
58064         (PARMS): Do not use macros from bp-asm.h.
58065         (SIGMSK): Likewise.
58066         (_setjmp): Likewise.  Do not use BP_SYM.
58067         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
58068         "bp-asm.h".
58069         (PARMS): Do not use macros from bp-asm.h.
58070         (SIGMSK): Likewise.
58071         (setjmp): Likewise.  Do not use BP_SYM.
58072         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
58073         "bp-asm.h".
58074         (PARMS): Do not use macros from bp-asm.h.
58075         (__frexp): Do not use BP_SYM.
58076         (frexp): Likewise.
58077         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
58078         "bp-asm.h".
58079         (PARMS): Do not use macros from bp-asm.h.
58080         (__frexpf): Do not use BP_SYM.
58081         (frexpf): Likewise.
58082         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
58083         "bp-asm.h".
58084         (PARMS): Do not use macros from bp-asm.h.
58085         (__frexpl): Do not use BP_SYM.
58086         (frexpl): Likewise.
58087         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
58088         "bp-asm.h".
58089         (PARMS): Do not use macros from bp-asm.h.
58090         (__remquo): Do not use BP_SYM.
58091         (remquo): Likewise.
58092         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
58093         "bp-asm.h".
58094         (PARMS): Do not use macros from bp-asm.h.
58095         (__remquof): Do not use BP_SYM.
58096         (remquof): Likewise.
58097         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
58098         "bp-asm.h".
58099         (PARMS): Do not use macros from bp-asm.h.
58100         (__remquol): Do not use BP_SYM.
58101         (remquol): Likewise.
58102         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
58103         "bp-asm.h".
58104         (PARMS): Do not use macros from bp-asm.h.
58105         (DEST): Likewise.
58106         (SRC): Likewise.
58107         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
58108         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
58109         "bp-asm.h".
58110         (PARMS): Do not use macros from bp-asm.h.
58111         (strlen): Do not use BP_SYM.
58112         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
58113         "bp-asm.h".
58114         (PARMS): Do not use macros from bp-asm.h.
58115         (S1): Likewise.
58116         (S2): Likewise.
58117         (SIZE): Likewise.
58118         (__mpn_add_n): Do not use BP_SYM.
58119         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
58120         "bp-asm.h".
58121         (PARMS): Do not use macros from bp-asm.h.
58122         (S1): Likewise.
58123         (SIZE): Likewise.
58124         (__mpn_addmul_1): Do not use BP_SYM.
58125         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
58126         weak_alias.
58127         (bzero): Likewise.
58128         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
58129         "bp-asm.h".
58130         (PARMS): Do not use macros from bp-asm.h.
58131         (S): Likewise.
58132         (SIZE): Likewise.
58133         (__mpn_lshift): Do not use BP_SYM.
58134         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
58135         "bp-asm.h".
58136         (PARMS): Do not use macros from bp-asm.h.
58137         (DEST): Likewise.
58138         (SRC): Likewise.
58139         (LEN): Likewise.
58140         (memcpy): Likewise.  Do not use BP_SYM.
58141         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
58142         libc_hidden_def and weak_alias.
58143         (mempcpy): Do not use BP_SYM in weak_alias.
58144         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
58145         "bp-asm.h".
58146         (PARMS): Do not use macros from bp-asm.h.
58147         (DEST): Likewise.
58148         (LEN): Likewise.
58149         [!BZERO_P] (CHR): Likewise.
58150         (memset): Likewise.  Do not use BP_SYM.
58151         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
58152         "bp-asm.h".
58153         (PARMS): Do not use macros from bp-asm.h.
58154         (S1): Likewise.
58155         (SIZE): Likewise.
58156         (__mpn_mul_1): Do not use BP_SYM.
58157         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
58158         "bp-asm.h".
58159         (PARMS): Do not use macros from bp-asm.h.
58160         (S): Likewise.
58161         (SIZE): Likewise.
58162         (__mpn_rshift): Do not use BP_SYM.
58163         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
58164         "bp-asm.h".
58165         (PARMS): Do not use macros from bp-asm.h.
58166         (STR): Likewise.
58167         (CHR): Likewise.
58168         (strchr): Likewise.  Do not use BP_SYM.
58169         (index): Do not use BP_SYM in weak_alias.
58170         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
58171         "bp-asm.h".
58172         (PARMS): Do not use macros from bp-asm.h.
58173         (DEST): Likewise.
58174         (SRC): Likewise.
58175         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
58176         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
58177         "bp-asm.h".
58178         (PARMS): Do not use macros from bp-asm.h.
58179         (strlen): Do not use BP_SYM.
58180         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
58181         "bp-asm.h".
58182         (PARMS): Do not use macros from bp-asm.h.
58183         (S1): Likewise.
58184         (S2): Likewise.
58185         (SIZE): Likewise.
58186         (__mpn_sub_n): Do not use BP_SYM.
58187         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
58188         "bp-asm.h".
58189         (PARMS): Do not use macros from bp-asm.h.
58190         (S1): Likewise.
58191         (SIZE): Likewise.
58192         (__mpn_submul_1): Do not use BP_SYM.
58193         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
58194         "bp-asm.h".
58195         (PARMS): Do not use macros from bp-asm.h.
58196         (S1): Likewise.
58197         (S2): Likewise.
58198         (SIZE): Likewise.
58199         (__mpn_add_n): Do not use BP_SYM.
58200         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
58201         weak_alias.
58202         (bzero): Likewise.
58203         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
58204         "bp-asm.h".
58205         (PARMS): Do not use macros from bp-asm.h.
58206         (BLK2): Likewise.
58207         (LEN): Likewise.
58208         (memcmp): Do not use BP_SYM.
58209         (bcmp): Do not use BP_SYM in weak_alias.
58210         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
58211         "bp-asm.h".
58212         (PARMS): Do not use macros from bp-asm.h.
58213         (DEST): Likewise.
58214         (SRC): Likewise.
58215         (LEN): Likewise.
58216         (memcpy): Likewise.  Do not use BP_SYM.
58217         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
58218         "bp-asm.h".
58219         (PARMS): Do not use macros from bp-asm.h.
58220         (DEST): Likewise.
58221         (SRC): Likewise.
58222         (LEN): Likewise.
58223         (memmove): Likewise.  Do not use BP_SYM.
58224         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
58225         "bp-asm.h".
58226         (PARMS): Do not use macros from bp-asm.h.
58227         (DEST): Likewise.
58228         (SRC): Likewise.
58229         (LEN): Likewise.
58230         (__mempcpy): Likewise.  Do not use BP_SYM.
58231         (mempcpy): Do not use BP_SYM in weak_alias.
58232         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
58233         "bp-asm.h".
58234         (PARMS): Do not use macros from bp-asm.h.
58235         (DEST): Likewise.
58236         (LEN): Likewise.
58237         [!BZERO_P] (CHR): Likewise.
58238         (memset): Likewise.  Do not use BP_SYM.
58239         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
58240         "bp-asm.h".
58241         (PARMS): Do not use macros from bp-asm.h.
58242         (STR2): Likewise.
58243         (strcmp): Do not use BP_SYM.
58244         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
58245         "bp-asm.h".
58246         (PARMS): Do not use macros from bp-asm.h.
58247         (STR): Likewise.
58248         (DELIM): Likewise.
58249         [USE_AS_STRTOK_R] (SAVE): Likewise.
58250         (FUNCTION): Likewise.  Do not use BP_SYM.
58251         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
58252         aliases.
58253         (strtok_r): Likewise.
58254         (__GI___strtok_r): Likewise.
58255         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
58256         (PARMS): Do not use macros from bp-asm.h.
58257         (S): Likewise.
58258         (SIZE): Likewise.
58259         (__mpn_lshift): Do not use BP_SYM.
58260         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
58261         (PARMS): Do not use macros from bp-asm.h.
58262         (STR): Likewise.
58263         (CHR): Likewise.
58264         (__memchr): Do not use BP_SYM.
58265         (memchr): Do not use BP_SYM in weak_alias.
58266         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
58267         (PARMS): Do not use macros from bp-asm.h.
58268         (BLK2): Likewise.
58269         (LEN): Likewise.
58270         (memcmp): Do not use BP_SYM.
58271         (bcmp): Do not use BP_SYM in weak_alias.
58272         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
58273         (PARMS): Do not use macros from bp-asm.h.
58274         (S1): Likewise.
58275         (SIZE): Likewise.
58276         (__mpn_mul_1): Do not use BP_SYM.
58277         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
58278         "bp-asm.h".
58279         (PARMS): Do not use macros from bp-asm.h.
58280         (STR): Likewise.
58281         (CHR): Likewise.
58282         (__rawmemchr): Do not use BP_SYM.
58283         (rawmemchr): Do not use BP_SYM in weak_alias.
58284         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
58285         (PARMS): Do not use macros from bp-asm.h.
58286         (S): Likewise.
58287         (SIZE): Likewise.
58288         (__mpn_rshift): Do not use BP_SYM.
58289         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
58290         (PARMS): Do not use macros from bp-asm.h.
58291         (SIGMSK): Likewise.
58292         (__sigsetjmp): Likewise.  Do not use BP_SYM.
58293         * sysdeps/i386/start.S: Do not include "bp-sym.h".
58294         (_start): Do not use BP_SYM.
58295         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
58296         (PARMS): Do not use macros from bp-asm.h.
58297         (DEST): Likewise.
58298         (SRC): Likewise.
58299         (__stpcpy): Likewise.  Do not use BP_SYM.
58300         (stpcpy): Do not use BP_SYM in weak_alias.
58301         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
58302         "bp-asm.h".
58303         (PARMS): Do not use macros from bp-asm.h.
58304         (DEST): Likewise.
58305         (SRC): Likewise.
58306         (LEN): Likewise.
58307         (__stpncpy): Likewise.  Do not use BP_SYM.
58308         (stpncpy): Do not use BP_SYM in weak_alias.
58309         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
58310         (PARMS): Do not use macros from bp-asm.h.
58311         (STR): Likewise.
58312         (CHR): Likewise.
58313         (strchr): Likewise.  Do not use BP_SYM.
58314         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
58315         "bp-asm.h".
58316         (PARMS): Do not use macros from bp-asm.h.
58317         (STR): Likewise.
58318         (CHR): Likewise.
58319         (__strchrnul): Likewise.  Do not use BP_SYM.
58320         (strchrnul): Do not use BP_SYM in weak_alias.
58321         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
58322         "bp-asm.h".
58323         (PARMS): Do not use macros from bp-asm.h.
58324         (STOP): Likewise.
58325         (strcspn): Do not use BP_SYM.
58326         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
58327         "bp-asm.h".
58328         (PARMS): Do not use macros from bp-asm.h.
58329         (STR): Likewise.
58330         (STOP): Likewise.
58331         (strpbrk): Likewise.  Do not use BP_SYM.
58332         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
58333         "bp-asm.h".
58334         (PARMS): Do not use macros from bp-asm.h.
58335         (STR): Likewise.
58336         (CHR): Likewise.
58337         (strrchr): Likewise.  Do not use BP_SYM.
58338         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
58339         (PARMS): Do not use macros from bp-asm.h.
58340         (SKIP): Likewise.
58341         (strspn): Do not use BP_SYM.
58342         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
58343         (PARMS): Do not use macros from bp-asm.h.
58344         (STR): Likewise.
58345         (DELIM): Likewise.
58346         (SAVE): Likewise.
58347         (FUNCTION): Likewise.  Do not use BP_SYM.
58348         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
58349         aliases.
58350         (strtok_r): Likewise.
58351         (__GI___strtok_r): Likewise.
58352         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
58353         (PARMS): Do not use macros from bp-asm.h.
58354         (S1): Likewise.
58355         (S2): Likewise.
58356         (SIZE): Likewise.
58357         (__mpn_sub_n): Do not use BP_SYM.
58358         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
58359         "bp-asm.h".
58360         (PARMS): Do not use macros from bp-asm.h.
58361         (S1): Likewise.
58362         (SIZE): Likewise.
58363         (__mpn_submul_1): Do not use BP_SYM.
58364         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
58365         <bp-sym.h>.
58366         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
58367         and <bp-asm.h>.
58368         (PARMS): Do not use macros from bp-asm.h.
58369         (FLAGS): Likewise.
58370         (PTID): Likewise.
58371         (TLS): Likewise.
58372         (CTID): Likewise.
58373         (__clone): Do not use BP_SYM.
58374         (clone): Do not use BP_SYM in weak_alias.
58375         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
58376         and <bp-asm.h>.
58377         (PARMS): Do not use macros from bp-asm.h.
58378         (LEN): Likewise.
58379         (__mmap64): Do not use BP_SYM.
58380         (mmap64): Do not use BP_SYM in weak_alias.
58381         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58382         <bp-sym.h> and <bp-asm.h>.
58383         (PARMS): Do not use macros from bp-asm.h.
58384         (__posix_fadvise64_l64): Do not use BP_SYM.
58385         * sysdeps/unix/sysv/linux/i386/semtimedop.S
58386         (PARMS): Do not use macros from bp-asm.h.
58387         (NSOPS): Likewise.
58388         (semtimedop): Do not use BP_SYM.
58389         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
58390         and <bp-asm.h>.
58391
58392 2013-02-21  Allan McRae  <allan@archlinux.org>
58393
58394         * manual/message.texi (Charset conversion in gettext):
58395         Move @end statement to beginning of line.
58396
58397 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
58398
58399         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
58400         static.
58401         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
58402         Likewise.
58403
58404         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
58405         (denorm): Likewise.
58406         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
58407         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
58408
58409 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58410
58411         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
58412         tail-call to the resolved function if pltexit isn't needed.
58413
58414 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
58415
58416         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
58417         or Y being zero as being unlikely.
58418         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
58419         Likewise.
58420
58421 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
58422
58423         * manual/nss.texi (System Databases and Name Service Switch):
58424         Remove frobnicate @pxref.
58425
58426 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
58427
58428         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
58429         __attribute__ ((unused)) to __attribute__ ((__unused__)).
58430
58431 2013-02-20  Petr Machata  <pmachata@redhat.com>
58432
58433         * elf/elf.h (R_ARM_TARGET1): New macro.
58434         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
58435         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
58436         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
58437         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
58438         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
58439         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
58440         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
58441         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
58442         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
58443         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
58444         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
58445         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
58446         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
58447         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
58448         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
58449         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
58450         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
58451         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
58452         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
58453         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
58454         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
58455         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
58456         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
58457         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
58458         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
58459         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
58460         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
58461         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
58462         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
58463         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
58464         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
58465         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
58466         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
58467         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
58468         (R_ARM_THM_GOT_BREL12): Likewise.
58469         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
58470         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
58471         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
58472         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
58473         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
58474         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
58475         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
58476         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
58477         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
58478
58479 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
58480
58481         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
58482         __attribute_used__ to __attribute__ ((unused)).
58483
58484 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
58485
58486         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
58487         powerpc mpa.c.
58488         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
58489         comment formatting.
58490         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
58491
58492 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
58493
58494         [BZ #13550]
58495         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
58496         Remove macro.
58497         (ENTER): Remove both macro definitions.
58498         (LEAVE): Likewise.
58499         (CHECK_BOUNDS_LOW): Likewise.
58500         (CHECK_BOUNDS_HIGH): Likewise.
58501         (CHECK_BOUNDS_BOTH): Likewise.
58502         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
58503         (RETURN_BOUNDED_POINTER): Likewise.
58504         (RETURN_NULL_BOUNDED_POINTER): Likewise.
58505         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
58506         (POP_ERRNO_LOCATION_RETURN): Likewise.
58507         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
58508         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
58509         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
58510         macros.
58511         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
58512         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
58513         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
58514         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
58515         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
58516         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
58517         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
58518         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
58519         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
58520         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
58521         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
58522         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
58523         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
58524         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
58525         removed macros.
58526         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
58527         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
58528         macros.
58529         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
58530         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
58531         * sysdeps/i386/i586/memset.S (memset): Likewise.
58532         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
58533         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
58534         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
58535         macros.
58536         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
58537         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
58538         Change uses of L(2) to L(out).
58539         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
58540         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
58541         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
58542         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
58543         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
58544         removed macros.
58545         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
58546         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
58547         macros.
58548         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
58549         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
58550         (RETURN): Do not use macro LEAVE.
58551         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
58552         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
58553         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
58554         * sysdeps/i386/i686/memset.S (memset): Likewise.
58555         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
58556         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
58557         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
58558         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
58559         Likewise.
58560         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
58561         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
58562         L(1_2) and L(1_3) into L(1).
58563         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
58564         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
58565         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
58566         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
58567         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
58568         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
58569         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
58570         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
58571         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
58572         macros.
58573         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
58574         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
58575         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
58576         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
58577         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
58578         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
58579         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
58580         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
58581         * sysdeps/i386/strcspn.S (strcspn): Likewise.
58582         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
58583         * sysdeps/i386/strrchr.S (strrchr): Likewise.
58584         * sysdeps/i386/strspn.S (strspn): Likewise.
58585         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
58586         conditional code.
58587         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
58588         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
58589         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
58590         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
58591         L(1_3) into L(1_1).
58592         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
58593         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
58594         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
58595         macros.
58596         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
58597
58598 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
58599
58600         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
58601         macro.
58602
58603 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
58604
58605         * math/atest-exp.c (exp_mpn): Remove ROUND.
58606         * math/atest-exp2.c (exp_mpn): Likewise.
58607         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
58608
58609         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
58610         * stdlib/tst-tls-atexit-lib.c: Likewise.
58611         * stdlib/tst-tls-atexit.c: Likewise.
58612
58613 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
58614
58615         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
58616         and __attribute_alloc_size__.
58617
58618 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
58619
58620         * include/programs/xmalloc.h: Change __attribute_alloc_size to
58621         __attribute_alloc_size__.
58622         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
58623         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
58624
58625 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
58626
58627         * include/programs/xmalloc.h: New file.
58628         * catgets/gencat.c: Include it.
58629         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
58630         * elf/pldd.c: Likewise.
58631         * iconv/iconv_charmap.c: Likewise.
58632         * iconv/iconvconfig.c: Likewise.
58633         * iconv/strtab.c: Likewise.
58634         * locale/programs/locale.c: Likewise.
58635         * locale/programs/localedef.h: Likewise.
58636         * locale/programs/simple-hash.c: Likewise.
58637         * nscd/nscd.h: Likewise.
58638         * nss/makedb.c: Likewise.
58639         * sysdeps/generic/ldconfig.h: Likewise.
58640
58641 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58642
58643         * Versions.def: Add GLIBC_2.18.
58644         * include/link.h (struct link_map): New member l_tls_dtor_count.
58645         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
58646         (__call_tls_dtors): Likewise.
58647         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
58648         __cxa_thread_atexit_impl.
58649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
58650         Likewise.
58651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
58652         Likewise.
58653         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
58654         Likewise.
58655         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
58656         Likewise.
58657         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
58658         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
58659         Likewise.
58660         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
58661         Likewise.
58662         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
58663         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
58664         Likewise.
58665         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
58666         (tests): Add test case tst-tls-atexit.
58667         (modules-names): Add shared library for tst-tls-atexit.
58668         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
58669         (GLIBC_PRIVATE): Add __call_tls_dtors.
58670         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
58671         for libstdc++.
58672         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
58673         * stdlib/tst-tls-atexit.c: New test case.
58674         * stdlib/tst-tls-atexit-lib.c: New test case.
58675
58676         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
58677
58678         * elf/Versions (ld): Add _dl_find_dso_for_object.
58679         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
58680         * elf/dl-open.c (_dl_find_dso_for_object): New function.
58681         (dl_open_worker): Use _dl_find_dso_for_object.
58682         * elf/dl-sym.c (do_sym): Likewise.
58683         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
58684
58685 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58686
58687         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
58688         Syntactic changes only.
58689         (_dl_runtime_profile): Do a tail-call to the resolved function.
58690
58691 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
58692
58693         [BZ #13550]
58694         * sysdeps/x86_64/bp-asm.h: Remove file.
58695         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
58696         <bp-sym.h> and <bp-asm.h>.
58697         (__clone): Do not use BP_SYM.
58698         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
58699         <bp-sym.h> and <bp-asm.h>.
58700         * sysdeps/unix/x86_64/sysdep.S: Likewise.
58701         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
58702         "bp-asm.h".
58703         (_setjmp): Do not use BP_SYM.
58704         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
58705         "bp-asm.h".
58706         (setjmp): Do not use BP_SYM.
58707         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
58708         libc_hidden_def.
58709         (mempcpy): Do not use BP_SYM in weak_alias.
58710         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
58711         "bp-asm.h".
58712         (strchr): Do not use BP_SYM.
58713         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
58714         "bp-asm.h".
58715         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
58716         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
58717         (_start): Do not use BP_SYM.
58718         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
58719         "bp-asm.h".
58720         (strcat): Do not use BP_SYM.
58721         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
58722         "bp-asm.h".
58723         (STRCMP): Do not use BP_SYM.
58724         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
58725         "bp-asm.h".
58726         (STRCPY): Do not use BP_SYM.
58727         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
58728         "bp-asm.h".
58729         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
58730         "bp-asm.h".
58731         (FUNCTION): Do not use BP_SYM.
58732         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
58733         weak_alias.
58734         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
58735
58736 2013-02-17  Andreas Jaeger  <aj@suse.de>
58737
58738         * time/Versions: Sort entries.
58739         * string/Versions: Likewise.
58740         * resolv/Versions: Likewise.
58741         * posix/Versions: Likewise.
58742         * iconv/Versions: Likewise.
58743         * elf/Versions: Likewise.
58744         * wcsmbs/Versions: Likewise.
58745
58746 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
58747
58748         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
58749         loop termination condition.
58750
58751         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
58752         variable to calculate EZ.
58753         (__sqr): Likewise.
58754
58755         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
58756         the lower precision input.
58757
58758 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
58759
58760         [BZ #13550]
58761         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
58762         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
58763         (run-via-rtld-prefix): Do not handle %-bp tests.
58764         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
58765         (all-object-suffixes): Remove .ob.
58766         (bppfx): Remove variable.
58767         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
58768         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
58769         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
58770         [$(build-bounded) = yes] (libtype.ob): Likewise.
58771         * Makerules (elide-routines.ob): Remove variable.
58772         (do-tests-clean): Do not handle *-bp.out.
58773         (common-mostlyclean): Do not handle *-bp and *-bp.out.
58774         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
58775         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
58776         (tests): Do not include $(tests-bp.out).
58777         (xtests): Do not include $(xtests-bp.out).
58778         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
58779         [$(build-bounded) = yes] ($(addprefix
58780         $(objpfx),$(binaries-bounded))): Remove rule.
58781         ($(objpfx)%-bp.out): Remove rule.
58782         * config.make.in (build-bounded): Remove variable.
58783         * crypt/Makefile [$(build-bounded) = yes]
58784         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
58785         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
58786         append to variable.
58787         [$(build-bounded) = yes] (install-lib): Likewise.
58788         [$(build-bounded) = yes] (generated): Likewise.
58789         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
58790         Remove rule.
58791         * intl/Makefile [$(build-bounded) = yes]
58792         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
58793         * math/Makefile [$(build-bounded) = yes]
58794         ($(tests:%=$(objpfx)%-bp): Likewise.
58795         * misc/Makefile [$(build-bounded) = yes]
58796         ($(objpfx)tst-tsearch-bp): Likewise.
58797         * nptl/Makeconfig (bounded-thread-library): Remove variable.
58798         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
58799         Remove dependency.
58800         * string/Makefile (o-objects.ob): Remove variable.
58801         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
58802         (CFLAGS-.ob): Remove variable.
58803         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
58804         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
58805         both definitions of variable.
58806         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
58807         (ASFLAGS-.ob): Remove variable.
58808
58809 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
58810
58811         [BZ #13550]
58812         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
58813         Remove __BOUNDED_POINTERS__ from condition.
58814         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
58815         * string/bits/string2.h [!__NO_STRING_INLINES &&
58816         !__BOUNDED_POINTERS__]: Likewise.
58817         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
58818         Likewise.
58819         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
58820         Remove conditional code.
58821         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
58822         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
58823         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
58824         condition.
58825
58826         [BZ #13550]
58827         * csu/libc-start.c: Do not include <bp-sym.h>.
58828         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
58829         * elf/dl-open.c: Do not include <bp-sym.h>.
58830         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
58831         * math/fegetenv.c: Do not include <bp-sym.h>.
58832         (fegetenv): Do not use BP_SYM in versioned symbols.
58833         * nptl/sysdeps/pthread/bits/libc-lockP.h
58834         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
58835         <bp-sym.h>.
58836         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58837         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
58838         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58839         (__pthread_mutex_destroy): Likewise.
58840         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58841         (__pthread_mutex_lock): Likewise.
58842         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58843         (__pthread_mutex_trylock): Likewise.
58844         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58845         (__pthread_mutex_unlock): Likewise.
58846         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58847         (__pthread_mutexattr_init): Likewise.
58848         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58849         (__pthread_mutexattr_destroy): Likewise.
58850         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58851         (__pthread_mutexattr_settype): Likewise.
58852         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58853         (__pthread_rwlock_init): Likewise.
58854         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58855         (__pthread_rwlock_destroy): Likewise.
58856         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58857         (__pthread_rwlock_rdlock): Likewise.
58858         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58859         (__pthread_rwlock_tryrdlock): Likewise.
58860         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58861         (__pthread_rwlock_wrlock): Likewise.
58862         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58863         (__pthread_rwlock_trywrlock): Likewise.
58864         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58865         (__pthread_rwlock_unlock): Likewise.
58866         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58867         (__pthread_key_create): Likewise.
58868         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58869         (__pthread_setspecific): Likewise.
58870         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58871         (__pthread_getspecific): Likewise.
58872         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
58873         Likewise.
58874         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58875         (_pthread_cleanup_push_defer): Likewise.
58876         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58877         (_pthread_cleanup_pop_restore): Likewise.
58878         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58879         (pthread_setcancelstate): Likewise.
58880         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
58881         <bp-sym.h>.
58882         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
58883         (memchr): Do not use BP_SYM in weak_alias.
58884         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
58885         (fegetenv): Do not use BP_SYM in versioned symbols.
58886         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
58887         (fesetenv): Do not use BP_SYM in versioned symbols.
58888         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58889         (feupdateenv): Do not use BP_SYM in versioned symbols.
58890         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58891         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58892         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
58893         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
58894         (open64): Do not use BP_SYM in weak_alias.
58895         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
58896         (fegetenv): Do not use BP_SYM in versioned symbols.
58897         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
58898         (fesetenv): Do not use BP_SYM in versioned symbols.
58899         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58900         (feupdateenv): Do not use BP_SYM in versioned symbols.
58901         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
58902         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
58903         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
58904         (feraiseexcept): Do not use BP_SYM in versioned symbols.
58905         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58906         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58907         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
58908         <bp-sym.h>.
58909         (__libc_start_main): Do not use BP_SYM.
58910
58911 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
58912
58913         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
58914         redundant return line.
58915         (norm): Likewise.
58916         (denorm): Likewise.
58917         (dbl_mp): Likewise.
58918         (sub_magnitudes): Likewise.
58919         (__add): Likewise.
58920         (__sub): Likewise.
58921         (__mul): Likewise.
58922         (__inv): Likewise.
58923         (__dvd): Likewise.
58924         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
58925         (norm): Likewise.
58926         (denorm): Likewise.
58927         (dbl_mp): Likewise.
58928         (sub_magnitudes): Likewise.
58929         (__add): Likewise.
58930         (__sub): Likewise.
58931         (__mul): Likewise.
58932         (__inv): Likewise.
58933         (__dvd): Likewise.
58934
58935         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
58936         instead of __mul.
58937         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
58938         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
58939         (cc32): Likewise.
58940
58941         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
58942         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
58943         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
58944         of __mul for squares.
58945         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
58946         function
58947         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
58948         Likewise.
58949         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
58950         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
58951
58952 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
58953
58954         [BZ #13550]
58955         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
58956         code.
58957         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
58958         prototype or function definition.  Rename ubp_* variables and
58959         parameters.  Remove argv definitions conditional on
58960         [__BOUNDED_POINTERS__].
58961         * debug/backtrace.c (__backtrace): Do not use __unbounded.
58962         * elf/dl-runtime.c (_dl_fixup): Likewise.
58963         * include/set-hooks.h (RUN_HOOK): Likewise.
58964         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
58965         definition.
58966         * string/strcpy.c (strcpy): Do not use __unbounded.
58967         * sysdeps/generic/frame.h (struct layout): Likewise.
58968         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
58969         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
58970         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
58971         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
58972         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
58973         (__backtrace): Likewise.
58974         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
58975         use __ptrvalue.
58976         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
58977         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
58978         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
58979         Likewise.
58980         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
58981         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
58982         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
58983         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58984         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
58985         Do not use __unbounded.
58986         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
58987         Rename __unboundedrlimits parameter to rlimits in prototype.
58988         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
58989         Do not use __unbounded.
58990         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
58991         not use __ptrvalue.
58992         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58993         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
58994         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58995         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
58996         __ptrvalue or __unbounded.
58997         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
58998         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
58999         use __unbounded.
59000         (__new_msgctl): Do not use __ptrvalue.
59001         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
59002         __unbounded.
59003         (__libc_msgrcv): Do not use __ptrvalue.
59004         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
59005         startup_info): Do not use __unbounded.
59006         (__libc_start_main): Likewise.  Rename ubp_* variables and
59007         parameters.  Remove argv definitions conditional on
59008         [__BOUNDED_POINTERS__].
59009         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
59010         __ptrvalue.
59011         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
59012         use __unbounded.
59013         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
59014         or __ptrvalue.
59015         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
59016         use __unbounded.
59017         (__new_shmctl): Do not use __ptrvalue.
59018         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
59019         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
59020         Likewise.
59021         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
59022         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
59023         (__libc_sigaction): Likewise.
59024         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
59025         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
59026         Likewise.
59027         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
59028
59029 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
59030
59031         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
59032
59033         * string/mempcpy.c: Implement by calling memcpy.
59034
59035 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59036
59037         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
59038
59039         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
59040         evaluation.
59041
59042         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
59043         values in the mantissa.
59044
59045         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
59046         minimize writes to Z.
59047         (sub_magnitudes): Simplify code a bit.
59048
59049 2013-02-12  Roland McGrath  <roland@hack.frob.com>
59050
59051         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
59052         from the message.  The linker prefixes all warnings with that already.
59053
59054 2013-02-12  Andreas Schwab  <schwab@suse.de>
59055
59056         [BZ #15078]
59057         * posix/regexec.c (extend_buffers): Add parameter min_len.
59058         (check_matching): Pass minimum needed length.
59059         (clean_state_log_if_needed): Likewise.
59060         (get_subexp): Likewise.
59061         * posix/Makefile (tests): Add bug-regex34.
59062         (bug-regex34-ENV): Define.
59063         * posix/bug-regex34.c: New file.
59064
59065         [BZ #11561]
59066         * posix/regcomp.c (parse_bracket_exp): When looking up collating
59067         elements compare against the byte sequence of it, not its name.
59068         * posix/Makefile (tests): Add bug-regex35.
59069         (bug-regex35-ENV): Define.
59070         * posix/bug-regex35.c: New file.
59071
59072 2013-02-11  Tom de Vries  <tom@codesourcery.com>
59073
59074         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
59075         comment.
59076         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
59077         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
59078         (CHECK_EOL): Add undef.
59079
59080 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
59081
59082         * bits/stdlib-bsearch.h: New file.
59083         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
59084         * stdlib/stdlib.h: Likewise.
59085
59086 2013-02-11  Roland McGrath  <roland@hack.frob.com>
59087
59088         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
59089         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
59090         declaration.
59091         * manual/search.texi (Array Search Function): Add missing const in
59092         lfind prototype.
59093         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
59094         declaration to use rlim_t.
59095         (Basic Scheduling Functions): Remove erroneous const from
59096         sched_getparam prototype.  Remove erroneous * from
59097         sched_get_priority_max and sched_get_priority_min prototypes.
59098         (Resource Usage): Fix summary @comment on vtimes to refer to
59099         sys/vtimes.h rather than vtimes.h.
59100         Add missing *s in vtimes prototype.
59101         (Limits on Resources): Fix ulimit prototype to return long int.
59102         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
59103         prototypes to use long int rather than double.
59104         (BSD Random): Fix initstate and setstate to use char *, not void *.
59105         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
59106         prototype to make second argument 'struct aiocb64 *const[]'.
59107         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
59108         (Status of AIO Operations): Remove erroneous const in aio_return and
59109         aio_return64 prototypes.
59110         (Synchronizing I/O): Fix sync prototype to return void.
59111         * manual/startup.texi (Suboptions): Remove an erroneous const in
59112         getsubopt prototype.
59113         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
59114         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
59115         use size_t rather than int.
59116         (Scanning All Users): Likewise for getpwent_r.
59117         (Setting Groups): Add missing const to setgroups prototype.
59118         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
59119         * manual/socket.texi (Host Names): Fix gethostbyaddr and
59120         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
59121         'const void *' rather than 'const char *'.
59122         (Host Address Functions): Likewise for inet_ntop.
59123         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
59124         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
59125         ssize_t for return value.
59126         (Sending Data): Likewise for send, sendto, sendmsg.
59127         (Socket Option Functions): Add a missing const in setsockopt prototype.
59128         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
59129         use wchar_t for the argument.
59130         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
59131         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
59132         take no arguments.
59133         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
59134         double/float/long double for second argument.
59135         Fix return types of significand, significandf, significandl.
59136         * manual/filesys.texi (Setting Permissions): Use mode_t for second
59137         argument in fchmod prototype.
59138         (File Owner): Use uid_t and gid_t in fchown prototype.
59139         (File Times): Add const to utimes, futimes, and lutimes prototypes.
59140         (Making Special Files): Use mode_t and dev_t in mknod prototype.
59141         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
59142         use 'const struct dirent **' as argument types to CMP function pointer
59143         argument.
59144         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
59145         (File Times): Fix summary magic @comment for struct utimbuf and utime
59146         to refer to utime.h, not time.h.
59147         * manual/string.texi (Argz Functions): Add missing const in
59148         argz_extract and argz_next prototypes.
59149         (Finding Tokens in a String): Likewise for basename.
59150         (String/Array Comparison): Fix typo in wcscasecmp prototype.
59151         (Copying and Concatenation): Fix typo in wmemmove prototype.
59152         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
59153         (Signal Stack): Remove erroneous const in sigstack prototype.
59154         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
59155         prototype.
59156         (Simple Calendar Time): Likewise for stime.
59157         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
59158         prototype.
59159         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
59160         say sys/sysctl.h instead.
59161         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
59162         and vsyslog prototypes.
59163
59164 2013-02-11  Tom de Vries  <tom@codesourcery.com>
59165
59166         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
59167         Remove.
59168
59169 2013-02-11  Roland McGrath  <roland@hack.frob.com>
59170
59171         * misc/sys/mman.h: Fix typo in mremap comment.
59172
59173 2013-02-08  Roland McGrath  <roland@hack.frob.com>
59174
59175         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
59176         the '\0' terminator.
59177
59178 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
59179
59180         [BZ #13550]
59181         * debug/segfault.c: Don't include <bp-checks.h>.
59182         * sysdeps/generic/bp-checks.h: Remove file.
59183         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
59184         (__GETDENTS): Don't use CHECK_N.
59185         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
59186         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
59187         (__getgroups): Don't use CHECK_N.
59188         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
59189         (setgroups): Don't use CHECK_N.
59190         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
59191         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
59192         (__libc_msgrcv): Don't use CHECK_N.
59193         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
59194         (__libc_msgsnd): Don't use CHECK_N.
59195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
59196         <bp-checks.h>.
59197         (__libc_pread): Don't use CHECK_N.
59198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
59199         include <bp-checks.h>.
59200         (__libc_pread64): Don't use CHECK_N.
59201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
59202         include <bp-checks.h>.
59203         (__libc_pwrite): Don't use CHECK_N.
59204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
59205         include <bp-checks.h>.
59206         (__libc_pwrite64): Don't use CHECK_N.
59207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
59208         <bp-checks.h>.
59209         (__libc_pread): Don't use CHECK_N.
59210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
59211         include <bp-checks.h>.
59212         (__libc_pread64): Don't use CHECK_N.
59213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
59214         include <bp-checks.h>.
59215         (__libc_pwrite): Don't use CHECK_N.
59216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
59217         include <bp-checks.h>.
59218         (__libc_pwrite64): Don't use CHECK_N.
59219         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
59220         (do_pread): Don't use CHECK_N.
59221         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
59222         (do_pread64): Don't use CHECK_N.
59223         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
59224         (do_pwrite): Don't use CHECK_N.
59225         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
59226         (do_pwrite64): Don't use CHECK_N.
59227         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
59228         (__libc_readv): Don't use CHECK_N.
59229         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
59230         (semop): Don't use CHECK_N.
59231         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
59232         <bp-checks.h>.
59233         (semtimedop): Don't use CHECK_N.
59234         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
59235         (__libc_pread): Don't use CHECK_N.
59236         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
59237         <bp-checks.h>.
59238         (__libc_pread64): Don't use CHECK_N.
59239         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
59240         <bp-checks.h>.
59241         (__libc_pwrite): Don't use CHECK_N.
59242         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
59243         <bp-checks.h>.
59244         (__libc_pwrite64): Don't use CHECK_N.
59245         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
59246         <bp-checks.h>.
59247         (__libc_msgrcv): Don't use CHECK_N.
59248         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
59249         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
59250         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
59251         (__libc_writev): Don't use CHECK_N.
59252
59253 2013-02-08  Roland McGrath  <roland@hack.frob.com>
59254
59255         * string/strcpy.c: Removed unused variable.
59256
59257         * Makeconfig (+sysdep-includes): Define with := rather than =.
59258         Use an existing include/ subdir of each sysdeps dir before it.
59259
59260 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
59261
59262         * nscd/connection.c (register_traced_file): Comment function.
59263         [HAVE_INOTIFY] (union __inev): Define.
59264         [HAVE_INOTIFY] (inotify_check_files): New function.
59265         [HAVE_INOTIFY] (clear_db_cache): Likewise.
59266         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
59267         clear_db_cache.
59268         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
59269
59270 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
59271
59272         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
59273         loaded if not already and that a failure is permanent.
59274
59275 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
59276
59277         [BZ #15006]
59278         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
59279         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
59280
59281 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
59282
59283         [BZ #13550]
59284         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
59285         (CHECK_1_NULL_OK): Likewise.
59286         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
59287         (__fxstat): Do not use CHECK_1.
59288         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
59289         <bp-checks.h>.
59290         (___fxstat64): Do not use CHECK_1.
59291         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
59292         <bp-checks.h>.
59293         (__fxstatat): Do not use CHECK_1.
59294         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
59295         <bp-checks.h>.
59296         (__fxstatat64): Do not use CHECK_1.
59297         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
59298         <bp-checks.h>.
59299         (__fxstat): Do not use CHECK_1.
59300         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
59301         <bp-checks.h>.
59302         (__fxstatat): Do not use CHECK_1.
59303         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
59304         <bp-checks.h>.
59305         (__getresgid): Do not use CHECK_1.
59306         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
59307         <bp-checks.h>.
59308         (__getresuid): Do not use CHECK_1.
59309         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
59310         <bp-checks.h>.
59311         (__lxstat): Do not use CHECK_1.
59312         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
59313         <bp-checks.h>.
59314         (__old_msgctl): Do not use CHECK_1.
59315         (__new_msgctl): Likewise.
59316         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
59317         <bp-checks.h>.
59318         (__new_setrlimit): Do not use CHECK_1.
59319         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
59320         <bp-checks.h>.
59321         (__old_shmctl): Do not use CHECK_1.
59322         (__new_shmctl): Likewise.
59323         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
59324         <bp-checks.h>.
59325         (__xstat): Do not use CHECK_1.
59326         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
59327         (__lxstat): Do not use CHECK_1.
59328         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
59329         <bp-checks.h>.
59330         (___lxstat64): Do not use CHECK_1.
59331         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
59332         (__old_msgctl): Do not use CHECK_1.
59333         (__new_msgctl): Likewise.
59334         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
59335         <bp-checks.h>.
59336         (__gettimeofday): Do not use CHECK_1.
59337         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
59338         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
59339         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
59340         <bp-checks.h>.
59341         (__gettimeofday): Do not use CHECK_1.
59342         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
59343         (__old_shmctl): Do not use CHECK_1_NULL_OK.
59344         (__new_shmctl): Do not use CHECK_1.
59345         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
59346         <bp-checks.h>.
59347         (do_sigtimedwait): Do not use CHECK_1.
59348         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
59349         <bp-checks.h>.
59350         (do_sigwaitinfo): Do not use CHECK_1.
59351         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
59352         <bp-checks.h>.
59353         (msgctl): Do not use CHECK_1.
59354         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
59355         <bp-checks.h>.
59356         (shmctl): Do not use CHECK_1.
59357         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
59358         (ustat): Do not use CHECK_1.
59359         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
59360         <bp-checks.h>.
59361         (__fxstat): Do not use CHECK_1.
59362         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
59363         <bp-checks.h>.
59364         (__fxstatat): Do not use CHECK_1.
59365         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
59366         <bp-checks.h>.
59367         (__lxstat): Do not use CHECK_1.
59368         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
59369         <bp-checks.h>.
59370         (__xstat): Do not use CHECK_1.
59371         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
59372         (__xstat): Do not use CHECK_1.
59373         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
59374         (___xstat64): Do not use CHECK_1.
59375
59376         [BZ #13550]
59377         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
59378         definitions.
59379         (CHECK_BOUNDS_HIGH): Likewise.
59380         * string/strcpy.c: Do not include <bp-checks.h>.
59381         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
59382
59383 2013-02-07  Roland McGrath  <roland@hack.frob.com>
59384
59385         * nscd/nscd-client.h (__nscd_drop_map_ref):
59386         Add __attribute__ ((unused)).
59387         * nis/nss-nisplus.h (niserr2nss): Likewise.
59388
59389         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
59390         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
59391
59392         * csu/libc-tls.c (init_static_tls, init_slotinfo):
59393         Remove inline keyword.
59394         * include/rounding-mode.h (round_away): Likewise.
59395         * libio/wfileops.c (adjust_wide_data): Likewise.
59396         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
59397         (__m128i_strloadu_tolower): Likewise.
59398         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
59399         (__m128i_strloadu_tolower): Likewise.
59400         * time/mktime.c (ydhms_diff): Likewise.
59401         * locale/elem-hash.h (elem_hash): Likewise.
59402         * locale/setlocale.c (setdata): Likewise.
59403         * posix/regex_internal.h (re_string_char_size_at): Likewise.
59404         (re_string_wchar_at): Likewise.
59405         (bitset_not, bitset_merge, bitset_mask): Likewise.
59406         [!(__GNUC__ > 3)] (inline): Remove macro.
59407         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
59408         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
59409         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
59410         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
59411         * string/memcmp.c (memcmp_bytes): Likewise.
59412         * locale/programs/locarchive.c (compute_hashval): Likewise.
59413         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
59414         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
59415         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
59416         * nss/getent.c (print_rpc, print_protocols): Likewise.
59417         (print_passwd, print_group, print_aliases): Likewise.
59418         * nis/nss-nisplus.h (niserr2nss): Likewise.
59419         * nscd/connections.c (restart_p): Likewise.
59420         Change return type to bool.
59421
59422 2013-02-05  Roland McGrath  <roland@hack.frob.com>
59423
59424         * Makeconfig (all-Depend-files): Add existing
59425         $(sorted-subdirs:=/Depend) files.
59426         (all-subdirs): Remove nss.
59427         * sysdeps/unix/inet/Subdirs: Add it here instead.
59428         * hesiod/Depend: New file.
59429
59430         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
59431         instead of calling alloca.
59432
59433         * io/lseek.c (__lseek): Rename to __libc_lseek.
59434         Define __lseek as an alias.
59435
59436         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
59437
59438 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
59439
59440         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
59441         else clause and remove check for non-standard endianness.
59442
59443 2013-02-04  David S. Miller  <davem@davemloft.net>
59444
59445         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59446
59447 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
59448
59449         [BZ #13550]
59450         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
59451         (__ubp_memchr): Remove prototype.
59452         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
59453         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
59454         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
59455         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
59456         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
59457         Remove alias.
59458         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
59459         (__ubp_memchr): Likewise.
59460         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
59461         (__ubp_memchr): Likewise.
59462         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
59463         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
59464         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
59465         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
59466         CHECK_STRING.
59467         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
59468         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
59469         (__getcwd): Do not use CHECK_STRING.
59470         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
59471         <bp-checks.h>.
59472         (__real_chown): Do not use CHECK_STRING.
59473         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
59474         <bp-checks.h>.
59475         (fchownat): Do not use CHECK_STRING.
59476         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
59477         CHECK_STRING.
59478         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
59479         <bp-checks.h>.
59480         (__lchown): Do not use CHECK_STRING.
59481         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
59482         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
59483         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
59484         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
59485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
59486         include <bp-checks.h>.
59487         (truncate64): Do not use CHECK_STRING.
59488         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
59489         <bp-checks.h>.
59490         (__real_chown): Do not use CHECK_STRING.
59491         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
59492         <bp-checks.h>.
59493         (__lchown): Do not use CHECK_STRING.
59494         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
59495         <bp-checks.h>.
59496         (__chown): Do not use CHECK_STRING.
59497         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
59498         <bp-checks.h>.
59499         (truncate64): Do not use CHECK_STRING.
59500         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
59501         Likewise.
59502         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
59503         (__xmknod): Do not use CHECK_STRING.
59504         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
59505         <bp-checks.h>.
59506         (__xmknodat): Do not use CHECK_STRING.
59507         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
59508         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
59509
59510 2013-02-04  Andreas Schwab  <schwab@suse.de>
59511
59512         [BZ #14142]
59513         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
59514         * include/netdb.h: Likewise for h_errno.
59515         * elf/tst-stackguard1.c: Include <tls.h>.
59516
59517 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
59518
59519         * elf/link.h (struct link_map): Extend the l_addr comment.
59520         * include/link.h (struct link_map): Likewise.
59521
59522 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
59523
59524         [BZ #13550]
59525         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
59526         (BOUNDED_1): Remove macro.
59527         * debug/backtrace.c: Don't include <bp-checks.h>.
59528         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
59529         (__backtrace): Likewise.
59530         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
59531         <bp-checks.h>.
59532         (__backtrace): Don't use BOUNDED_1.
59533         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
59534         <bp-checks.h>.
59535         (__backtrace): Don't use BOUNDED_1.
59536         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
59537         (__backtrace): Don't use BOUNDED_1.
59538         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
59539         (shmat): Don't use BOUNDED_N.
59540
59541 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
59542
59543         [BZ #13550]
59544         * sysdeps/generic/bp-start.h: Remove file.
59545         * csu/libc-start.c: Don't include <bp-start.h>.
59546         (LIBC_START_MAIN): Set up __environ directly instead of using
59547         INIT_ARGV_and_ENVIRON.
59548         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
59549         <bp-start.h>.
59550
59551         [BZ #13550]
59552         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
59553         definitions.
59554         (CHECK_FCNTL): Likewise.
59555         (CHECK_N_PAGES): Likewise.
59556
59557         [BZ #13550]
59558         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
59559         definitions.
59560         (CHECK_SIGSET_NULL_OK): Likewise.
59561         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
59562         <bp-checks.h>.
59563         (sigpending): Don't use CHECK_SIGSET.
59564         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
59565         <bp-checks.h>.
59566         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
59567         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
59568         <bp-checks.h>.
59569         (do_sigsuspend): Don't use CHECK_SIGSET.
59570         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
59571         use CHECK_SIGSET.
59572         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
59573         (do_sigwait): Don't use CHECK_SIGSET.
59574         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
59575         use CHECK_SIGSET.
59576         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
59577         include <bp-checks.h>.
59578         (sigpending): Don't use CHECK_SIGSET.
59579         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
59580         include <bp-checks.h>.
59581         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
59582         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
59583         <bp-checks.h>.
59584         (sigpending): Don't use CHECK_SIGSET.
59585         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
59586         <bp-checks.h>.
59587         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
59588
59589         [BZ #13550]
59590         * sysdeps/generic/bp-semctl.h: Remove file.
59591         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
59592         <bp-checks.h> and <bp-semctl.h>.
59593         (__old_semctl): Don't use CHECK_SEMCTL.
59594         (__new_semctl): Likewise.
59595         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
59596         and <bp-semctl.h>.
59597         (__old_semctl): Don't use CHECK_SEMCTL.
59598         (__new_semctl): Likewise.
59599         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
59600         <bp-checks.h> and <bp-semctl.h>.
59601         (__old_semctl): Don't use CHECK_SEMCTL.
59602         (__new_semctl): Likewise.
59603         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
59604         <bp-checks.h> and <bp-semctl.h>.
59605         (semctl): Don't use CHECK_SEMCTL.
59606
59607         [BZ #13550]
59608         * Makerules (elide-bp-thunks): Remove variable.
59609         (elide-routines.oS): Don't use $(elide-bp-thunks).
59610         (elide-routines.os): Likewise.
59611         (elide-routines.o): Likewise.
59612         (elide-routines.op): Likewise.
59613         (elide-routines.og): Likewise.
59614         (objects): Don't use $(bp-thunks).
59615         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
59616         include.
59617         (common-generated): Do not add s-proto-bp.d.
59618         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
59619         (int): Likewise.
59620         (typ): Likewise.
59621         Do not generate makefile rules for bounded-pointer thunks.
59622         * sysdeps/generic/bp-thunks.h: Remove file.
59623         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
59624         * sysdeps/unix/s-proto-bp.S: Likewise.
59625
59626         [BZ #15062]
59627         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
59628         parts of result separately when argument is not close to line from
59629         -i to i and one part of argument is small.
59630         * math/k_casinhf.c (__kernel_casinhf): Likewise.
59631         * math/k_casinhl.c (__kernel_casinhl): Likewise.
59632         * math/libm-test.inc (cacos_test): Add more tests.
59633         (casin_test): Likewise.
59634         (casinh_test): Likewise.
59635         * sysdeps/i386/fpu/libm-test-ulps: Update.
59636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59637
59638 2013-01-31  David S. Miller  <davem@davemloft.net>
59639
59640         * po/de.po: Update from translation team.
59641
59642 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
59643
59644         * time/tzfile.c: Include stdint.h for SIZE_MAX.
59645
59646 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
59647
59648         * configure.in (_AC_PROG_CC_C89): New definition.
59649         * configure: Regenerate.
59650
59651         * configure.in (AC_PROG_CPP): New definition.
59652         * configure: Regenerate.
59653
59654 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
59655
59656         * debug/tst-backtrace.h: New file.
59657         * debug/tst-backtrace2.c: Include tst-backtrace.h.
59658         (ret): Remove variable.
59659         (x): Likewise.
59660         (FAIL): Remove macro.
59661         (NO_INLINE): Likewise.
59662         (fn1): Use match function instead of strstr.
59663         * debug/tst-backtrace3.c: Include tst-backtrace.h.
59664         (ret): Remove variable.
59665         (x): Likewise.
59666         (FAIL): Remove macro.
59667         (NO_INLINE): Likewise.
59668         (fn): Use match function instead of strstr.
59669         * debug/tst-backtrace4.c: Include tst-backtrace.h.
59670         (ret): Remove variable.
59671         (x): Likewise.
59672         (FAIL): Remove macro.
59673         (NO_INLINE): Likewise.
59674         (handle_signal): Use match function instead of strstr.
59675         * debug/tst-backtrace5.c: Include tst-backtrace.h.
59676         (ret): Remove variable.
59677         (x): Likewise.
59678         (FAIL): Remove macro.
59679         (NO_INLINE): Likewise.
59680         (handle_signal): Use match function instead of strstr.
59681
59682 2013-01-23  Roland McGrath  <roland@hack.frob.com>
59683
59684         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
59685
59686 2013-01-23  David S. Miller  <davem@davemloft.net>
59687
59688         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
59689         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
59690         argument of CAS if possible.
59691         * sysdeps/sparc/sparc64/bits/atomic.h
59692         (__arch_compare_and_exchange_val_32_acq): Likewise.
59693         (__arch_compare_and_exchange_val_64_acq): Likewise.
59694
59695 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
59696
59697         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
59698         * sysdeps/posix/ulimit.c: ... this.
59699         Include <limits.h>.
59700         * sysdeps/unix/bsd/ulimit.c: Remove file.
59701
59702 2013-01-23  Adam Conrad  <adconrad@0c3.net>
59703
59704         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
59705         (LDFLAGS-tst-array5): Likewise.
59706
59707 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
59708
59709         [BZ #15036]
59710         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
59711         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
59712         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
59713         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
59714
59715 2013-01-21  David S. Miller  <davem@davemloft.net>
59716
59717         * sysdeps/sparc/backtrace.c: New file.
59718         * sysdeps/sparc/sparc32/backtrace.h: New file.
59719         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
59720         * sysdeps/sparc/sparc64/backtrace.h: New file.
59721         * sysdeps/sparc/sparc64/backtrace.c: Delete.
59722         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
59723         -funwind-tables.
59724
59725 2013-01-21  Andreas Schwab  <schwab@suse.de>
59726
59727         [BZ #15020]
59728         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
59729         closed its stdout.
59730
59731 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
59732
59733         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
59734         "mpa2.h".
59735         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59736
59737 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
59738             Mark Mitchell  <mark@codesourcery.com>
59739             Tom de Vries  <tom@codesourcery.com>
59740             Paul Pluzhnikov  <ppluzhnikov@google.com>
59741
59742         * debug/tst-backtrace2.c: New file.
59743         * debug/tst-backtrace3.c: Likewise.
59744         * debug/tst-backtrace4.c: Likewise.
59745         * debug/tst-backtrace5.c: Likewise.
59746         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
59747         (CFLAGS-tst-backtrace3.c): Likewise.
59748         (CFLAGS-tst-backtrace4.c): Likewise.
59749         (CFLAGS-tst-backtrace5.c): Likewise.
59750         (LDFLAGS-tst-backtrace2): Likewise.
59751         (LDFLAGS-tst-backtrace3): Likewise.
59752         (LDFLAGS-tst-backtrace4): Likewise.
59753         (LDFLAGS-tst-backtrace5): Likewise.
59754         (tests): Add new tests tst-backtrace2, tst-backtrace3,
59755         tst-backtrace4 and tst-backtrace5.
59756
59757 2013-01-18  Anton Blanchard  <anton@samba.org>
59758             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59759
59760         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
59761         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
59762         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
59763         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
59764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
59765         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
59766         "+r" and remove output regs list as redundant.  Add explicit inline
59767         asm to specify register of return val to work around compiler codegen
59768         bug.  Remove (int) cast on return value.  Add return type parameter to
59769         use in macro so that this macro does not truncate return value for
59770         64-bit values.
59771         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
59772         pass to INTERNAL_VSYSCALL_NCS.
59773         (INLINE_VSYSCALL): Add 'long int' as return type to
59774         INTERNAL_VSYSCALL_NCS macro invocation.
59775         (INTERNAL_VSYSCALL): Add 'long int' as return type to
59776         INTERNAL_VSYSCALL_NCS macro invocation.
59777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
59778
59779 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
59780
59781         [BZ #14496]
59782         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
59783         Fix application of SIMD FP exception mask.
59784
59785         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
59786         mp_no from a power of two.
59787         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
59788         __mpexp_twomm1.  Use __pow_mp.
59789
59790         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
59791         multiplication.
59792
59793 2013-01-17  David S. Miller  <davem@davemloft.net>
59794
59795         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59796
59797 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
59798
59799         [BZ #15023]
59800         * include/complex.h: Condition contents on [!_COMPLEX_H].
59801         (__kernel_casinhf): New prototype.
59802         (__kernel_casinh): Likewise.
59803         (__kernel_casinhl): Likewise.
59804         * math/Makefile (libm_calls): Add k_casinh.
59805         * math/k_casinh.c: New file.
59806         * math/k_casinhf.c: Likewise.
59807         * math/k_casinhl.c: Likewise.
59808         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
59809         finite nonzero arguments.
59810         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
59811         finite nonzero arguments.
59812         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
59813         finite nonzero arguments.
59814         * math/s_casinh.c: Do not include <float.h>.
59815         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
59816         * math/s_casinhf.c: Do not include <float.h>.
59817         (__casinhf): Move code for finite nonzero arguments to
59818         k_casinhf.c.
59819         * math/s_casinhl.c: Do not include <float.h>.
59820         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
59821         redefine.
59822         (__casinhl): Move code for finite nonzero arguments to
59823         k_casinhl.c.
59824         * math/libm-test.inc (cacos_test): Add more tests.
59825         * sysdeps/i386/fpu/libm-test-ulps: Update.
59826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59827
59828 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
59829
59830         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
59831         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
59832         [!HAVE_MREMAP]: Remove [defined linux] case.
59833         * malloc/arena.c: Do not include <malloc-sysdep.h>.
59834
59835 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
59836
59837         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
59838
59839 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
59840
59841         * elf/elf.h (R_386_SIZE32): New relocation.
59842         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
59843         R_386_SIZE32.
59844         (elf_machine_rela): Likewise.
59845         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
59846         R_X86_64_SIZE64 and R_X86_64_SIZE32.
59847
59848 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
59849
59850         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
59851         (FP_FAST_FMA): Do not define.
59852         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
59853         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
59854         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
59855         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
59856         !_SOFT_FLOAT]: Likewise.
59857         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
59858         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
59859         value.
59860         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
59861         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
59862         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
59863         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
59864         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
59865         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
59866         file.
59867
59868 2013-01-16  Andreas Schwab  <schwab@suse.de>
59869
59870         [BZ #14327]
59871         * include/stdlib.h (__mktemp): Add declaration.
59872         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
59873         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
59874
59875 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
59876
59877         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
59878         definitions.
59879         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
59880         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
59881         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
59882         definitions here.
59883         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
59884         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
59885         definitions.
59886         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
59887         and ONE.
59888         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
59889         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
59890         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
59891         definitions.
59892         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
59893         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
59894         definitions.
59895         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
59896
59897         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
59898
59899 2013-01-15  David S. Miller  <davem@davemloft.net>
59900
59901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59902         trunc{,f} to libm-sysdep_routes.
59903         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
59905         file.
59906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
59907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
59908         file.
59909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
59910         file.
59911         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
59912         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
59913         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
59914         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
59915         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
59916         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
59917         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
59918         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
59919
59920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59921         nearbyint{,f} to libm-sysdep_routes.
59922         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
59924         New file.
59925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
59926         file.
59927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
59928         New file.
59929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
59930         file.
59931         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
59932         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
59933         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
59934         file.
59935         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
59936         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
59937         file.
59938         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
59939         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
59940         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
59941
59942         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
59943         libc_feholdexcept and libc_fesetenv.
59944
59945 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
59946
59947         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
59948
59949 2013-01-14  David S. Miller  <davem@davemloft.net>
59950
59951         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
59952         (SPARC_ASM_VIS2_IFUNC): Likewise.
59953         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
59954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
59955         use of 'siam' instruction.
59956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
59957         Likewise.
59958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
59959         Likewise.
59960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
59961         Likewise.
59962         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
59963         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
59964         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
59965         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
59966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
59967         file.
59968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
59969         file.
59970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
59971         file.
59972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
59973         file.
59974         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
59975         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
59976         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
59977         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
59978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
59979         new VIS2 routines.
59980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
59981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
59982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
59983         Likewise.
59984         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
59985         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
59986         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
59987         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
59988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
59989         routines to libm-sysdep_routines.
59990         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59991
59992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59993         fdim/fdimf to libm-sysdep_routines.
59994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
59995         file.
59996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
59997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
59998         file.
59999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
60000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
60001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
60002         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
60003         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
60004         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
60005         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
60006
60007 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
60008
60009         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
60010         to optimize copies.
60011
60012         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
60013         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
60014         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
60015
60016         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
60017         local variable MPTWO.
60018         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
60019         Likewise.
60020
60021 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
60022
60023         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
60024         GLOB_NOESCAPE.
60025
60026 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
60027
60028         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
60029
60030 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
60031
60032         * manual/pattern.texi (glob_t): Document gl_flags.
60033         (glob64_t): Likewise.
60034
60035 2013-01-11  David S. Miller  <davem@davemloft.net>
60036
60037         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
60038         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
60039         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
60040         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
60041         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
60042         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
60043         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
60044         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
60045         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
60046         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
60047         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
60048         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
60049         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
60050
60051         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
60052         sparc V9 rather than using V8 code.
60053         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
60054         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
60055
60056         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
60057         Move to...
60058         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
60059         Here.
60060
60061 2013-01-11  Roland McGrath  <roland@hack.frob.com>
60062
60063         [BZ #14941]
60064         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
60065         not in the main loop.
60066         * configure: Regenerated.
60067
60068 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
60069
60070         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
60071         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
60072         to just #else.
60073         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
60074         [!__GLIBC_HAVE_LONG_LONG] case.
60075         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
60076         condition to just #else.
60077         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
60078         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
60079         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
60080         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
60081         unconditional.
60082         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
60083         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
60084         #elif condition to just #else.
60085         * sysdeps/unix/sysv/linux/sys/sysmacros.h
60086         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
60087         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
60088         #elif condition to just #else.
60089
60090 2013-01-11  Steve Ellcey  <sellcey@mips.com>
60091
60092         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
60093         (EF_MIPS_ARCH_64): Fix value.
60094         (EF_MIPS_ARCH_32R2): New.
60095         (EF_MIPS_ARCH_64R2): New.
60096
60097 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
60098
60099         * Makeconfig (+link-pie-before-libc): New.
60100         (+link-pie-after-libc): Likewise.
60101         (+link-pie-tests): Likewise.
60102         (+link-pie): Rewritten.
60103         (link-before-libc): Remove $(config-LDFLAGS).
60104         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
60105         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
60106         (config-LDFLAGS): Renamed to ...
60107         (rtld-LDFLAGS): This.
60108         (rtld-tests-LDFLAGS): New macro.
60109         (link-libc-rpath-link): Likewise.
60110         (link-libc-tests-rpath-link): Likewise.
60111         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
60112         (link-libc): Prepand $(link-libc-rpath-link).
60113         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
60114         (test-program-prefix): New macro.
60115         (test-via-rtld-prefix): Likewise.
60116         (test-program-cmd): Likewise.
60117         (host-test-program-cmd): Likewise.
60118         * Makefile ($(common-objpfx)testrun.sh): Replace
60119         $(run-program-prefix) with $(test-program-prefix).
60120         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
60121         $(rtld-LDFLAGS).
60122         ($(common-objpfx)shlib.lds): Likewise.
60123         (build-module-helper): Likewise.
60124         ($(common-objpfx)format.lds): Likewise.
60125         * Rules (binaries-pie-tests): New.
60126         (binaries-pie-notests): Likewise.
60127         (binaries-pie): Rewritten.
60128         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
60129         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
60130         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
60131         (make-test-out): Replace $(host-built-program-cmd) with
60132         $(host-test-program-cmd).
60133         * config.make.in (build-hardcoded-path-in-tests): New variable.
60134         * configure.in (--enable-hardcoded-path-in-tests): New configure
60135         option.
60136         (hardcoded_path_in_tests): New AC_SUBST.
60137         * configure: Regenerated.
60138         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
60139         $(built-program-cmd) with $(test-program-cmd).
60140         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
60141         (test_program_cmd): This.
60142         * elf/Makefile ($(objpfx)order.out): Run test with
60143         $(test-program-prefix).
60144         ($(objpfx)order2.out): Likewise.
60145         ($(objpfx)tst-initorder.out): Likewise.
60146         ($(objpfx)tst-initorder2.out): Likewise.
60147         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
60148         $(test-program-cmd).
60149         ($(objpfx)tst-array1-static.out): Likewise.
60150         ($(objpfx)tst-array2.out): Likewise.
60151         ($(objpfx)tst-array3.out): Likewise.
60152         ($(objpfx)tst-array4.out): Likewise.
60153         ($(objpfx)tst-array5.out): Likewise.
60154         ($(objpfx)tst-array5-static.out): Likewise.
60155         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
60156         $(test-program-cmd).
60157         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
60158         $(run-program-prefix) with $(test-program-prefix).
60159         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
60160         (test_program_prefix): This.
60161         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
60162         $(run-program-prefix) with $(test-program-prefix).
60163         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
60164         (test_program_prefix): This.
60165         * iconvdata/tst-tables.sh: Likewise.
60166         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
60167         $(run-program-prefix) with $(test-program-prefix).
60168         ($(objpfx)tst-translit.out): Likewise.
60169         ($(objpfx)tst-gettext2.out): Likewise.
60170         ($(objpfx)tst-gettext4.out): Likewise.
60171         ($(objpfx)tst-gettext6.out): Likewise.
60172         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
60173         (test_program_prefix): This.
60174         * intl/tst-gettext2.sh: Likewise.
60175         * intl/tst-gettext4.sh  Likewise.
60176         * intl/tst-gettext6.sh: Likewise.
60177         * intl/tst-translit.sh: Likewise.
60178         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
60179         with $(test-program-cmd).
60180         * libio/Makefile ($(objpfx)test-freopen.out): Replace
60181         $(run-program-prefix) with $(test-program-prefix).
60182         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
60183         (test_program_prefix): This.
60184         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
60185         $(run-program-prefix) with $(test-program-prefix).
60186         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
60187         (test_program_prefix): This.
60188         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
60189         * posix/Makefile ($(objpfx)globtest.out): Replace
60190         $(run-via-rtld-prefix) and $(test-wrapper) with
60191         $(test-program-prefix) and $(test-via-rtld-prefix).
60192         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
60193         $(test-program-prefix).
60194         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
60195         $(host-test-program-cmd).
60196         (tst-spawn-ARGS): Likewise.
60197         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
60198         $(test-program-prefix).
60199         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
60200         (test_via_rtld_prefix): This.
60201         (test_wrapper): Renamed to ...
60202         (test_program_prefix): This.
60203         (run_program_prefix): Replaced by test_program_prefix.
60204         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
60205         (test_program_prefix): This.
60206         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
60207         with $(host-test-program-cmd).
60208         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
60209         $(run-program-prefix) with $(test-program-prefix).
60210         ($(objpfx)tst-printf.out): Likewise.
60211         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
60212         $(test-program-cmd).
60213         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
60214         (test_program_prefix): This.
60215         * stdio-common/tst-unbputc.sh: Likewise.
60216         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
60217         $(run-program-prefix) with $(test-program-prefix).
60218         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
60219         (test_program_prefix): This.
60220         * string/Makefile ($(objpfx)tst-svc.out):  Replace
60221         $(built-program-cmd) with $(test-program-cmd).
60222
60223 2013-01-11  Andreas Jaeger  <aj@suse.de>
60224
60225         [BZ #15003]
60226         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
60227         value. Sync with Linux 3.7.
60228
60229 2013-01-10  David S. Miller  <davem@davemloft.net>
60230
60231         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
60232         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
60233         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
60234
60235 2013-01-10  Roland McGrath  <roland@hack.frob.com>
60236
60237         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
60238         never set.
60239         * configure: Regenerated.
60240
60241 2013-01-10  David S. Miller  <davem@davemloft.net>
60242
60243         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
60244         sparc V9 rather than using V8 code.
60245         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
60246         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
60247
60248 2013-01-10  Roland McGrath  <roland@hack.frob.com>
60249
60250         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
60251         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
60252         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
60253         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
60254         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
60255         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
60256         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
60257         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
60258         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
60259         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
60260         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
60261         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
60262         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
60263         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
60264         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
60265         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
60266         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
60267         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
60268         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
60269         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
60270         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
60271         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
60272         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
60273         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
60274         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
60275         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
60276         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
60277
60278 2013-01-10  David S. Miller  <davem@davemloft.net>
60279
60280         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60281
60282 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
60283
60284         * posix/Makefile (tests-static): New variable.
60285         (tests): Add $(tests-static).
60286         (tst-exec-static-ARGS): New variable.
60287         (tst-spawn-static-ARGS): Likewise.
60288         * posix/tst-exec-static.c: New file.
60289         * posix/tst-spawn-static.c: Likewise.
60290         * posix/tst-exec.c: Support run directly.
60291         * posix/tst-spawn.c: Likewise.
60292
60293 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
60294
60295         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
60296         long.
60297         * math/bits/mathcalls.h (llrint): Likewise.
60298         (llround): Likewise.
60299         * stdlib/stdlib.h (struct drand48_data): Likewise.
60300         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
60301         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
60302         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
60303         Likewise.
60304         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
60305         Likewise.
60306         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
60307         (elf_greg_t): Likewise.
60308         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
60309         (__jmp_buf): Likewise.
60310         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
60311         definitions.
60312         (llrint): Likewise, for all definitions.
60313         (llrintl): Likewise.
60314
60315         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
60316         Remove [__GNUC__] condition.
60317         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
60318         condition to just [__USE_ISOC99].
60319         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
60320
60321 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
60322
60323         [BZ #14200]
60324         * sysdeps/unix/sysv/linux/x86/bits/environments.h
60325         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
60326         defined.
60327         (_POSIX_V6_ILP32_OFF32): Likewise.
60328         (_XBS5_ILP32_OFF32): Likewise.
60329         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
60330         (__ILP32_OFFBIG_LDFLAGS): Likewise.
60331
60332 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
60333
60334         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
60335
60336         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
60337         doubles __mpexp_twomm1.  Adjust usage.
60338         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
60339         Remove.
60340
60341 2013-01-10  Andreas Schwab  <schwab@suse.de>
60342
60343         [BZ #14964]
60344         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
60345         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
60346
60347 2013-01-09  David S. Miller  <davem@davemloft.net>
60348
60349         [BZ #15003]
60350         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
60351         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
60352         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
60353         (TCP_FASTOPEN): Define.
60354         (tcp_repair_opt): New structure.
60355         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
60356         enum values.
60357         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
60358         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
60359         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
60360         (tcp_cookie_transactions): New structure.
60361
60362 2013-01-09  Anton Blanchard  <anton@samba.org>
60363
60364         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
60365         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
60366         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
60367         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
60368
60369 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
60370
60371         * include/features.h (__USE_ANSI): Remove.
60372
60373 2013-01-09  Roland McGrath  <roland@hack.frob.com>
60374
60375         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
60376
60377         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
60378
60379 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
60380
60381         * sysdeps/s390/fpu/libm-test-ulps: Update.
60382
60383         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60384
60385         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
60386         (__acr): Likewise.
60387         (__cpy): Likewise.
60388         (norm): Likewise.
60389         (denorm): Likewise.
60390         (__mp_dbl): Likewise.
60391         (__dbl_mp): Likewise.
60392         (add_magnitudes): Likewise.
60393         (sub_magnitudes): Likewise.
60394         (__add): Likewise.
60395         (__sub): Likewise.
60396         (__mul): Likewise.
60397         (__inv): Likewise.
60398         (__dvd): Likewise.
60399         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
60400         (__acr): Likewise.
60401         (__cpy): Likewise.
60402         (norm): Likewise.
60403         (denorm): Likewise.
60404         (__mp_dbl): Likewise.
60405         (__dbl_mp): Likewise.
60406         (add_magnitudes): Likewise.
60407         (sub_magnitudes): Likewise.
60408         (__add): Likewise.
60409         (__sub): Likewise.
60410         (__mul): Likewise.
60411         (__inv): Likewise.
60412         (__dvd): Likewise.
60413         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
60414         (__acr): Likewise.
60415         (__cpy): Likewise.
60416         (norm): Likewise.
60417         (denorm): Likewise.
60418         (__mp_dbl): Likewise.
60419         (__dbl_mp): Likewise.
60420         (add_magnitudes): Likewise.
60421         (sub_magnitudes): Likewise.
60422         (__add): Likewise.
60423         (__sub): Likewise.
60424         (__mul): Likewise.
60425         (__inv): Likewise.
60426         (__dvd): Likewise.
60427
60428 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
60429
60430         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
60431         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
60432         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
60433         2 && __USE_EXTERN_INLINES]: Likewise.
60434
60435 2013-01-08  Andreas Jaeger  <aj@suse.de>
60436
60437         [BZ# 14985]
60438         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
60439         Remove.
60440         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
60441         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
60442
60443 2013-01-07  Anton Blanchard  <anton@samba.org>
60444
60445         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
60446         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
60447         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
60448         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
60449         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
60450         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
60451         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
60452         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
60453         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
60454         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
60455         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
60456         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
60457         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
60458         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
60459         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
60460         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
60461         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
60462         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
60463         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
60464         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
60465         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
60466         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
60467         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
60468         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
60469         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
60470         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
60471         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
60472         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
60473         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
60474         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
60475         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
60476         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
60477         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
60478         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
60479         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
60480         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
60481         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
60482         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
60483         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
60484         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
60485         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
60486         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
60487         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
60488
60489 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
60490
60491         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
60492         (__MALLOC_PMT): Likewise.
60493         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
60494         [__GNUC__], only on [_LIBC].
60495         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
60496         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
60497         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
60498         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
60499         forward declaration.
60500         (realloc_hook_ini): Likewise.
60501         (memalign_hook_ini): Likewise.
60502         (__libc_memalign): Do not use __MALLOC_PMT in variable
60503         declaration.
60504         (__libc_valloc): Likewise.
60505         (__libc_pvalloc): Likewise.
60506         (__libc_calloc): Likewise.
60507         (__posix_memalign): Likewise.
60508
60509         [BZ #14996]
60510         * math/s_casinh.c: Include <float.h>.
60511         (__casinh): Do not do computation with squaring and square root
60512         for large arguments.
60513         * math/s_casinhf.c: Include <float.h>.
60514         (__casinhf): Do not do computation with squaring and square root
60515         for large arguments.
60516         * math/s_casinhl.c: Include <float.h>.
60517         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
60518         (__casinhl): Do not do computation with squaring and square root
60519         for large arguments.
60520         * math/libm-test.inc (casin_test): Add more tests.
60521         (casinh_test): Likewise.
60522         * sysdeps/i386/fpu/libm-test-ulps: Update.
60523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60524
60525 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
60526
60527         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
60528         (__x86_64_raw_data_cache_size): Likewise.
60529         (__x86_64_data_cache_size_half): Likewise.
60530         (__x86_64_raw_data_cache_size_half): Likewise.
60531         (__x86_64_shared_cache_size): Likewise.
60532         (__x86_64_raw_shared_cache_size): Likewise.
60533         (__x86_64_shared_cache_size_half): Likewise.
60534         (__x86_64_raw_shared_cache_size_half): Likewise.
60535         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
60536         to ...
60537         (__x86_data_cache_size): This.
60538         (__x86_64_raw_data_cache_size): Renamed to ...
60539         (__x86_raw_data_cache_size): This.
60540         (__x86_64_data_cache_size_half): Renamed to ...
60541         (__x86_data_cache_size_half): This.
60542         (__x86_64_raw_data_cache_size_half): Renamed to ...
60543         (__x86_raw_data_cache_size_half): This.
60544         (__x86_64_shared_cache_size): Renamed to ...
60545         (__x86_shared_cache_size): This.
60546         (__x86_64_raw_shared_cache_size): Renamed to ...
60547         (__x86_raw_shared_cache_size): This.
60548         (__x86_64_shared_cache_size_half): Renamed to ...
60549         (__x86_shared_cache_size_half): This.
60550         (__x86_64_raw_shared_cache_size_half): Renamed to ...
60551         (__x86_raw_shared_cache_size_half): This.
60552         * sysdeps/x86_64/memcpy.S: Updated.
60553         * sysdeps/x86_64/memset.S: Likewise.
60554         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
60555         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
60556         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
60557
60558 2013-01-04  David S. Miller  <davem@davemloft.net>
60559
60560         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60561
60562 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
60563
60564         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
60565         1 to avoid redefinition warning.
60566         (__USE_GNU): Don't define.
60567         (init_signaling_nan): Protoize.
60568
60569         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60570
60571 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60572
60573         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
60574         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
60575         (__cpymn): Likewise.
60576         (norm): Remove commented code.
60577         (denorm): Likewise.
60578         (__mp_dbl): Likewise.
60579         (__inv): Likewise.
60580         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
60581         (__cpymn): Likewise.
60582         (norm): Remove commented code.
60583         (denorm): Likewise.
60584         (__mp_dbl): Likewise.
60585         (__inv): Likewise.
60586
60587         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
60588         mp_no value for 1.0 and 2.0.
60589         (norm): Use RADIXI instead of radixi.d.
60590         (denorm): Likewise.
60591         (__mul): Use 0.0 instead of zero.d.
60592         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
60593         mp_no value for 1.0 and 2.0.
60594         (norm): Use RADIXI instead of radixi.d.
60595         (denorm): Likewise.
60596         (__mul): Use 0.0 instead of zero.d.
60597
60598 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
60599
60600         [BZ #14994]
60601         * math/s_casinh.c (__casinh): Reduce finite argument to first
60602         quadrant then set signs of results at the end.
60603         * math/s_casinhf.c (__casinhf): Likewise.
60604         * math/s_casinhl.c (__casinhl): Likewise.
60605         * math/libm-test.inc (casin_test): Add more tests.
60606         (casinh_test): Likewise.
60607         * sysdeps/i386/fpu/libm-test-ulps: Update.
60608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60609
60610 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60611
60612         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
60613
60614         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
60615
60616         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
60617         declarations.
60618         (denorm): Likewise.
60619         (__mp_dbl): Likewise.
60620         (__inv): Likewise.
60621
60622         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
60623         and adjust the header comment.
60624
60625         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
60626         variable name from declaration.
60627
60628 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
60629
60630         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
60631         Initialize COMMON_CPUID_INDEX_7 element.
60632         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
60633         (CPUID_RTM): Likewise.
60634         (HAS_RTM): Likewise.
60635         (COMMON_CPUID_INDEX_7): New enum.
60636
60637 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
60638
60639         [BZ #14981]
60640         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
60641         size is zero, record memory as freed.
60642
60643 2013-01-03  Andreas Jaeger  <aj@suse.de>
60644
60645         * po/ia.po: Add new Interlingua translation.
60646
60647 2012-01-03  Allan McRae  <allan@archlinux.org>
60648
60649         * locale/programs/localedef.c: Fix description of '--posix' flag.
60650
60651 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
60652
60653         * NEWS: Update dates in second copyright notice.
60654         * README: Update copyright dates in example.
60655         * manual/libc.texinfo: Update copyright dates.
60656         * scripts/test-installation.pl: Update copyright date in --version
60657         output.
60658
60659         * hurd/ctty-input.c: Fix copyright notice formatting.
60660         * hurd/ctty-output.c: Likewise.
60661         * hurd/dtable.c: Likewise.
60662         * hurd/hurd-raise.c: Likewise.
60663         * hurd/hurdprio.c: Likewise.
60664         * hurd/msgportdemux.c: Likewise.
60665         * misc/sys/file.h: Likewise.
60666         * misc/sys/ioctl.h: Likewise.
60667         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
60668         * sysdeps/mach/hurd/chdir.c: Likewise.
60669         * sysdeps/mach/hurd/fchdir.c: Likewise.
60670         * sysdeps/mach/hurd/rename.c: Likewise.
60671         * sysdeps/mach/hurd/rmdir.c: Likewise.
60672         * sysdeps/mach/hurd/seekdir.c: Likewise.
60673         * sysdeps/mach/hurd/setsid.c: Likewise.
60674         * sysdeps/posix/wait3.c: Likewise.
60675
60676         * All files with FSF copyright notices: Update copyright dates
60677         using scripts/update-copyrights.
60678         * intl/plural.c: Regenerated.
60679         * locale/programs/charmap-kw.h: Likewise.
60680         * locale/programs/locfile-kw.h: Likewise.
60681
60682 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
60683
60684         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
60685         four values.
60686
60687         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
60688         calculation loop and add branch prediction.
60689
60690         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
60691         check access beyond bounds of m1np.
60692
60693         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
60694         MPTWO.
60695         (__inv): Remove local variable MPTWO to use the global
60696         constant.
60697         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
60698         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
60699         variable MPTWO.
60700         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
60701         MP3HALFS static const.
60702
60703 2013-01-01  David S. Miller  <davem@davemloft.net>
60704
60705         * po/ca.po: Update from translation team.
60706
60707 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
60708
60709         * scripts/update-copyrights: New file.
60710         * Makeconfig: Reformat copyright notice.
60711         * ctype/ctype.h: Likewise.
60712         * debug/swprintf_chk.c: Likewise.
60713         * elf/dl-cache.c: Likewise.
60714         * elf/dl-debug.c: Likewise.
60715         * elf/dl-object.c: Likewise.
60716         * grp/initgroups.c: Likewise.
60717         * hurd/Makefile: Likewise.
60718         * hurd/hurd/signal.h: Likewise.
60719         * hurd/hurdfault.c: Likewise.
60720         * hurd/hurdioctl.c: Likewise.
60721         * hurd/hurdlookup.c: Likewise.
60722         * hurd/intr-msg.c: Likewise.
60723         * iconv/gconv_open.c: Likewise.
60724         * libio/swprintf.c: Likewise.
60725         * locale/lc-ctype.c: Likewise.
60726         * locale/nl_langinfo.c: Likewise.
60727         * mach/Machrules: Likewise.
60728         * mach/Makefile: Likewise.
60729         * malloc/obstack.h: Likewise.
60730         * manual/Makefile: Likewise.
60731         * manual/tsort.awk: Likewise.
60732         * misc/bits/stab.def: Likewise.
60733         * nis/nis_print_group_entry.c: Likewise.
60734         * nis/nis_table.c: Likewise.
60735         * nis/nss_compat/compat-pwd.c: Likewise.
60736         * nis/nss_compat/compat-spwd.c: Likewise.
60737         * po/Makefile: Likewise.
60738         * posix/fnmatch.c: Likewise.
60739         * posix/regex.h: Likewise.
60740         * resolv/Makefile: Likewise.
60741         * resolv/nss_dns/dns-network.c: Likewise.
60742         * resolv/res_hconf.c: Likewise.
60743         * scripts/gen-sorted.awk: Likewise.
60744         * soft-fp/soft-fp.h: Likewise.
60745         * stdio-common/printf.h: Likewise.
60746         * stdlib/monetary.h: Likewise.
60747         * stdlib/random.c: Likewise.
60748         * stdlib/random_r.c: Likewise.
60749         * sysdeps/generic/Makefile: Likewise.
60750         * sysdeps/gnu/Makefile: Likewise.
60751         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
60752         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
60753         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
60754         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
60755         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
60756         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
60757         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
60758         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
60759         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
60760         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
60761         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
60762         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
60763         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
60764         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
60765         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
60766         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
60767         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
60768         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
60769         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
60770         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
60771         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
60772         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
60773         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
60774         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
60775         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
60776         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
60777         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
60778         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
60779         * sysdeps/mach/hurd/errnos.awk: Likewise.
60780         * sysdeps/mach/hurd/fork.c: Likewise.
60781         * sysdeps/mach/hurd/getcwd.c: Likewise.
60782         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
60783         * sysdeps/mach/hurd/mmap.c: Likewise.
60784         * sysdeps/mach/hurd/utimes.c: Likewise.
60785         * sysdeps/mach/hurd/xmknod.c: Likewise.
60786         * sysdeps/posix/profil.c: Likewise.
60787         * sysdeps/posix/readdir_r.c: Likewise.
60788         * sysdeps/powerpc/bits/mathdef.h: Likewise.
60789         * sysdeps/powerpc/bits/setjmp.h: Likewise.
60790         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
60791         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
60792         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
60793         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
60794         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
60795         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60796         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
60797         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
60798         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
60799         * sysdeps/pthread/lio_listio.c: Likewise.
60800         * sysdeps/sparc/dl-procinfo.h: Likewise.
60801         * sysdeps/unix/i386/sysdep.S: Likewise.
60802         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
60803         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
60804         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
60805         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
60806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
60807         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
60808         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
60809         * sysdeps/unix/sysv/linux/speed.c: Likewise.
60810         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
60811         * sysdeps/wordsize-32/divdi3.c: Likewise.
60812         * time/sys/time.h: Likewise.
60813         * wcsmbs/Makefile: Likewise.
60814
60815 2013-01-01  David S. Miller  <davem@davemloft.net>
60816
60817         * po/fr.po: Update from translation team.
60818
60819         * catgets/gencat.c: Update copyright year.
60820         * csu/version.c: Likewise.
60821         * debug/catchsegv.sh: Likewise.
60822         * debug/pcprofiledump.c: Likewise.
60823         * debug/xtrace.sh: Likewise.
60824         * elf/ldconfig.c: Likewise.
60825         * elf/ldd.bash.in: Likewise.
60826         * elf/pldd.c: Likewise.
60827         * elf/sotruss.ksh: Likewise.
60828         * elf/sprof.c: Likewise.
60829         * iconv/iconv_prog.c: Likewise.
60830         * iconv/iconvconfig.c: Likewise.
60831         * locale/programs/locale.c: Likewise.
60832         * locale/programs/localedef.c: Likewise.
60833         * login/programs/pt_chown.c: Likewise.
60834         * malloc/memusage.sh: Likewise.
60835         * malloc/memusagestat.c: Likewise.
60836         * malloc/mtrace.pl: Likewise.
60837         * nscd/nscd.c: Likewise.
60838         * nss/getent.c: Likewise.
60839         * nss/makedb.c: Likewise.
60840         * posix/getconf.c: Likewise.
60841
60842 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
60843
60844         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
60845         numbers.
60846
60847 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
60848
60849         * math/bits/mathcalls.h (modf): Use __nonnull.
60850
60851 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60852
60853         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
60854         (split): Use macro CN instead of the bare value.
60855         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
60856         could be used.
60857         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
60858         instead of the bare value.
60859         (power1): Likewise.
60860
60861 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60862
60863         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
60864         __ATAN_TWOM.
60865         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60866
60867         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
60868         their values.
60869         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
60870         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
60871         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
60872         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
60873
60874 2012-12-28  Andreas Jaeger  <aj@suse.de>
60875
60876         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
60877         values are from Linux 3.7.
60878
60879         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
60880         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
60881
60882 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60883
60884         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
60885         TRUE case.
60886
60887         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
60888         (norm): Likewise.
60889         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
60890         variables with preprocessor constants.
60891         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60892         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
60893         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
60894
60895 2012-12-27  Bruno Haible  <bruno@clisp.org>
60896
60897         [BZ #14317]
60898         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
60899         only if needed.
60900
60901 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60902
60903         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
60904         and use variable directly.
60905         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
60906
60907         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
60908         MPONE.
60909         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
60910         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
60911         variable MPONE.
60912         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
60913         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
60914         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
60915         include directive.  Remove local variable MPONE.
60916         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
60917         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
60918         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
60919
60920 2012-12-25  David S. Miller  <davem@davemloft.net>
60921
60922         * version.h (RELEASE): Set to "development".
60923         (VERSION): Set to "2.17.90".
60924         * NEWS: Add 2.18 section.
60925
60926 2012-12-21  David S. Miller  <davem@davemloft.net>
60927
60928         * po/hr.po: Update from translation team.
60929
60930 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60931
60932         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
60933
60934 2012-12-19  Steve Ellcey  <sellcey@mips.com>
60935
60936         * NEWS:  Mention new memcpy for MIPS.
60937
60938 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60939
60940         * manual/contrib.texi (Contributors): Spelling correction.
60941
60942 2012-12-15  David S. Miller  <davem@davemloft.net>
60943
60944         * po/ru.po: Update from translation team.
60945
60946 2012-12-13  David S. Miller  <davem@davemloft.net>
60947
60948         * NEWS: Mention IFUNC testsuite enhancements.
60949
60950         * po/pl.po: Update from translation team.
60951         * po/bg.po: Likewise.
60952
60953         * manual/contrib.texi (Contributors): Update entries for Hongjiu
60954         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
60955
60956 2012-12-11  David S. Miller  <davem@davemloft.net>
60957
60958         * po/sv.po: Update from translation team.
60959
60960         * po/vi.po: Update from translation team.
60961
60962         * po/cs.po: Update from translation team.
60963
60964         * po/de.po: Update from translation team.
60965         * po/eo.po: Likewise.
60966         * po/nl.po: Likewise.
60967
60968 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
60969
60970         [BZ #14246]
60971         * manual/argp.texi (Argp Helper Functions): Move node to follow
60972         Argp Parsing State.
60973
60974         [BZ #14872]
60975         * manual/conf.texi (Limits on File System Capacity): Mention if
60976         terminating null is included in the max size.
60977
60978 2012-12-10  Andreas Jaeger  <aj@suse.de>
60979
60980         * po/cs.po: Update from translation team.
60981
60982 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
60983
60984         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
60985         void pointer and cast to uintptr_t.
60986         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
60987         path.
60988         * sysdeps/s390/s390-64/memcpy.S: Likewise.
60989         * sysdeps/s390/s390-64/memset.S: Likewise.
60990
60991 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
60992
60993         [BZ #14833]
60994         * menual/message.texi (Message Translation): Fix typos.
60995         (Helper programs for gettext): Likewise.
60996
60997 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
60998
60999         [BZ #14898]
61000         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
61001         Change to -1.
61002
61003 2012-12-07  David S. Miller  <davem@davemloft.net>
61004
61005         * po/libc.pot: Update.
61006
61007 2012-12-07  Richard Henderson  <rth@redhat.com>
61008
61009         [BZ #10114]
61010         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
61011         normal/normal case to before the switch.
61012         (_FP_DIV): Likewise.
61013
61014 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
61015             Mike Frysinger  <vapier@gentoo.org>
61016
61017         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
61018         check for __NR_fadvise64_64.
61019
61020 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
61021
61022         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
61023         0, not just to plain "0" as a statement.
61024         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
61025         with cw.
61026
61027 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
61028
61029         * NEWS: Use sourceware.org in Bugzilla URL.
61030
61031 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
61032
61033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
61034         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
61035
61036         * stdio-common/tst-put-error.c (do_test): Add newline to the
61037         padded test to ensure flush.
61038
61039 2012-12-05  Jeff Law  <law@redhat.com>
61040
61041         * sunrpc/etc.rpc (fedfs_admin): Add entry.
61042
61043 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
61044
61045         * README: Don't refer to ports add-on as distributed separately.
61046         Mention AArch64 in list of systems supported in the ports add-on.
61047
61048         * LICENSES: Add more non-FSF copyright and license notices.
61049
61050         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
61051         ((unused)).
61052
61053         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
61054
61055         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
61056         10000 as width of padded output.
61057
61058 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
61059
61060         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
61061
61062         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
61063         variable LX with __attribute__ ((unused)).
61064         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
61065         Likewise.
61066         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
61067         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61068         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
61069         with __attribute__ ((unused)).
61070
61071 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
61072
61073         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
61074
61075 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
61076
61077         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
61078         (CFLAGS-nldbl-acos.c): New variable.
61079         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
61080         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
61081         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
61082         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
61083         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
61084         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
61085         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
61086         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
61087         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
61088         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
61089         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
61090         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
61091         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
61092         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
61093         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
61094         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
61095         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
61096         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
61097         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
61098         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
61099         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
61100         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
61101         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
61102         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
61103         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
61104         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
61105         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
61106         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
61107         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
61108         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
61109         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
61110         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
61111         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
61112         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
61113         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
61114         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
61115         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
61116         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
61117         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
61118         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
61119         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
61120         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
61121         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
61122         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
61123         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
61124         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
61125         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
61126         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
61127         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
61128         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
61129         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
61130         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
61131         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
61132         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
61133         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
61134         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
61135         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
61136         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
61137         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
61138         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
61139         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
61140         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
61141         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
61142         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
61143         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
61144         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
61145         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
61146         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
61147         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
61148         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
61149         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
61150         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
61151         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
61152         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
61153         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
61154         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
61155         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
61156         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
61157         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
61158         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
61159         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
61160         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
61161         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
61162         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
61163         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
61164         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
61165         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
61166         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
61167         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
61168         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
61169         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
61170         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
61171         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
61172         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
61173         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
61174         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
61175         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
61176
61177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
61178         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
61179
61180         [BZ #14914]
61181         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
61182         whole low double instead of just low 47 bits when splitting values
61183         into two parts.
61184
61185 2012-12-03  Allan McRae  <allan@archlinux.org>
61186
61187         * manual/stdio.texi (Predefined Printf Handlers): Remove
61188         @hsep and @vsep usage.
61189
61190 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
61191
61192         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
61193         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
61194
61195 2012-12-03  Jeff Law  <law@redhat.com>
61196
61197         * time/sys/time.h (settimeofday): Do not mark TV argument
61198         as __nonnull.
61199
61200 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
61201
61202         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
61203         when currently writing and seek to current position when not.
61204         * libio/Makefile (tests): Remove bug-fclose1.
61205         * libio/bug-fclose1.c: Delete.
61206
61207 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
61208
61209         * manual/arith.texi (feenableexcept): Fix typo.
61210         (fedisableexcept): Likewise.
61211
61212 2012-11-30  Roland McGrath  <roland@hack.frob.com>
61213
61214         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
61215         second, differently-typed declaration, rather than a cast.
61216
61217 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
61218
61219         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
61220         * include/rpc/svc.h: ... here.
61221
61222 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
61223
61224         [BZ #13013]
61225         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
61226         depending n and resplen2 to catch cases where answer
61227         equals answerp2.
61228
61229 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
61230
61231         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
61232         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
61233
61234 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
61235
61236         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
61237
61238 2012-11-29  Roland McGrath  <roland@hack.frob.com>
61239
61240         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
61241
61242 2012-11-28  Jeff Law  <law@redhat.com>
61243
61244         [BZ #13761]
61245         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
61246         dataset_temporary.  Track alloca usage into alloca_used.
61247         If dataset is large allocate and release it via malloc/free.
61248
61249 2012-06-04  Florian Weimer  <fweimer@redhat.com>
61250
61251         [BZ #14197]
61252         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
61253
61254 2012-11-28  David S. Miller  <davem@davemloft.net>
61255
61256         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61257
61258 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
61259
61260         [BZ #14803]
61261         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
61262         of pi/2 rounded to nearest to 64 bits.
61263         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
61264         nearest to 64 bits.
61265         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
61266         bits.
61267
61268 2012-11-28  Jeff Law <law@redhat.com>
61269             Martin Osvald <mosvald@redhat.com>
61270
61271         [BZ #14889]
61272         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
61273         * sunrpc/svc.c: Include time.h.
61274         (__svc_accept_failed): New function.
61275         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
61276         any reason other than EINTR, call __svc_accept_failed.
61277         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
61278         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
61279
61280 2012-11-28  Andreas Schwab  <schwab@suse.de>
61281
61282         * scripts/abilist.awk: Also handle indirect functions in .opd
61283         section.
61284
61285 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
61286
61287         [BZ #13881]
61288         * sysdeps/x86/fpu/powl_helper.c: New file.
61289         * sysdeps/x86/fpu/Makefile: Likewise.
61290         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
61291         (p3): New object.
61292         (__ieee754_powl): Use __powl_helper for finite arguments except
61293         integer exponents below 8.
61294         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
61295         (p3): New object.
61296         (__ieee754_powl): Use __powl_helper for finite arguments except
61297         integer exponents below 8.
61298         * math/libm-test.inc (pow_test): Add more tests and enable some
61299         previously disabled tests.
61300         * sysdeps/i386/fpu/libm-test-ulps: Update.
61301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61302
61303 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
61304             Carlos O'Donell  <carlos_odonell@mentor.com>
61305
61306         * nss/makedb.c (is_prime): Assert that input is odd and greater
61307         than 4.  Note that fact in a comment too.
61308         (next_prime): Add 4 to input.
61309
61310 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
61311
61312         [BZ #11741]
61313         * libio/Makefile (tests): Add test case tst-fwrite-error.
61314         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
61315         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
61316         * libio/tst-fwrite-error.c: New test case.
61317
61318 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
61319
61320         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
61321         before casting to void *.
61322         * include/libc-internal.h (__pointer_type): New macro.
61323         (__integer_if_pointer_type_sub): Likewise.
61324         (__integer_if_pointer_type): Likewise.
61325         (cast_to_integer): Likewise.
61326         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
61327         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
61328         before casting to atomic64_t.
61329         (atomic_exchange_acq): Likewise.
61330         (__arch_exchange_and_add_body): Likewise.
61331         (__arch_add_body): Likewise.
61332         (atomic_add_negative): Likewise.
61333         (atomic_add_zero): Likewise.
61334
61335 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
61336
61337         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
61338         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
61339         (add_fdes): Likewise.
61340         (linear_search_fdes): Likewise.
61341         (binary_search_unencoded_fdes): Likewise.
61342
61343 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
61344
61345         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
61346
61347 2012-11-24  Adam Conrad  <adconrad@0c3.net>
61348
61349         * configure.in: Autodetect C++ header directories.
61350         * configure: Regenerated.
61351
61352 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
61353
61354         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
61355
61356 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
61357
61358         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61359
61360 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
61361
61362         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
61363         LDBL_MANT_DIG == 106]: Disable some tests.
61364         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
61365         Likewise.
61366         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
61367         Likewise.
61368
61369         [BZ #14871]
61370         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
61371         input for small inputs.  Return +/- pi/2 for large inputs.
61372         * math/libm-test.inc (atan_test): Add more tests.
61373
61374         * sysdeps/generic/unwind-dw2-fde-glibc.c
61375         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
61376         __attribute__ ((unused)).
61377
61378         [BZ #14645]
61379         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
61380         x * y if x and y are nonzero and z is zero.
61381
61382         [BZ #14811]
61383         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
61384         nonzero exponents with absolute value below 0x1p-117 to +/-
61385         0x1p-117.
61386
61387         [BZ #14869]
61388         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
61389         up arguments below 2**-450, not just those below 2**-500.
61390         * math/libm-test.inc (hypot_test): Add another test.
61391
61392         [BZ #14868]
61393         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
61394         Return a+b for ratio over 2**120, not 2**60.
61395         * math/libm-test.inc (hypot_test): Add another test.
61396
61397         * math/libm-test.inc (clog_test): Use
61398         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
61399         (clog10_test): Likewise.
61400
61401         [BZ #6778]
61402         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
61403
61404 2012-11-22  Andreas Schwab  <schwab@suse.de>
61405
61406         * sysdeps/i386/fpu/libm-test-ulps: Update.
61407
61408 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
61409
61410         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
61411         printf output with newline.
61412
61413 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
61414
61415         [BZ #14865]
61416         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
61417         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
61418         -z nodlopen, -z initfirst and -z execstack support.
61419         * configure: Regenerated.
61420
61421         * elf/elf.h (DF_1_NODIRECT): New macro.
61422         (DF_1_IGNMULDEF): Likewise.
61423         (DF_1_NOKSYMS): Likewise.
61424         (DF_1_NOHDR): Likewise.
61425         (DF_1_EDITED): Likewise.
61426         (DF_1_NORELOC): Likewise.
61427         (DF_1_SYMINTPOSE): Likewise.
61428         (DF_1_GLOBAUDIT): Likewise.
61429         (DF_1_SINGLETON): Likewise.
61430         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
61431         DT_1_SUPPORTED_MASK bits.
61432         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
61433
61434 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
61435
61436         * sysdeps/unix/make-syscalls.sh: Document prefixes.
61437
61438 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
61439
61440         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
61441         macro.
61442
61443         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
61444         (sendmmsg): Move declarations...
61445         * socket/sys/socket.h: ... here.
61446         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
61447         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
61448         include it from...
61449         * socket/recvmmsg.c: ... this new file.
61450         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
61451         (sendmmsg): Rename to __sendmmsg, create weak alias and make
61452         definition of __sendmmsg hidden.
61453         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
61454         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
61455         Move ENOSYS stub into and include it from...
61456         * socket/sendmmsg.c: ... this new file.
61457         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
61458         (sysdep_routines): Move recvmmsg and sendmmsg...
61459         * socket/Makefile (routines): ... here.
61460         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
61461         (GLIBC_PRIVATE): Add __sendmmsg.
61462         * include/sys/socket.h (__sendmmsg): Add declarations.
61463         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
61464         sendmmsg.
61465
61466 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
61467
61468         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
61469         variable I1 with __attribute__ ((unused)).
61470         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
61471
61472 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
61473
61474         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
61475         DUMMY variables with __attribute__ ((unused)).
61476
61477         * bits/byteswap.h: Include <bits/types.h>.
61478         (__bswap_64): Use __uint64_t instead of unsigned long long int.
61479
61480 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
61481
61482         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
61483         string_t.  Do not manually set errno.
61484         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
61485         length with __strnlen.  Make sure to both set errno and return it on
61486         failure.
61487
61488 2012-11-19  David S. Miller  <davem@davemloft.net>
61489
61490         With help from Joseph Myers.
61491         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
61492         very large arguments properly.
61493         * math/libm-test.inc (atan_test): New tests.
61494         (atan2_test): New tests.
61495         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61496         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
61497
61498 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
61499
61500         [BZ #14856]
61501         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
61502         Define to 3.
61503
61504         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
61505         [POSIX] (EADDRNOTAVAIL): Likewise.
61506         [POSIX] (EAFNOSUPPORT): Likewise.
61507         [POSIX] (EALREADY): Likewise.
61508         [POSIX] (ECONNABORTED): Likewise.
61509         [POSIX] (ECONNREFUSED): Likewise.
61510         [POSIX] (ECONNRESET): Likewise.
61511         [POSIX] (EDESTADDRREQ): Likewise.
61512         [POSIX] (EDQUOT): Likewise.
61513         [POSIX] (EHOSTUNREACH): Likewise.
61514         [POSIX] (EIDRM): Likewise.
61515         [POSIX] (EISCONN): Likewise.
61516         [POSIX] (ELOOP): Likewise.
61517         [POSIX] (EMULTIHOP): Likewise.
61518         [POSIX] (ENETDOWN): Likewise.
61519         [POSIX] (ENETUNREACH): Likewise.
61520         [POSIX] (ENOBUFS): Likewise.
61521         [POSIX] (ENODATA): Likewise.
61522         [POSIX] (ENOLINK): Likewise.
61523         [POSIX] (ENOMSG): Likewise.
61524         [POSIX] (ENOPROTOOPT): Likewise.
61525         [POSIX] (ENOSR): Likewise.
61526         [POSIX] (ENOSTR): Likewise.
61527         [POSIX] (ENOTCONN): Likewise.
61528         [POSIX] (ENOTSOCK): Likewise.
61529         [POSIX] (EOPNOTSUPP): Likewise.
61530         [POSIX] (EOVERFLOW): Likewise.
61531         [POSIX] (EPROTO): Likewise.
61532         [POSIX] (EPROTONOSUPPORT): Likewise.
61533         [POSIX] (EPROTOTYPE): Likewise.
61534         [POSIX] (ESTALE): Likewise.
61535         [POSIX] (ETIME): Likewise.
61536         [POSIX] (ETXTBSY): Likewise.
61537         [POSIX] (EWOULDBLOCK): Likewise.
61538         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
61539         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
61540         [POSIX] (SEEK_CUR): Likewise.
61541         [POSIX] (SEEK_END): Likewise.
61542         [POSIX || UNIX98] (mode_t): Do not require.
61543         [POSIX] (off_t): Likewise.
61544         [POSIX] (pid_t): Likewise.
61545         [POSIX] (sys/stat.h): Do not allow header.
61546         [POSIX] (unistd.h): Likewise.
61547         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
61548         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
61549         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
61550         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
61551         require.
61552         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
61553         sigevent): Specify elements.
61554         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
61555         entry.
61556         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
61557         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
61558
61559         * conform/data/cpio.h-data [POSIX]: Disable whole file.
61560         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
61561         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
61562         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
61563         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
61564         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
61565         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
61566         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
61567         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
61568         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
61569         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
61570         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
61571         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
61572         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
61573         Likewise.
61574         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
61575         Likewise.
61576         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
61577         Likewise.
61578         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
61579         Likewise.
61580         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
61581         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
61582         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
61583         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
61584         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
61585         Specify lower bound on value.
61586         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
61587         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
61588         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
61589         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
61590         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
61591         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
61592         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
61593         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
61594         value.
61595         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
61596         as optional.
61597         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
61598         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
61599         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
61600         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
61601         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
61602         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
61603         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
61604         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
61605         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
61606         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
61607         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
61608         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
61609         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
61610         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
61611         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
61612         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
61613         entry.
61614         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
61615         optional.
61616         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
61617         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
61618         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
61619         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
61620         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
61621         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
61622         Likewise.
61623         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
61624         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
61625         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
61626         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
61627         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
61628         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
61629         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
61630         as optional.
61631         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
61632         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
61633         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
61634         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
61635         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
61636         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
61637         specify as optional.
61638         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
61639         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
61640         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
61641         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
61642         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
61643         [XPG3] (NL_LANGMAX): Likewise.
61644         [POSIX || XPG3] (NL_MSGMAX): Likewise.
61645         [POSIX || XPG3] (NL_NMAX): Likewise.
61646         [POSIX || XPG3] (NL_SETMAX): Likewise.
61647         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
61648         [XPG3] (NZERO): Likewise.
61649         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
61650         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
61651         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
61652         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
61653         (REG_ERANGE): Expect.
61654         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
61655         optional-constant.
61656         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
61657         Use (void) in prototype.
61658         [POSIX] (*_t): Allow.
61659         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
61660         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
61661         (WRDE_BADVAL): Expect.
61662
61663         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
61664         expect.
61665         [XPG3 || XPG4] (O_RSYNC): Likewise.
61666         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
61667         Likewise.
61668         [XPG3 || XPG4] (pthread_sigmask): Likewise.
61669         [XPG3 || XPG4] (sigqueue): Likewise.
61670         [XPG3 || XPG4] (sigtimedwait): Likewise.
61671         [XPG3 || XPG4] (sigwaitinfo): Likewise.
61672         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
61673         [XPG3 || XPG4] (vsnprintf): Likewise.
61674         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
61675         Likewise.
61676         [XPG3 || XPG4] (blksize_t): Likewise.
61677         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
61678         Likewise.
61679         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
61680         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
61681         [XPG3 || XPG4] (struct itimerspec): Likewise.
61682         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
61683         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
61684         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
61685         [XPG3 || XPG4] (clockid_t): Likewise.
61686         [XPG3 || XPG4] (timer_t): Likewise.
61687         [XPG3 || XPG4] (clock_getres): Likewise.
61688         [XPG3 || XPG4] (clock_gettime): Likewise.
61689         [XPG3 || XPG4] (clock_settime): Likewise.
61690         [XPG3 || XPG4] (nanosleep): Likewise.
61691         [XPG3 || XPG4] (timer_create): Likewise.
61692         [XPG3 || XPG4] (timer_delete): Likewise.
61693         [XPG3 || XPG4] (timer_gettime): Likewise.
61694         [XPG3 || XPG4] (timer_getoverrun): Likewise.
61695         [XPG3 || XPG4] (timer_settime): Likewise.
61696         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
61697         [XPG3 || XPG4] (getlogin_r): Likewise.
61698         [XPG3 || XPG4] (pread): Likewise.
61699         [XPG3 || XPG4] (pthread_atfork): Likewise.
61700         [XPG3 || XPG4] (pwrite): Likewise.
61701
61702         [BZ #14835]
61703         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
61704         <bits/siginfo.h>.
61705
61706 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
61707
61708         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
61709         finalizing MALLSTREAM.
61710
61711         * sysdeps/mach/hurd/syncfs.c: New file.
61712
61713 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
61714
61715         [BZ #14719]
61716         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
61717         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
61718         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
61719         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
61720         (_nss_dns_gethostbyname4_r): Likewise.
61721         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
61722         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
61723
61724 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
61725
61726         [BZ #13763]
61727         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
61728
61729 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
61730
61731         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
61732         * elf/cache.c (print_entry): Print ",AArch64" for
61733         FLAG_AARCH64_LIB64
61734
61735         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
61736         * elf/cache.c (print_entry): Print ",hard-float" for
61737         FLAG_ARM_LIBHF.
61738
61739 2012-11-18  David S. Miller  <davem@davemloft.net>
61740
61741         With help from Joseph Myers.
61742         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
61743         cutoff to 2**-13.
61744         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
61745         cutoff to 2**-25.
61746         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
61747         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
61748         small.
61749         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
61750         * math/libm-test.inc (y0_test): New tests.
61751         (y1_test): New tests.
61752         * sysdeps/i386/fpu/libm-test-ulps: Update.
61753         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
61754         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61755
61756 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
61757
61758         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
61759         64-bit targets.
61760         * configure: Regenerated.
61761
61762 2012-11-17  David S. Miller  <davem@davemloft.net>
61763
61764         [BZ #14811]
61765         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
61766         nonzero exponents with absolute value below 0x1p-128 to +/-
61767         0x1p-128.
61768
61769 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
61770
61771         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
61772
61773         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
61774
61775         * posix/getconf-speclist.c: New file.
61776         * posix/posix-envs.def: Likewise.
61777         * posix/confstr.c (START_ENV_GROUP): New macro.
61778         (END_ENV_GROUP): Likewise.
61779         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
61780         (KNOWN_PRESENT_ENV_STRING): Likewise.
61781         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
61782         (UNKNOWN_ENVIRONMENT): Likewise.
61783         (confstr): Include posix-envs.def instead of handling
61784         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
61785         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
61786         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
61787         (END_ENV_GROUP): Likewise.
61788         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
61789         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
61790         (UNKNOWN_ENVIRONMENT): Likewise.
61791         (__sysconf): Include posix-envs.def instead of handling associated
61792         cases directly here.
61793         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
61794         preprocessing getconf-speclist.c rather than running getconf or
61795         generating empty file.
61796
61797 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
61798
61799         * scripts/check-local-headers.sh: Ignore 'mach' headers.
61800
61801 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
61802
61803         [BZ #14672]
61804         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
61805
61806 2012-11-16  David S. Miller  <davem@davemloft.net>
61807
61808         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
61809         smaller than LDBL_EPSILON/2.0L, just return xm1.
61810
61811 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
61812
61813         * elf/tst-array1.c (init): Set constructor priority to 1000.
61814         (fini): Set destructor priority to 1000.
61815         * elf/tst-array2dep.c: Likewise.
61816
61817 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
61818
61819         [BZ #11741]
61820         * libio/fileops.c (_IO_new_file_write): Correctly return error.
61821         (_IO_new_file_xsputn): Also return EOF if none of the input
61822         data was written when overflow failed.
61823         * libio/iopadn.c (_IO_padn): Likewise.
61824         * libio/iowpadn.c (_IO_wpadn): Likewise.
61825         * stdio-common/tst-put-error.c: Add copyright notice.
61826         (do_test): Add case for printing padded string.
61827         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
61828         _IO_padn returned error.
61829         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
61830         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
61831         return EOF.
61832
61833 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
61834
61835         * libio/libioP.h: Add comment note that the references to C++
61836         bits are now obsolete.
61837
61838 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61839
61840         * math/libm-test.inc (check_complex): Use asprintf.
61841
61842 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
61843
61844         * debug/pcprofiledump.c (print_version): Update copyright year.
61845         * malloc/memusagestat.c (print_version): Likewise.
61846
61847 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
61848
61849         [BZ #14831]
61850         * elf/Makefile (tests): Add tst-audit8.
61851         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
61852         ($(objpfx)tst-audit8.out): New target.
61853         (tst-audit8-ENV): New variable.
61854         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
61855         audit if l_reloc_result is NULL.
61856         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
61857         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
61858         * elf/tst-audit8.c: New file.
61859
61860 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61861
61862         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
61863         * misc/Makefile (CFLAGS-select.c): Define.
61864         * posix/Makefile (CFLAGS-pause.c): Define.
61865
61866 2012-11-13  David S. Miller  <davem@davemloft.net>
61867
61868         * crypt/Makefile: Move test targets after toplevel Rules
61869         inclusion.  Grab any necessary sysdep routines when linking.
61870         * crypt/md5.c (md5_process_block): Remove define, we will always
61871         name it __md5_process_block.
61872         (md5_finish_ctx): Update md5_process_block call.
61873         (md5_stream): Likewise.
61874         (md5_process_bytes): Likewise.
61875         (md5_process_block): Rename to __md5_process_block and move to ...
61876         * crypt/md5-block.c: ... here.
61877         * crypt/sha256.c (sha256_process_block): Move to ...
61878         * crypt/sha256-block.c: ... here.
61879         * crypt/sha512.c (sha512_process_block): Move to ...
61880         * crypt/sha512-block.c: ... here.
61881         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
61882         path.
61883         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
61884         * sysdeps/sparc/sparc64/multiarch/Makefile
61885         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
61886         crypt subdir.
61887         (localedef-aux): Add md5 crypto assembler when in locale subdir.
61888         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
61889         multiarch changes.
61890         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
61891         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
61892         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
61893         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
61894         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
61895         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
61896         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
61897         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
61898         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
61899         file.
61900         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
61901         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
61902         file.
61903         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
61904
61905 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
61906
61907         * timezone/tzselect.ksh: Update from tzcode git revision
61908         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
61909         * timezone/zdump.c: Likewise.
61910         * timezone/zic.c: Likewise.
61911         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
61912         in TZVERSION setting, not $(PKGVERSION).
61913         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
61914         REPORT_BUGS_TO settings.
61915
61916         [BZ #14838]
61917         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
61918         macro.
61919
61920 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61921
61922         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
61923         detection to immediately after _FP_ROUND().
61924         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
61925         bits are 0.
61926
61927 2012-11-11  David S. Miller  <davem@davemloft.net>
61928
61929         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
61930         inttypes.h
61931         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
61932         __close rather than their public counterparts.
61933
61934 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
61935
61936         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
61937         file.
61938         [UNIX98] (sem_timedwait): Do not expect.
61939         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
61940         [XPG4 || UNIX98] (sockatmark): Do not expect.
61941         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
61942         (clock_getcpuclockid): Do not expect.
61943         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
61944         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
61945         Do not expect.
61946         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
61947         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
61948         [UNIX98] (vwscanf): Likewise.
61949         [UNIX98] (vswscanf): Likewise.
61950
61951 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
61952
61953         * timezone/version.h: Remove file.
61954         * timezone/README: Do not refer to version.h.
61955         * timezone/Makefile ($(objpfx)zic.o): New dependency on
61956         $(objpfx)version.h.
61957         ($(objpfx)zdump.o): Likewise.
61958         ($(objpfx)version.h): New target.
61959
61960         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
61961         2012i.
61962         * timezone/README: Don't mention modification to tzselect.ksh.
61963         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
61964         work on unmodified tzselect.ksh.  Substitute version numbers in
61965         tzselect.ksh.
61966
61967         * Makefile (format-me): Remove.
61968         (INSTALL): Adjust indentation.  Use commands directly instead of
61969         using $(format-me).
61970
61971         * aclocal.m4 (ACX_PKGVERSION): New macro.
61972         (ACX_BUGURL): Likewise.
61973         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
61974         (PKGVERSION): New AC_DEFINE_UNQUOTED.
61975         (REPORT_BUGS_TO): Likewise.
61976         * configure: Regenerated.
61977         * config.h.in (PKGVERSION): New macro.
61978         (REPORT_BUGS_TO): Likewise.
61979         * config.make.in (PKGVERSION): New variable.
61980         (PKGVERSION_TEXI): Likewise.
61981         (REPORT_BUGS_TO): Likewise.
61982         (REPORT_BUGS_TEXI): Likewise.
61983         * Makefile (format-me): Use -I$(common-objpfx)manual.
61984         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
61985         ($(common-objpfx)manual/%): New target.
61986         (manual/%): Remove target.
61987         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
61988         (print_version): Use PKGVERSION.
61989         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
61990         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
61991         and REPORT_BUGS_TO.
61992         ($(objpfx)xtrace): Likewise.
61993         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
61994         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
61995         (print_version): Use PKGVERSION.
61996         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
61997         (do_version): Use PKGVERSION.
61998         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
61999         REPORT_BUGS_TO.
62000         (common-ldd-rewrite): Likewise.
62001         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
62002         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
62003         (print_version): Use PKGVERSION.
62004         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
62005         * elf/pldd.c (argp_program_bug_address): Remove variable.
62006         (more_help): New function.
62007         (argp): Use more_help.
62008         (print_version): Use PKGVERSION.
62009         * elf/sln.c (main): Use PKGVERSION.
62010         (usage): Use REPORT_BUGS_TO.
62011         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
62012         (top level): Use PKGVERSION.
62013         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
62014         (print_version): Use PKGVERSION.
62015         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
62016         (print_version): Use PKGVERSION.
62017         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
62018         (print_version): Use PKGVERSION.
62019         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
62020         (print_version): Use PKGVERSION.
62021         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
62022         (print_version): Use PKGVERSION.
62023         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
62024         (print_version): Use PKGVERSION.
62025         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
62026         and BUGURL.
62027         ($(objpfx)memusage): Likewise.
62028         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
62029         (do_version): Use PKGVERSION.
62030         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
62031         (print_version): Use PKGVERSION.
62032         * malloc/mtrace.pl ($PACKAGE): Remove variable.
62033         ($PKGVERSION): New variable.
62034         ($REPORT_BUGS_TO): Likewise.
62035         (usage): Use $REPORT_BUGS_TO.
62036         (top level): Use $PKGVERSION.
62037         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
62038         ($(objpfx)pkgvers.texi): New rule.
62039         ($(objpfx)stamp-pkgvers): Likewise.
62040         * manual/install.texi: Include pkgvers.texi.
62041         (--with-pkgversion): Document new configure option.
62042         (--with-bugurl): Likewise.
62043         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
62044         than necessarily for this particular distribution.  Use
62045         REPORT_BUGS_TO for where to report bugs.
62046         * INSTALL: Regenerated.
62047         * manual/libc.texinfo: Include pkgvers.texi.
62048         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
62049         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
62050         (print_version): Use PKGVERSION.
62051         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
62052         (print_version): Use PKGVERSION.
62053         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
62054         (print_version): Use PKGVERSION.
62055         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
62056         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
62057         macro.
62058         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
62059         (print_version): Use PKGVERSION.
62060         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
62061         (print_version): Use PKGVERSION.
62062         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
62063         and PKGVERSION.
62064
62065         * timezone/checktab.awk: Update from tzcode 2012i.
62066         * timezone/ialloc.c: Likewise.
62067         * timezone/private.h: Likewise.
62068         * timezone/scheck.c: Likewise.
62069         * timezone/tzfile.h: Likewise.
62070         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
62071         (TZVERSION): Hardcode tzcode version number.
62072         * timezone/zdump.c: Update from tzcode 2012i.
62073         * timezone/zic.c: Likewise.
62074         * timezone/version.h: New file.
62075         * timezone/README: Describe version.h.  Update upstream location.
62076
62077         [BZ #14824]
62078         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
62079         (mktemp): Enable declaration.
62080         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
62081         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
62082         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
62083         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
62084         Likewise.
62085         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
62086         Likewise.
62087         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
62088         Likewise.
62089         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
62090         Likewise.
62091         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
62092         Likewise.
62093         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
62094         Likewise.
62095
62096         [BZ #14821]
62097         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
62098         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
62099         for copies of such integer values.
62100         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
62101         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
62102
62103 2012-11-09  Andreas Jaeger  <aj@suse.de>
62104
62105         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
62106         definitions and declarations that are provided by
62107         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
62108
62109 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
62110
62111         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
62112         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
62113         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
62114         definition.
62115
62116 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
62117
62118         * elf/elf.h: Update comment before AArch64 relocations.
62119
62120 2012-11-07  David S. Miller  <davem@davemloft.net>
62121
62122         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
62123         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
62124         (__start_context): Declare.
62125         (__makecontext_ret): Delete.
62126         (__makecontext): Hook up __start_context instead of
62127         __makecontext_ret.
62128         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
62129         (sysdep_routines): Add __start_context when in stdlib.
62130
62131 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
62132
62133         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
62134         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
62135         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
62136         hardcoded "nm".
62137         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
62138         (READELF): New variable.  Use it instead of hardcoded "readelf".
62139
62140 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
62141
62142         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
62143         * sysdeps/x86/Makefile: Here.
62144         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
62145         * sysdeps/x86/tst-xmmymm.sh: This.
62146
62147 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
62148
62149         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
62150         expectations.
62151         [UNIX98] (pthread_barrier_t): Do not expect.
62152         [UNIX98] (pthread_barrierattr_t): Likewise.
62153         [UNIX98] (pthread_spinlock_t): Likewise.
62154         [UNIX98] (pthread_barrier_destroy): Likewise.
62155         [UNIX98] (pthread_barrier_init): Likewise.
62156         [UNIX98] (pthread_barrier_wait): Likewise.
62157         [UNIX98] (pthread_barrierattr_destroy): Likewise.
62158         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
62159         [UNIX98] (pthread_barrierattr_init): Likewise.
62160         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
62161         [UNIX98] (pthread_getcpuclockid): Likewise.
62162         [UNIX98] (pthread_mutex_timedlock): Likewise.
62163         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
62164         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
62165         [UNIX98] (pthread_sigmask): Likewise.
62166         [UNIX98] (pthread_spin_destroy): Likewise.
62167         [UNIX98] (pthread_spin_init): Likewise.
62168         [UNIX98] (pthread_spin_lock): Likewise.
62169         [UNIX98] (pthread_spin_trylock): Likewise.
62170         [UNIX98] (pthread_spin_unlock): Likewise.
62171         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
62172         Do not expect.
62173         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
62174         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
62175         [XPG3 || XPG4] (pthread_cond_t): Likewise.
62176         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
62177         [XPG3 || XPG4] (pthread_key_t): Likewise.
62178         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
62179         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
62180         [XPG3 || XPG4] (pthread_once_t): Likewise.
62181         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
62182         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
62183         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
62184         [XPG3 || XPG4] (pthread_t): Likewise.
62185
62186         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
62187         not expect.
62188         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
62189
62190         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
62191         Change function return type to int.
62192
62193         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
62194         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
62195         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
62196         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
62197         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
62198         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
62199         [!POSIX] (posix_madvise): Likewise.
62200         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
62201         && !UNIX98].
62202         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
62203         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
62204         (mode_t): Likewise.
62205         (posix_mem_offset): Likewise.
62206         (posix_typed_mem_get_info): Likewise.
62207         (posix_typed_mem_open): Likewise.
62208
62209         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
62210         Change condition to [XOPEN2K8].
62211
62212         * conform/conformtest.pl: Preprocess allow-header data with -x c
62213         instead of from stdin.
62214         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
62215         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
62216         [C99-based standards] (cerfc): Likewise.
62217         [C99-based standards] (cexp2): Likewise.
62218         [C99-based standards] (cexpm1): Likewise.
62219         [C99-based standards] (clog10): Likewise.
62220         [C99-based standards] (clog1p): Likewise.
62221         [C99-based standards] (clog2): Likewise.
62222         [C99-based standards] (clgamma): Likewise.
62223         [C99-based standards] (ctgamma): Likewise.
62224         [C99-based standards] (cerff): Likewise.
62225         [C99-based standards] (cerfcf): Likewise.
62226         [C99-based standards] (cexp2f): Likewise.
62227         [C99-based standards] (cexpm1f): Likewise.
62228         [C99-based standards] (clog10f): Likewise.
62229         [C99-based standards] (clog1pf): Likewise.
62230         [C99-based standards] (clog2f): Likewise.
62231         [C99-based standards] (clgammaf): Likewise.
62232         [C99-based standards] (ctgammaf): Likewise.
62233         [C99-based standards] (cerfl): Likewise.
62234         [C99-based standards] (cerfcl): Likewise.
62235         [C99-based standards] (cexp2l): Likewise.
62236         [C99-based standards] (cexpm1l): Likewise.
62237         [C99-based standards] (clog10l): Likewise.
62238         [C99-based standards] (clog1pl): Likewise.
62239         [C99-based standards] (clog2l): Likewise.
62240         [C99-based standards] (clgammal): Likewise.
62241         [C99-based standards] (ctgammal): Likewise.
62242         * conform/data/inttypes.h-data [C99-based standards]: Include
62243         stdint.h-data.  Remove all expectations for stdint.h contents.
62244         [C99-based standards] (PRI*): Do not allow.
62245         [C99-based standards] (SCN*): Likewise.
62246         [C99-based standards] (*_t): Likewise.
62247         [C99-based-standards] (PRId8): Expect macro.
62248         [C99-based-standards] (PRIi8): Likewise.
62249         [C99-based-standards] (PRIo8): Likewise.
62250         [C99-based-standards] (PRIu8): Likewise.
62251         [C99-based-standards] (PRIx8): Likewise.
62252         [C99-based-standards] (PRIX8): Likewise.
62253         [C99-based-standards] (SCNd8): Likewise.
62254         [C99-based-standards] (SCNi8): Likewise.
62255         [C99-based-standards] (SCNo8): Likewise.
62256         [C99-based-standards] (SCNu8): Likewise.
62257         [C99-based-standards] (SCNx8): Likewise.
62258         [C99-based-standards] (PRIdLEAST8): Likewise.
62259         [C99-based-standards] (PRIiLEAST8): Likewise.
62260         [C99-based-standards] (PRIoLEAST8): Likewise.
62261         [C99-based-standards] (PRIuLEAST8): Likewise.
62262         [C99-based-standards] (PRIxLEAST8): Likewise.
62263         [C99-based-standards] (PRIXLEAST8): Likewise.
62264         [C99-based-standards] (SCNdLEAST8): Likewise.
62265         [C99-based-standards] (SCNiLEAST8): Likewise.
62266         [C99-based-standards] (SCNoLEAST8): Likewise.
62267         [C99-based-standards] (SCNuLEAST8): Likewise.
62268         [C99-based-standards] (SCNxLEAST8): Likewise.
62269         [C99-based-standards] (PRIdFAST8): Likewise.
62270         [C99-based-standards] (PRIiFAST8): Likewise.
62271         [C99-based-standards] (PRIoFAST8): Likewise.
62272         [C99-based-standards] (PRIuFAST8): Likewise.
62273         [C99-based-standards] (PRIxFAST8): Likewise.
62274         [C99-based-standards] (PRIXFAST8): Likewise.
62275         [C99-based-standards] (SCNdFAST8): Likewise.
62276         [C99-based-standards] (SCNiFAST8): Likewise.
62277         [C99-based-standards] (SCNoFAST8): Likewise.
62278         [C99-based-standards] (SCNuFAST8): Likewise.
62279         [C99-based-standards] (SCNxFAST8): Likewise.
62280         [C99-based-standards] (PRId16): Likewise.
62281         [C99-based-standards] (PRIi16): Likewise.
62282         [C99-based-standards] (PRIo16): Likewise.
62283         [C99-based-standards] (PRIu16): Likewise.
62284         [C99-based-standards] (PRIx16): Likewise.
62285         [C99-based-standards] (PRIX16): Likewise.
62286         [C99-based-standards] (SCNd16): Likewise.
62287         [C99-based-standards] (SCNi16): Likewise.
62288         [C99-based-standards] (SCNo16): Likewise.
62289         [C99-based-standards] (SCNu16): Likewise.
62290         [C99-based-standards] (SCNx16): Likewise.
62291         [C99-based-standards] (PRIdLEAST16): Likewise.
62292         [C99-based-standards] (PRIiLEAST16): Likewise.
62293         [C99-based-standards] (PRIoLEAST16): Likewise.
62294         [C99-based-standards] (PRIuLEAST16): Likewise.
62295         [C99-based-standards] (PRIxLEAST16): Likewise.
62296         [C99-based-standards] (PRIXLEAST16): Likewise.
62297         [C99-based-standards] (SCNdLEAST16): Likewise.
62298         [C99-based-standards] (SCNiLEAST16): Likewise.
62299         [C99-based-standards] (SCNoLEAST16): Likewise.
62300         [C99-based-standards] (SCNuLEAST16): Likewise.
62301         [C99-based-standards] (SCNxLEAST16): Likewise.
62302         [C99-based-standards] (PRIdFAST16): Likewise.
62303         [C99-based-standards] (PRIiFAST16): Likewise.
62304         [C99-based-standards] (PRIoFAST16): Likewise.
62305         [C99-based-standards] (PRIuFAST16): Likewise.
62306         [C99-based-standards] (PRIxFAST16): Likewise.
62307         [C99-based-standards] (PRIXFAST16): Likewise.
62308         [C99-based-standards] (SCNdFAST16): Likewise.
62309         [C99-based-standards] (SCNiFAST16): Likewise.
62310         [C99-based-standards] (SCNoFAST16): Likewise.
62311         [C99-based-standards] (SCNuFAST16): Likewise.
62312         [C99-based-standards] (SCNxFAST16): Likewise.
62313         [C99-based-standards] (PRId32): Likewise.
62314         [C99-based-standards] (PRIi32): Likewise.
62315         [C99-based-standards] (PRIo32): Likewise.
62316         [C99-based-standards] (PRIu32): Likewise.
62317         [C99-based-standards] (PRIx32): Likewise.
62318         [C99-based-standards] (PRIX32): Likewise.
62319         [C99-based-standards] (SCNd32): Likewise.
62320         [C99-based-standards] (SCNi32): Likewise.
62321         [C99-based-standards] (SCNo32): Likewise.
62322         [C99-based-standards] (SCNu32): Likewise.
62323         [C99-based-standards] (SCNx32): Likewise.
62324         [C99-based-standards] (PRIdLEAST32): Likewise.
62325         [C99-based-standards] (PRIiLEAST32): Likewise.
62326         [C99-based-standards] (PRIoLEAST32): Likewise.
62327         [C99-based-standards] (PRIuLEAST32): Likewise.
62328         [C99-based-standards] (PRIxLEAST32): Likewise.
62329         [C99-based-standards] (PRIXLEAST32): Likewise.
62330         [C99-based-standards] (SCNdLEAST32): Likewise.
62331         [C99-based-standards] (SCNiLEAST32): Likewise.
62332         [C99-based-standards] (SCNoLEAST32): Likewise.
62333         [C99-based-standards] (SCNuLEAST32): Likewise.
62334         [C99-based-standards] (SCNxLEAST32): Likewise.
62335         [C99-based-standards] (PRIdFAST32): Likewise.
62336         [C99-based-standards] (PRIiFAST32): Likewise.
62337         [C99-based-standards] (PRIoFAST32): Likewise.
62338         [C99-based-standards] (PRIuFAST32): Likewise.
62339         [C99-based-standards] (PRIxFAST32): Likewise.
62340         [C99-based-standards] (PRIXFAST32): Likewise.
62341         [C99-based-standards] (SCNdFAST32): Likewise.
62342         [C99-based-standards] (SCNiFAST32): Likewise.
62343         [C99-based-standards] (SCNoFAST32): Likewise.
62344         [C99-based-standards] (SCNuFAST32): Likewise.
62345         [C99-based-standards] (SCNxFAST32): Likewise.
62346         [C99-based-standards] (PRId64): Likewise.
62347         [C99-based-standards] (PRIi64): Likewise.
62348         [C99-based-standards] (PRIo64): Likewise.
62349         [C99-based-standards] (PRIu64): Likewise.
62350         [C99-based-standards] (PRIx64): Likewise.
62351         [C99-based-standards] (PRIX64): Likewise.
62352         [C99-based-standards] (SCNd64): Likewise.
62353         [C99-based-standards] (SCNi64): Likewise.
62354         [C99-based-standards] (SCNo64): Likewise.
62355         [C99-based-standards] (SCNu64): Likewise.
62356         [C99-based-standards] (SCNx64): Likewise.
62357         [C99-based-standards] (PRIdLEAST64): Likewise.
62358         [C99-based-standards] (PRIiLEAST64): Likewise.
62359         [C99-based-standards] (PRIoLEAST64): Likewise.
62360         [C99-based-standards] (PRIuLEAST64): Likewise.
62361         [C99-based-standards] (PRIxLEAST64): Likewise.
62362         [C99-based-standards] (PRIXLEAST64): Likewise.
62363         [C99-based-standards] (SCNdLEAST64): Likewise.
62364         [C99-based-standards] (SCNiLEAST64): Likewise.
62365         [C99-based-standards] (SCNoLEAST64): Likewise.
62366         [C99-based-standards] (SCNuLEAST64): Likewise.
62367         [C99-based-standards] (SCNxLEAST64): Likewise.
62368         [C99-based-standards] (PRIdFAST64): Likewise.
62369         [C99-based-standards] (PRIiFAST64): Likewise.
62370         [C99-based-standards] (PRIoFAST64): Likewise.
62371         [C99-based-standards] (PRIuFAST64): Likewise.
62372         [C99-based-standards] (PRIxFAST64): Likewise.
62373         [C99-based-standards] (PRIXFAST64): Likewise.
62374         [C99-based-standards] (SCNdFAST64): Likewise.
62375         [C99-based-standards] (SCNiFAST64): Likewise.
62376         [C99-based-standards] (SCNoFAST64): Likewise.
62377         [C99-based-standards] (SCNuFAST64): Likewise.
62378         [C99-based-standards] (SCNxFAST64): Likewise.
62379         [C99-based-standards] (PRIdMAX): Likewise.
62380         [C99-based-standards] (PRIiMAX): Likewise.
62381         [C99-based-standards] (PRIoMAX): Likewise.
62382         [C99-based-standards] (PRIuMAX): Likewise.
62383         [C99-based-standards] (PRIxMAX): Likewise.
62384         [C99-based-standards] (PRIXMAX): Likewise.
62385         [C99-based-standards] (SCNdMAX): Likewise.
62386         [C99-based-standards] (SCNiMAX): Likewise.
62387         [C99-based-standards] (SCNoMAX): Likewise.
62388         [C99-based-standards] (SCNuMAX): Likewise.
62389         [C99-based-standards] (SCNxMAX): Likewise.
62390         [C99-based-standards] (PRIdPTR): Likewise.
62391         [C99-based-standards] (PRIiPTR): Likewise.
62392         [C99-based-standards] (PRIoPTR): Likewise.
62393         [C99-based-standards] (PRIuPTR): Likewise.
62394         [C99-based-standards] (PRIxPTR): Likewise.
62395         [C99-based-standards] (PRIXPTR): Likewise.
62396         [C99-based-standards] (SCNdPTR): Likewise.
62397         [C99-based-standards] (SCNiPTR): Likewise.
62398         [C99-based-standards] (SCNoPTR): Likewise.
62399         [C99-based-standards] (SCNuPTR): Likewise.
62400         [C99-based-standards] (SCNxPTR): Likewise.
62401         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
62402         allow.
62403         * conform/data/stdint.h-data: Update comments to clarify
62404         requirements.
62405         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
62406         type.
62407         [C99-based standards] (INT8_MAX): Likewise.
62408         [C99-based standards] (INT16_MIN): Likewise.
62409         [C99-based standards] (INT16_MAX): Likewise.
62410         [C99-based standards] (INT32_MIN): Likewise.
62411         [C99-based standards] (INT32_MAX): Likewise.
62412         [C99-based standards] (INT64_MIN): Likewise.
62413         [C99-based standards] (INT64_MAX): Likewise.
62414         [C99-based standards] (UINT8_MAX): Likewise.
62415         [C99-based standards] (UINT16_MAX): Likewise.
62416         [C99-based standards] (UINT32_MAX): Likewise.
62417         [C99-based standards] (UINT64_MAX): Likewise.
62418         [C99-based standards] (INT_LEAST8_MIN): Likewise.
62419         [C99-based standards] (INT_LEAST8_MAX): Likewise.
62420         [C99-based standards] (INT_LEAST16_MIN): Likewise.
62421         [C99-based standards] (INT_LEAST16_MAX): Likewise.
62422         [C99-based standards] (INT_LEAST32_MIN): Likewise.
62423         [C99-based standards] (INT_LEAST32_MAX): Likewise.
62424         [C99-based standards] (INT_LEAST64_MIN): Likewise.
62425         [C99-based standards] (INT_LEAST64_MAX): Likewise.
62426         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
62427         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
62428         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
62429         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
62430         [C99-based standards] (INT_FAST8_MIN): Likewise.
62431         [C99-based standards] (INT_FAST8_MAX): Likewise.
62432         [C99-based standards] (INT_FAST16_MIN): Likewise.
62433         [C99-based standards] (INT_FAST16_MAX): Likewise.
62434         [C99-based standards] (INT_FAST32_MIN): Likewise.
62435         [C99-based standards] (INT_FAST32_MAX): Likewise.
62436         [C99-based standards] (INT_FAST64_MIN): Likewise.
62437         [C99-based standards] (INT_FAST64_MAX): Likewise.
62438         [C99-based standards] (UINT_FAST8_MAX): Likewise.
62439         [C99-based standards] (UINT_FAST16_MAX): Likewise.
62440         [C99-based standards] (UINT_FAST32_MAX): Likewise.
62441         [C99-based standards] (UINT_FAST64_MAX): Likewise.
62442         [C99-based standards] (INTPTR_MIN): Likewise.
62443         [C99-based standards] (INTPTR_MAX): Likewise.
62444         [C99-based standards] (UINTPTR_MAX): Likewise.
62445         [C99-based standards] (INTMAX_MIN): Likewise.
62446         [C99-based standards] (INTMAX_MAX): Likewise.
62447         [C99-based standards] (UINTMAX_MAX): Likewise.
62448         [C99-based standards] (PTRDIFF_MIN): Likewise.
62449         [C99-based standards] (PTRDIFF_MAX): Likewise.
62450         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
62451         [C99-based standards] (SIZE_MAX): Likewise.
62452         [C99-based standards] (WCHAR_MAX): Likewise.
62453         [C99-based standards] (WINT_MAX): Likewise.
62454         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
62455         constraint on value.
62456         [C99-based standards] (WCHAR_MIN): Likewise.
62457         [C99-based standards] (WINT_MIN): Likewise.
62458         [C99-based standards] (*_t): Allow.
62459         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
62460         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
62461         Include math.h-data and complex.h-data.  Remove all expectations
62462         of math.h and complex.h contents.
62463         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
62464         at end of line.
62465         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
62466         (struct tm): Expect tag.
62467         [C99-based-standards] (wcstof): Expect function.
62468         [C99-based-standards] (wcstold): Likewise.
62469         [C99-based-standards] (wcstoll): Likewise.
62470         [C99-based-standards] (wcstoull): Likewise.
62471         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
62472         macro-int-constant.  Specify type.
62473         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
62474         constraint on value.
62475         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
62476         Specify type.
62477         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
62478         Specify value.
62479         [ISO C standards]: Do not allow headers.
62480         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
62481         wcs[abcdefghijklmnopqrstuvwxyz]*.
62482         [ISO C standards] (*_t): Do not allow.
62483         * conform/data/wctype.h-data [C99-based standards] (iswblank):
62484         Expect function.
62485         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
62486         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
62487         Specify type.
62488         [ISO C standards]: Do not allow headers.
62489         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
62490         is[abcdefghijklmnopqrstuvwxyz]*.
62491         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
62492         to[abcdefghijklmnopqrstuvwxyz]*.
62493         [ISO C standards] (*_t): Do not allow.
62494         * conform/data/stdalign.h-data: New file.
62495         * conform/data/stdbool.h-data: Likewise.
62496         * conform/data/stdnoreturn.h-data: Likewise.
62497
62498 2012-11-07  Roland McGrath  <roland@hack.frob.com>
62499
62500         [BZ #14815]
62501         * manual/filesys.texi (Directory Entries): Typo fix.
62502         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
62503
62504 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
62505
62506         * elf/elf.h (EM_AARCH64): New macro.
62507         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
62508         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
62509         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
62510         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
62511         (R_AARCH64_TLSDESC): Likewise.
62512         (NT_ARM_TLS): Likewise.
62513         (NT_ARM_HW_BREAK): Likewise.
62514         (NT_ARM_HW_WATCH): Likewise.
62515
62516 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
62517
62518         [BZ #14811]
62519         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
62520         (__ieee754_powl): Saturate nonzero exponents with absolute value
62521         below 0x1p-79 to +/- 0x1p-79.
62522         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
62523         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
62524         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
62525         nonzero exponents with absolute value below 0x1p-32 to +/-
62526         0x1p-32.
62527         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
62528         (__ieee754_powl): Saturate nonzero exponents with absolute value
62529         below 0x1p-79 to +/- 0x1p-79.
62530         * math/libm-test.inc (pow_test): Add more tests.
62531
62532 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
62533
62534         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
62535         _dl_s390_cap_flags with kernel. Increase string length.
62536         (_dl_s390_platforms): Add z196 and zEC12.
62537
62538 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
62539
62540         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
62541         Change XOPEN21K to XOPEN2K.
62542
62543 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
62544
62545         * string/memmove.c: Use memcpy when possible.
62546
62547 2012-11-06  Andreas Jaeger  <aj@suse.de>
62548
62549         * po/eo.po: Update from translation team.
62550
62551 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
62552
62553         [BZ #14793]
62554         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
62555         exponent and small x and y exponents, scale x or y up.  Increase
62556         by 2 the exponent used in scaling up.
62557         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62558         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62559         * math/libm-test.inc (fma_test): Add more tests.
62560         (fma_test_towardzero): Likewise.
62561         (fma_test_downward): Likewise.
62562         (fma_test_upward): Likewise.
62563
62564 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
62565
62566         [BZ #14805]
62567         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
62568         fenv_t *.
62569
62570         [BZ #14801]
62571         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
62572         namespace for names of struct fields.
62573         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
62574         fenv_t fields.
62575         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
62576         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
62577
62578 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62579
62580         [BZ #3665]
62581         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
62582
62583 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
62584
62585         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
62586         PTR_DEMANGLE.
62587
62588         [BZ #5246]
62589         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
62590         PTR_DEMANGLE.
62591
62592 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
62593
62594         [BZ #14797]
62595         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
62596         definitely overflow as x * y not x * y + z.
62597         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62598         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62599         * math/libm-test.inc (fma_test): Add more tests.
62600         (fma_test_towardzero): Likewise.
62601         (fma_test_downward): Likewise.
62602         (fma_test_upward): Likewise.
62603
62604 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
62605
62606         [BZ #157]
62607
62608         * include/stub-tag.h: Remove file.
62609         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
62610         '#include' of it.
62611         * manual/maint.texi (Porting): Don't reference it.
62612         * Makerules ($(objpfx)stubs): Likewise.
62613         * dirent/closedir.c: Don't include <stub-tag.h>.
62614         * dirent/dirfd.c: Likewise.
62615         * dirent/fdopendir.c: Likewise.
62616         * dirent/getdents.c: Likewise.
62617         * dirent/getdents64.c: Likewise.
62618         * dirent/opendir.c: Likewise.
62619         * dirent/readdir.c: Likewise.
62620         * dirent/readdir64.c: Likewise.
62621         * dirent/readdir64_r.c: Likewise.
62622         * dirent/readdir_r.c: Likewise.
62623         * dirent/rewinddir.c: Likewise.
62624         * dirent/seekdir.c: Likewise.
62625         * dirent/telldir.c: Likewise.
62626         * gmon/profil.c: Likewise.
62627         * grp/setgroups.c: Likewise.
62628         * inet/if_index.c: Likewise.
62629         * io/access.c: Likewise.
62630         * io/chdir.c: Likewise.
62631         * io/chmod.c: Likewise.
62632         * io/chown.c: Likewise.
62633         * io/close.c: Likewise.
62634         * io/dup.c: Likewise.
62635         * io/dup2.c: Likewise.
62636         * io/dup3.c: Likewise.
62637         * io/euidaccess.c: Likewise.
62638         * io/faccessat.c: Likewise.
62639         * io/fchdir.c: Likewise.
62640         * io/fchmod.c: Likewise.
62641         * io/fchmodat.c: Likewise.
62642         * io/fchown.c: Likewise.
62643         * io/fchownat.c: Likewise.
62644         * io/fcntl.c: Likewise.
62645         * io/flock.c: Likewise.
62646         * io/fstatfs.c: Likewise.
62647         * io/fstatfs64.c: Likewise.
62648         * io/fstatvfs.c: Likewise.
62649         * io/fstatvfs64.c: Likewise.
62650         * io/futimens.c: Likewise.
62651         * io/fxstat.c: Likewise.
62652         * io/fxstat64.c: Likewise.
62653         * io/fxstatat.c: Likewise.
62654         * io/fxstatat64.c: Likewise.
62655         * io/getcwd.c: Likewise.
62656         * io/isatty.c: Likewise.
62657         * io/lchmod.c: Likewise.
62658         * io/lchown.c: Likewise.
62659         * io/link.c: Likewise.
62660         * io/linkat.c: Likewise.
62661         * io/lseek.c: Likewise.
62662         * io/lseek64.c: Likewise.
62663         * io/lxstat64.c: Likewise.
62664         * io/mkdir.c: Likewise.
62665         * io/mkdirat.c: Likewise.
62666         * io/mkfifo.c: Likewise.
62667         * io/mkfifoat.c: Likewise.
62668         * io/open.c: Likewise.
62669         * io/open64.c: Likewise.
62670         * io/openat.c: Likewise.
62671         * io/openat64.c: Likewise.
62672         * io/pipe.c: Likewise.
62673         * io/pipe2.c: Likewise.
62674         * io/poll.c: Likewise.
62675         * io/posix_fadvise.c: Likewise.
62676         * io/posix_fadvise64.c: Likewise.
62677         * io/posix_fallocate.c: Likewise.
62678         * io/posix_fallocate64.c: Likewise.
62679         * io/read.c: Likewise.
62680         * io/readlink.c: Likewise.
62681         * io/readlinkat.c: Likewise.
62682         * io/rmdir.c: Likewise.
62683         * io/sendfile.c: Likewise.
62684         * io/sendfile64.c: Likewise.
62685         * io/statfs.c: Likewise.
62686         * io/statfs64.c: Likewise.
62687         * io/statvfs.c: Likewise.
62688         * io/statvfs64.c: Likewise.
62689         * io/symlink.c: Likewise.
62690         * io/symlinkat.c: Likewise.
62691         * io/ttyname.c: Likewise.
62692         * io/ttyname_r.c: Likewise.
62693         * io/umask.c: Likewise.
62694         * io/unlink.c: Likewise.
62695         * io/unlinkat.c: Likewise.
62696         * io/utime.c: Likewise.
62697         * io/utimensat.c: Likewise.
62698         * io/write.c: Likewise.
62699         * io/xmknod.c: Likewise.
62700         * io/xmknodat.c: Likewise.
62701         * io/xstat.c: Likewise.
62702         * io/xstat64.c: Likewise.
62703         * login/getpt.c: Likewise.
62704         * login/grantpt.c: Likewise.
62705         * login/unlockpt.c: Likewise.
62706         * math/e_acoshl.c: Likewise.
62707         * math/e_acosl.c: Likewise.
62708         * math/e_asinl.c: Likewise.
62709         * math/e_atan2l.c: Likewise.
62710         * math/e_atanhl.c: Likewise.
62711         * math/e_coshl.c: Likewise.
62712         * math/e_expl.c: Likewise.
62713         * math/e_fmodl.c: Likewise.
62714         * math/e_gammal_r.c: Likewise.
62715         * math/e_hypotl.c: Likewise.
62716         * math/e_j0l.c: Likewise.
62717         * math/e_j1l.c: Likewise.
62718         * math/e_jnl.c: Likewise.
62719         * math/e_lgammal_r.c: Likewise.
62720         * math/e_log10l.c: Likewise.
62721         * math/e_log2l.c: Likewise.
62722         * math/e_logl.c: Likewise.
62723         * math/e_powl.c: Likewise.
62724         * math/e_rem_pio2l.c: Likewise.
62725         * math/e_sinhl.c: Likewise.
62726         * math/e_sqrtl.c: Likewise.
62727         * math/fclrexcpt.c: Likewise.
62728         * math/fedisblxcpt.c: Likewise.
62729         * math/feenablxcpt.c: Likewise.
62730         * math/fegetenv.c: Likewise.
62731         * math/fegetexcept.c: Likewise.
62732         * math/fegetround.c: Likewise.
62733         * math/feholdexcpt.c: Likewise.
62734         * math/fesetenv.c: Likewise.
62735         * math/fesetround.c: Likewise.
62736         * math/feupdateenv.c: Likewise.
62737         * math/fgetexcptflg.c: Likewise.
62738         * math/fraiseexcpt.c: Likewise.
62739         * math/fsetexcptflg.c: Likewise.
62740         * math/ftestexcept.c: Likewise.
62741         * math/k_cosl.c: Likewise.
62742         * math/k_rem_pio2l.c: Likewise.
62743         * math/k_sinl.c: Likewise.
62744         * math/k_tanl.c: Likewise.
62745         * math/s_asinhl.c: Likewise.
62746         * math/s_atanl.c: Likewise.
62747         * math/s_cbrtl.c: Likewise.
62748         * math/s_erfl.c: Likewise.
62749         * math/s_expm1l.c: Likewise.
62750         * math/s_log1pl.c: Likewise.
62751         * math/s_tanhl.c: Likewise.
62752         * misc/acct.c: Likewise.
62753         * misc/brk.c: Likewise.
62754         * misc/chflags.c: Likewise.
62755         * misc/chroot.c: Likewise.
62756         * misc/fchflags.c: Likewise.
62757         * misc/fgetxattr.c: Likewise.
62758         * misc/flistxattr.c: Likewise.
62759         * misc/fremovexattr.c: Likewise.
62760         * misc/fsetxattr.c: Likewise.
62761         * misc/fsync.c: Likewise.
62762         * misc/ftruncate.c: Likewise.
62763         * misc/futimes.c: Likewise.
62764         * misc/futimesat.c: Likewise.
62765         * misc/getdomain.c: Likewise.
62766         * misc/getdtsz.c: Likewise.
62767         * misc/gethostid.c: Likewise.
62768         * misc/gethostname.c: Likewise.
62769         * misc/getloadavg.c: Likewise.
62770         * misc/getpagesize.c: Likewise.
62771         * misc/getsysstats.c: Likewise.
62772         * misc/getxattr.c: Likewise.
62773         * misc/gtty.c: Likewise.
62774         * misc/ioctl.c: Likewise.
62775         * misc/lgetxattr.c: Likewise.
62776         * misc/listxattr.c: Likewise.
62777         * misc/llistxattr.c: Likewise.
62778         * misc/lremovexattr.c: Likewise.
62779         * misc/lsetxattr.c: Likewise.
62780         * misc/lutimes.c: Likewise.
62781         * misc/madvise.c: Likewise.
62782         * misc/mincore.c: Likewise.
62783         * misc/mlock.c: Likewise.
62784         * misc/mlockall.c: Likewise.
62785         * misc/mmap.c: Likewise.
62786         * misc/mprotect.c: Likewise.
62787         * misc/msync.c: Likewise.
62788         * misc/munlock.c: Likewise.
62789         * misc/munlockall.c: Likewise.
62790         * misc/munmap.c: Likewise.
62791         * misc/preadv.c: Likewise.
62792         * misc/preadv64.c: Likewise.
62793         * misc/ptrace.c: Likewise.
62794         * misc/pwritev.c: Likewise.
62795         * misc/pwritev64.c: Likewise.
62796         * misc/readv.c: Likewise.
62797         * misc/reboot.c: Likewise.
62798         * misc/remap_file_pages.c: Likewise.
62799         * misc/removexattr.c: Likewise.
62800         * misc/revoke.c: Likewise.
62801         * misc/select.c: Likewise.
62802         * misc/setdomain.c: Likewise.
62803         * misc/setegid.c: Likewise.
62804         * misc/seteuid.c: Likewise.
62805         * misc/sethostid.c: Likewise.
62806         * misc/sethostname.c: Likewise.
62807         * misc/setregid.c: Likewise.
62808         * misc/setreuid.c: Likewise.
62809         * misc/setxattr.c: Likewise.
62810         * misc/sstk.c: Likewise.
62811         * misc/stty.c: Likewise.
62812         * misc/swapoff.c: Likewise.
62813         * misc/swapon.c: Likewise.
62814         * misc/sync.c: Likewise.
62815         * misc/syncfs.c: Likewise.
62816         * misc/syscall.c: Likewise.
62817         * misc/truncate.c: Likewise.
62818         * misc/ualarm.c: Likewise.
62819         * misc/usleep.c: Likewise.
62820         * misc/ustat.c: Likewise.
62821         * misc/utimes.c: Likewise.
62822         * misc/vhangup.c: Likewise.
62823         * misc/writev.c: Likewise.
62824         * posix/_exit.c: Likewise.
62825         * posix/alarm.c: Likewise.
62826         * posix/execve.c: Likewise.
62827         * posix/fexecve.c: Likewise.
62828         * posix/fork.c: Likewise.
62829         * posix/fpathconf.c: Likewise.
62830         * posix/getaddrinfo.c: Likewise.
62831         * posix/getegid.c: Likewise.
62832         * posix/geteuid.c: Likewise.
62833         * posix/getgid.c: Likewise.
62834         * posix/getgroups.c: Likewise.
62835         * posix/getlogin.c: Likewise.
62836         * posix/getlogin_r.c: Likewise.
62837         * posix/getpgid.c: Likewise.
62838         * posix/getpid.c: Likewise.
62839         * posix/getppid.c: Likewise.
62840         * posix/getresgid.c: Likewise.
62841         * posix/getresuid.c: Likewise.
62842         * posix/getsid.c: Likewise.
62843         * posix/getuid.c: Likewise.
62844         * posix/glob64.c: Likewise.
62845         * posix/nanosleep.c: Likewise.
62846         * posix/pathconf.c: Likewise.
62847         * posix/pause.c: Likewise.
62848         * posix/posix_madvise.c: Likewise.
62849         * posix/pread.c: Likewise.
62850         * posix/pread64.c: Likewise.
62851         * posix/pwrite.c: Likewise.
62852         * posix/pwrite64.c: Likewise.
62853         * posix/sched_getaffinity.c: Likewise.
62854         * posix/sched_getp.c: Likewise.
62855         * posix/sched_gets.c: Likewise.
62856         * posix/sched_primax.c: Likewise.
62857         * posix/sched_primin.c: Likewise.
62858         * posix/sched_rr_gi.c: Likewise.
62859         * posix/sched_setaffinity.c: Likewise.
62860         * posix/sched_setp.c: Likewise.
62861         * posix/sched_sets.c: Likewise.
62862         * posix/sched_yield.c: Likewise.
62863         * posix/setgid.c: Likewise.
62864         * posix/setlogin.c: Likewise.
62865         * posix/setpgid.c: Likewise.
62866         * posix/setresgid.c: Likewise.
62867         * posix/setresuid.c: Likewise.
62868         * posix/setsid.c: Likewise.
62869         * posix/setuid.c: Likewise.
62870         * posix/sleep.c: Likewise.
62871         * posix/spawni.c: Likewise.
62872         * posix/sysconf.c: Likewise.
62873         * posix/times.c: Likewise.
62874         * posix/wait.c: Likewise.
62875         * posix/wait3.c: Likewise.
62876         * posix/wait4.c: Likewise.
62877         * posix/waitpid.c: Likewise.
62878         * resolv/gai_sigqueue.c: Likewise.
62879         * resource/getpriority.c: Likewise.
62880         * resource/getrlimit.c: Likewise.
62881         * resource/getrusage.c: Likewise.
62882         * resource/nice.c: Likewise.
62883         * resource/setpriority.c: Likewise.
62884         * resource/setrlimit.c: Likewise.
62885         * resource/ulimit.c: Likewise.
62886         * rt/aio_cancel.c: Likewise.
62887         * rt/aio_fsync.c: Likewise.
62888         * rt/aio_read.c: Likewise.
62889         * rt/aio_sigqueue.c: Likewise.
62890         * rt/aio_suspend.c: Likewise.
62891         * rt/aio_write.c: Likewise.
62892         * rt/clock_getres.c: Likewise.
62893         * rt/clock_gettime.c: Likewise.
62894         * rt/clock_nanosleep.c: Likewise.
62895         * rt/clock_settime.c: Likewise.
62896         * rt/lio_listio.c: Likewise.
62897         * rt/mq_close.c: Likewise.
62898         * rt/mq_getattr.c: Likewise.
62899         * rt/mq_notify.c: Likewise.
62900         * rt/mq_open.c: Likewise.
62901         * rt/mq_receive.c: Likewise.
62902         * rt/mq_send.c: Likewise.
62903         * rt/mq_setattr.c: Likewise.
62904         * rt/mq_timedreceive.c: Likewise.
62905         * rt/mq_timedsend.c: Likewise.
62906         * rt/mq_unlink.c: Likewise.
62907         * rt/shm_open.c: Likewise.
62908         * rt/shm_unlink.c: Likewise.
62909         * rt/timer_create.c: Likewise.
62910         * rt/timer_delete.c: Likewise.
62911         * rt/timer_getoverr.c: Likewise.
62912         * rt/timer_gettime.c: Likewise.
62913         * rt/timer_settime.c: Likewise.
62914         * setjmp/__longjmp.c: Likewise.
62915         * setjmp/setjmp.c: Likewise.
62916         * signal/kill.c: Likewise.
62917         * signal/killpg.c: Likewise.
62918         * signal/raise.c: Likewise.
62919         * signal/sigaction.c: Likewise.
62920         * signal/sigaltstack.c: Likewise.
62921         * signal/sigblock.c: Likewise.
62922         * signal/sigignore.c: Likewise.
62923         * signal/sigintr.c: Likewise.
62924         * signal/signal.c: Likewise.
62925         * signal/sigpause.c: Likewise.
62926         * signal/sigpending.c: Likewise.
62927         * signal/sigqueue.c: Likewise.
62928         * signal/sigreturn.c: Likewise.
62929         * signal/sigset.c: Likewise.
62930         * signal/sigsetmask.c: Likewise.
62931         * signal/sigstack.c: Likewise.
62932         * signal/sigsuspend.c: Likewise.
62933         * signal/sigtimedwait.c: Likewise.
62934         * signal/sigvec.c: Likewise.
62935         * signal/sigwait.c: Likewise.
62936         * signal/sigwaitinfo.c: Likewise.
62937         * signal/sysv_signal.c: Likewise.
62938         * socket/accept.c: Likewise.
62939         * socket/accept4.c: Likewise.
62940         * socket/bind.c: Likewise.
62941         * socket/connect.c: Likewise.
62942         * socket/getpeername.c: Likewise.
62943         * socket/getsockname.c: Likewise.
62944         * socket/getsockopt.c: Likewise.
62945         * socket/isfdtype.c: Likewise.
62946         * socket/listen.c: Likewise.
62947         * socket/recv.c: Likewise.
62948         * socket/recvfrom.c: Likewise.
62949         * socket/recvmsg.c: Likewise.
62950         * socket/send.c: Likewise.
62951         * socket/sendmsg.c: Likewise.
62952         * socket/sendto.c: Likewise.
62953         * socket/setsockopt.c: Likewise.
62954         * socket/shutdown.c: Likewise.
62955         * socket/sockatmark.c: Likewise.
62956         * socket/socket.c: Likewise.
62957         * socket/socketpair.c: Likewise.
62958         * stdio-common/ctermid.c: Likewise.
62959         * stdio-common/cuserid.c: Likewise.
62960         * stdio-common/remove.c: Likewise.
62961         * stdio-common/rename.c: Likewise.
62962         * stdio-common/renameat.c: Likewise.
62963         * stdio-common/tempname.c: Likewise.
62964         * stdlib/getcontext.c: Likewise.
62965         * stdlib/makecontext.c: Likewise.
62966         * stdlib/setcontext.c: Likewise.
62967         * stdlib/swapcontext.c: Likewise.
62968         * stdlib/system.c: Likewise.
62969         * streams/fattach.c: Likewise.
62970         * streams/fdetach.c: Likewise.
62971         * streams/getmsg.c: Likewise.
62972         * streams/getpmsg.c: Likewise.
62973         * streams/putmsg.c: Likewise.
62974         * streams/putpmsg.c: Likewise.
62975         * sysdeps/unix/bsd/getpt.c: Likewise.
62976         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
62977         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
62978         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
62979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
62980         Likewise.
62981         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
62982         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
62983         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
62984         * sysvipc/msgctl.c: Likewise.
62985         * sysvipc/msgget.c: Likewise.
62986         * sysvipc/msgrcv.c: Likewise.
62987         * sysvipc/msgsnd.c: Likewise.
62988         * sysvipc/semctl.c: Likewise.
62989         * sysvipc/semget.c: Likewise.
62990         * sysvipc/semop.c: Likewise.
62991         * sysvipc/semtimedop.c: Likewise.
62992         * sysvipc/shmat.c: Likewise.
62993         * sysvipc/shmctl.c: Likewise.
62994         * sysvipc/shmdt.c: Likewise.
62995         * sysvipc/shmget.c: Likewise.
62996         * termios/tcdrain.c: Likewise.
62997         * termios/tcflow.c: Likewise.
62998         * termios/tcflush.c: Likewise.
62999         * termios/tcgetattr.c: Likewise.
63000         * termios/tcgetpgrp.c: Likewise.
63001         * termios/tcsendbrk.c: Likewise.
63002         * termios/tcsetattr.c: Likewise.
63003         * termios/tcsetpgrp.c: Likewise.
63004         * time/adjtime.c: Likewise.
63005         * time/clock.c: Likewise.
63006         * time/getitimer.c: Likewise.
63007         * time/gettimeofday.c: Likewise.
63008         * time/setitimer.c: Likewise.
63009         * time/settimeofday.c: Likewise.
63010         * time/stime.c: Likewise.
63011         * time/time.c: Likewise.
63012
63013 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
63014
63015         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
63016         /usr/old/bin.
63017
63018         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
63019         instead of spaces.
63020         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
63021
63022 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
63023
63024         [BZ #14796]
63025         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
63026         FE_TONEAREST before applying Dekker multiplication and Knuth
63027         addition.  Clear inexact exceptions and check for exact zero
63028         results afterwards.
63029         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
63030         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
63031         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63032         * math/libm-test.inc (fma_test): Add more tests.
63033         (fma_test_towardzero): Likewise.
63034         (fma_test_downward): Likewise.
63035         (fma_test_upward): Likewise.
63036         * sysdeps/generic/math_private.h (default_libc_fesetround): New
63037         function.
63038         (libc_fesetround): New macro.
63039         (libc_fesetroundf): Likewise.
63040         (libc_fesetroundl): Likewise.
63041         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
63042         function.
63043         (libc_fesetround_387): Likewise.
63044         (libc_fesetroundf): New macro.
63045         (libc_fesetround): Likewise.
63046         (libc_fesetroundl): Likewise.
63047         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
63048         function.
63049         (libc_fesetroundf): New macro.
63050         (libc_fesetround): Likewise.
63051         (libc_fesetroundl): Likewise.
63052         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
63053         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
63054         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
63055         libm_hidden_ver.
63056         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
63057         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
63058         libm_hidden_def.
63059         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
63060         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
63061         libm_hidden_ver.
63062         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
63063         libm_hidden_def.
63064
63065         [BZ #3439]
63066         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
63067         integer constant usable in #if and use that to give value to enum
63068         constant.
63069         (FE_DIVBYZERO): Likewise.
63070         (FE_UNDERFLOW): Likewise.
63071         (FE_OVERFLOW): Likewise.
63072         (FE_INVALID): Likewise.
63073         (FE_INVALID_SNAN): Likewise.
63074         (FE_INVALID_ISI): Likewise.
63075         (FE_INVALID_IDI): Likewise.
63076         (FE_INVALID_ZDZ): Likewise.
63077         (FE_INVALID_IMZ): Likewise.
63078         (FE_INVALID_COMPARE): Likewise.
63079         (FE_INVALID_SOFTWARE): Likewise.
63080         (FE_INVALID_SQRT): Likewise.
63081         (FE_INVALID_INTEGER_CONVERSION): Likewise.
63082         (FE_TONEAREST): Likewise.
63083         (FE_TOWARDZERO): Likewise.
63084         (FE_UPWARD): Likewise.
63085         (FE_DOWNWARD): Likewise.
63086         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
63087         (FE_DIVBYZERO): Likewise.
63088         (FE_OVERFLOW): Likewise.
63089         (FE_UNDERFLOW): Likewise.
63090         (FE_INEXACT): Likewise.
63091         (FE_TONEAREST): Likewise.
63092         (FE_DOWNWARD): Likewise.
63093         (FE_UPWARD): Likewise.
63094         (FE_TOWARDZERO): Likewise.
63095         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
63096         (FE_UNDERFLOW): Likewise.
63097         (FE_OVERFLOW): Likewise.
63098         (FE_DIVBYZERO): Likewise.
63099         (FE_INVALID): Likewise.
63100         (FE_TONEAREST): Likewise.
63101         (FE_TOWARDZERO): Likewise.
63102         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
63103         (FE_OVERFLOW): Likewise.
63104         (FE_UNDERFLOW): Likewise.
63105         (FE_DIVBYZERO): Likewise.
63106         (FE_INEXACT): Likewise.
63107         (FE_TONEAREST): Likewise.
63108         (FE_TOWARDZERO): Likewise.
63109         (FE_UPWARD): Likewise.
63110         (FE_DOWNWARD): Likewise.
63111         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
63112         (FE_DIVBYZERO): Likewise.
63113         (FE_OVERFLOW): Likewise.
63114         (FE_UNDERFLOW): Likewise.
63115         (FE_INEXACT): Likewise.
63116         (FE_TONEAREST): Likewise.
63117         (FE_DOWNWARD): Likewise.
63118         (FE_UPWARD): Likewise.
63119         (FE_TOWARDZERO): Likewise.
63120
63121 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
63122
63123         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
63124
63125 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
63126
63127         * scripts/cross-test-ssh.sh (command): Use newlines to separate
63128         commands.  Quote $PWD.
63129         (blacklist_exports): Don't use remove_newlines.  Replace "declare
63130         -x" by "export".
63131         (remove_newlines): Remove.
63132
63133 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
63134
63135         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
63136         * stdlib/stdlib.h (atof): Moved to ...
63137         * include/bits/stdlib-float.h: Here.  New file.
63138         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
63139         * stdlib/bits/stdlib-float.h: New file.
63140         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
63141         -mno-sse -mno-mmx.
63142         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
63143         <xmmintrin.h>.
63144
63145 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
63146
63147         * conform/conformtest.pl (@headers): Add fenv.h.
63148         * conform/data/fenv.h-data: New file.
63149         * include/fenv.h [_ISOMAC]: Disable all contents of file except
63150         include of <math/fenv.h>.
63151
63152         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
63153         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
63154         && !UNIX98].  Enables tests for XOPEN2K8.
63155         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
63156         POSIX2008]: Likewise.
63157
63158         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
63159         (struct rusage): Do not expect type or its members.
63160
63161         [BZ #3439]
63162         * math/math.h (FP_NAN): Define macro to integer constant usable in
63163         #if and use that to give value to enum constant.
63164         (FP_INFINITE): Likewise.
63165         (FP_ZERO): Likewise.
63166         (FP_SUBNORMAL): Likewise.
63167         (FP_NORMAL): Likewise.
63168
63169 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
63170
63171         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
63172         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
63173         arguments.
63174
63175 2012-11-02  Roland McGrath  <roland@hack.frob.com>
63176
63177         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
63178         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
63179         autoconf-time if not.
63180         * configure.in: Remove AC_PREREQ.
63181
63182 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63183
63184         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
63185         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
63186         of the internal implementation.
63187
63188 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
63189
63190         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
63191         except include of <misc/sys/syslog.h>.
63192
63193 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
63194
63195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
63196         function returns with a NULL context exit with zero.
63197
63198 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63199
63200         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
63201
63202 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
63203
63204         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
63205         (run_program_cmd): This.
63206         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
63207         (tst_langinfo): New variable.  Use it.
63208
63209 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
63210
63211         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
63212         floating point opcodes.
63213
63214 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
63215
63216         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
63217         variable.
63218
63219         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
63220
63221         * sysdeps/mach/hurd/powerpc: Remove directory.
63222         * sysdeps/mach/powerpc: Likewise.
63223
63224 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
63225
63226         * scripts/check-local-headers.sh: Ignore c++ headers.
63227
63228 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
63229
63230         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
63231         __libc_cleanup_region_start argument.
63232
63233 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
63234
63235         [BZ #14784]
63236         [BZ #14785]
63237         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
63238         x * y using scaling, not as x * y + z.
63239         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
63240         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63241         * math/libm-test.inc (fma_test): Add more tests.
63242         (fma_test_towardzero): Likewise.
63243         (fma_test_downward): Likewise.
63244         (fma_test_upward): Likewise.
63245
63246 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
63247
63248         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
63249
63250 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
63251
63252         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
63253         New variable.
63254
63255 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
63256
63257         * rt/tst-shm.c (worker): Correct checking for mmap failure.
63258
63259 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
63260
63261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
63262         Fix sort order.
63263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
63264         Likewise.
63265
63266 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63267
63268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
63269         Fix the order of the list for glibc 2.17.
63270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
63271         Likewise.
63272
63273 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
63274
63275         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63276
63277 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
63278
63279         [BZ #14610]
63280         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
63281         for low part of x being zero before using __atanl (y).
63282         * math/libm-test.inc (atan2_test): Add another test.
63283
63284         * manual/install.texi (Configuring and compiling): Document
63285         general use of test-wrapper and test-wrapper-env.
63286         * INSTALL: Regenerated.
63287
63288         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
63289         (__fma): Do not extract and scale down low bits on after-rounding
63290         systems when result rounded to normal precision would have normal
63291         exponent.
63292         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
63293         (__fmal): Do not extract and scale down low bits on after-rounding
63294         systems when result rounded to normal precision would have normal
63295         exponent.
63296         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
63297         (__fmal): Do not extract and scale down low bits on after-rounding
63298         systems when result rounded to normal precision would have normal
63299         exponent.
63300         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
63301         macro.
63302         (fma_test): Add more tests.
63303         (fma_test_towardzero): Likewise.
63304         (fma_test_downward): Likewise.
63305         (fma_test_upward): Likewise.
63306
63307 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
63308
63309         * sysdeps/i386/tininess.h: Renamed to ...
63310         * sysdeps/x86/tininess.h: This.
63311         * sysdeps/x86_64/tininess.h: Removed.
63312
63313 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
63314
63315         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
63316         input.  Use $(build-program-cmd).
63317         ($(objpfx)tst-array1-static.out): Likewise.
63318         ($(objpfx)tst-array2.out): Likewise.
63319         ($(objpfx)tst-array3.out): Likewise.
63320         ($(objpfx)tst-array4.out): Likewise.
63321         ($(objpfx)tst-array5.out): Likewise.
63322         ($(objpfx)tst-array5-static.out): Likewise.
63323
63324 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
63325
63326         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
63327         if defined.
63328
63329         * nss/nsswitch.h (nss_interface_function): Provide new
63330         macro for use with NSS functions.
63331         * grp/initgroups.c: Use new macro.
63332         * nss/getXXbyYY.c: Likewise.
63333         * nss/getXXbyYY_r.c: Likewise.
63334         * nss/getXXent.c: Likewise.
63335         * nss/getXXent_r.c: Likewise.
63336         * sysdeps/posix/getaddrinfo.c: Likewise.
63337
63338 2012-10-30  Andreas Jaeger  <aj@suse.de>
63339
63340         * po/ru.po: Update Russion translation from translation project.
63341
63342 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
63343
63344         [BZ #14152]
63345         [BZ #14783]
63346         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
63347         result and shift together with sticky bit instead of replicating
63348         round-to-nearest rounding.
63349         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
63350         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63351         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
63352         missing underflow exceptions.
63353         (fma_test_towardzero): Add more tests.
63354         (fma_test_downward): Likewise.
63355         (fma_test_upward): Likewise.
63356
63357         [BZ #14047]
63358         * sysdeps/generic/tininess.h: New file.
63359         * sysdeps/i386/tininess.h: Likewise.
63360         * sysdeps/sh/tininess.h: Likewise.
63361         * sysdeps/x86_64/tininess.h: Likewise.
63362         * stdlib/tst-strtod-underflow.c: Likewise.
63363         * stdlib/tst-tininess.c: Likewise.
63364         * stdlib/strtod_l.c: Include <tininess.h>.
63365         (round_and_return): Do not set errno for exact underflow cases.
63366         Force an underflow exception when setting errno for underflow.
63367         Determine underflow based on rounding to normal precision if
63368         TININESS_AFTER_ROUNDING.
63369         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
63370         ERANGE for exact underflow cases.
63371         * stdlib/Makefile (tests): Add tst-tininess and
63372         tst-strtod-underflow.
63373         ($(objpfx)tst-tininess): Use $(link-libm).
63374         ($(objpfx)tst-strtod-underflow): Likewise.
63375
63376 2012-10-30  Andreas Jaeger  <aj@suse.de>
63377
63378         [BZ#14767]
63379         * elf/Makefile (tests): Remove conditional for have-initfini-array
63380         since this is now always required and the variable does not exist
63381         anymore.
63382         (tests-static): Likewise.
63383         (modules-names): Likewise.
63384
63385         * po/eo.po: Add Esperanto translation from translation project.
63386
63387         * elf/tst-array1.c (fini_array): Make writeable so that it can be
63388         merged with constructor/destructor.
63389         (init_array): Likewise.
63390         * elf/tst-array2dep.c (fini_array): Likewise.
63391         (init_array): Likewise.
63392
63393 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
63394
63395         * manual/message.texi: Delete @cartouche tags.
63396
63397 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
63398
63399         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
63400         EOPNOTSUPP.
63401         * sysdeps/mach/hurd/fsync.c: Likewise.
63402
63403         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
63404         [_POSIX_REALTIME_SIGNALS]: Change condition to
63405         [_POSIX_REALTIME_SIGNALS > 0].
63406
63407 2012-10-27  Andreas Jaeger  <aj@suse.de>
63408
63409         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
63410         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
63411         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
63412         [__WORDSIZE != 64]: Likewise.
63413
63414 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
63415
63416         *  iconvdata/tst-table.sh: Remove ${SHELL}.
63417         *  iconvdata/tst-tables.sh: Likewise.
63418
63419 2012-10-25  David S. Miller  <davem@davemloft.net>
63420
63421         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
63422         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
63423         of strtoull.
63424
63425         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
63426         ifunc-impl-list.c
63427         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
63428         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
63429         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
63430         file.
63431
63432 2012-10-25  Roland McGrath  <roland@hack.frob.com>
63433
63434         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
63435         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
63436         __getdirentries.
63437
63438 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
63439             Jim Blandy  <jimb@codesourcery.com>
63440
63441         * scripts/cross-test-ssh.sh: New file.
63442         * manual/install.texi (Configuring and compiling): Document use of
63443         cross-test-ssh.sh.
63444         * INSTALL: Regenerated.
63445
63446 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
63447
63448         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
63449         EOPNOTSUPP.
63450
63451 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
63452
63453         * Makeconfig (run-program-prefix): Fix comment.
63454
63455 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
63456             Jim Blandy  <jimb@codesourcery.com>
63457
63458         * Makeconfig (test-wrapper): New variable,
63459         (test-wrapper-env): Likewise.
63460         [$(cross-compiling) = yes && $(test-wrapper) != ""]
63461         (run-built-tests): Define to yes.
63462         (run-program-prefix): Use $(test-wrapper).
63463         (built-program-cmd): Likewise.
63464         * Rules (make-test-out): Use $(test-wrapper-env) and
63465         $(host-built-program-cmd).
63466         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
63467         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
63468         tst-pathopt.sh.
63469         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
63470         $(test-wrapper-env) to tst-rtld-load-self.sh.
63471         ($(objpfx)order2.out): Use $(test-wrapper).
63472         ($(objpfx)tst-initorder.out): Likewise.
63473         ($(objpfx)tst-initorder2.out): Likewise.
63474         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
63475         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
63476         (test_wrapper_env): New variable.  Use it to run ld.so.
63477         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
63478         Use it to run ld.so.
63479         (test_wrapper_env): Likewise.
63480         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
63481         $(test-wrapper) to run-iconv-test.sh.
63482         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
63483         (ICONV): Use $test_wrapper.
63484         * posix/Makefile ($(objpfx)globtest.out): Pass
63485         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
63486         globtest.sh, not $(run-program-prefix).
63487         * posix/globtest.sh (run_via_rtld_prefix): New variable.
63488         (test_wrapper): Likewise.
63489         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
63490         set together with run_via_rtld_prefix.
63491         (run_program_prefix): Define in terms of test_wrapper and
63492         run_via_rtld_prefix.
63493
63494 2012-10-24  Roland McGrath  <roland@hack.frob.com>
63495
63496         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
63497         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
63498         Targets removed.
63499
63500         [BZ #14743]
63501         * include/time.h: Remove librt_hidden_proto (clock_gettime).
63502         Declare __clock_getres, __clock_gettime, __clock_settime,
63503         __clock_nanosleep, and __clock_getcpuclockid.
63504         * rt/clock_gettime.c: Define __clock_gettime as an alias.
63505         Remove librt_hidden_def (clock_gettime).
63506         * sysdeps/unix/clock_gettime.c: Likewise.
63507         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
63508         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
63509         * rt/clock_getres.c: Define __clock_getres as an alias.
63510         * sysdeps/posix/clock_getres.c: Likewise.
63511         * rt/clock_settime.c: Define __clock_settime as an alias.
63512         * sysdeps/unix/clock_settime.c: Likewise.
63513         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
63514         * sysdeps/unix/clock_nanosleep.c: Likewise.
63515         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
63516         * rt/clock-compat.c: New file.
63517         * rt/Makefile (librt-routines): Add clock-compat and move
63518         $(clock-routines) to ...
63519         (routines): ... here, new variable.
63520         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
63521         Don't add get_clockfreq here.
63522         * rt/Versions (libc: GLIBC_2.17): New version set.
63523         Add clock_* symbols here.
63524         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
63525         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
63526         (GLIBC_2.17): Add clock_* symbols.
63527         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
63528         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
63529         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
63530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
63531         Likewise.
63532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
63533         Likewise.
63534         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
63535         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
63536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
63537         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
63538         * NEWS: Mention the move.
63539
63540         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
63541         Use __open, __read, __close rather than their public counterparts.
63542         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
63543         (__get_clockfreq_via_cpuinfo): Likewise.
63544         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
63545         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
63546
63547         * config.h.in (HAVE_IFUNC): New #undef.
63548         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
63549         was successful.
63550         * configure: Regenerated.
63551
63552 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
63553
63554         * configure.in: Move READELF check to start of file.
63555         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
63556         libc_cv_asm_gnu_indirect_function in the process.
63557         * configure: Regenerated.
63558
63559 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
63560
63561         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
63562         send the output to /dev/null.
63563         (libc_cv_cc_with_libunwind): Likewise.
63564         (libc_cv_as_noexecstack): Likewise.
63565         * configure: Regenerate.
63566
63567 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
63568
63569         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
63570
63571         * posix/globtest.sh (TMPDIR): Do not set.
63572         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
63573         (testout): Likewise.
63574
63575 2012-10-24  Andreas Jaeger  <aj@suse.de>
63576
63577         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
63578         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
63579         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
63580         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
63581         posix_fadvise64, posix_fallocate64.
63582
63583         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
63584         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
63585         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
63586         Likewise.
63587         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
63588         Likewise.
63589         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
63590
63591         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
63592         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
63593         <bits/fcntl-linux.h>.
63594         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
63595
63596         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
63597         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
63598         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
63599         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
63600         [__WORDSIZE != 64]: Likewise.
63601
63602 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
63603
63604         * Makeconfig (run-built-tests): New variable.
63605         * Rules [$(cross-compiling) = yes]: Change condition to
63606         [$(run-built-tests) = no].
63607         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
63608         to [$(run-built-tests) = yes].
63609         * elf/Makefile [$(cross-compiling) = no]: Likewise.
63610         * grp/Makefile [$(cross-compiling) = no]: Likewise.
63611         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
63612         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
63613         * intl/Makefile [$(cross-compiling) = no]: Likewise.
63614         * io/Makefile [$(cross-compiling) = no]: Likewise.
63615         * libio/Makefile [$(cross-compiling) = no]: Likewise.
63616         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
63617         * misc/Makefile [$(cross-compiling) = no]: Likewise.
63618         * posix/Makefile [$(cross-compiling) = no]: Likewise.
63619         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
63620         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
63621         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
63622         * string/Makefile [$(cross-compiling) = no]: Likewise.
63623
63624         * posix/Makefile ($(objpfx)globtest.out): Pass
63625         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
63626         $(rtld-installed-name).
63627         * posix/globtest.sh (elf_objpfx): Remove variable.
63628         (rtld_installed_name): Likewise.
63629         (library_path): Likewise.
63630         (run_program_prefix): New variable.  Use for running globtest
63631         binary.
63632
63633 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
63634             Joseph Myers  <joseph@codesourcery.com>
63635
63636         * Makeconfig (host-built-program-cmd): New variable.
63637         * elf/Makefile (tst-stackguard1-ARGS): Use
63638         $(host-built-program-cmd).
63639         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
63640         (tst-spawn-ARGS): Likewise.
63641         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
63642
63643 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
63644             Jim Blandy  <jimb@codesourcery.com>
63645
63646         * Makeconfig (run-via-rtld-prefix): New variable.
63647         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
63648         (built-program-cmd): Likewise.
63649
63650 2012-10-22  Andreas Jaeger  <aj@suse.de>
63651
63652         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
63653         __O_RSYNC if it exists, otherwise to O_SYNC.
63654
63655 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
63656             Joseph Myers  <joseph@codesourcery.com>
63657
63658         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
63659         /dev/null.
63660         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
63661         from /dev/null
63662         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
63663         /dev/null.
63664
63665 2012-10-22  Andreas Jaeger  <aj@suse.de>
63666
63667         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
63668         Define always.
63669         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
63670
63671         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
63672         bits/fcntl-linux.h.
63673
63674         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
63675         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
63676
63677         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
63678         to __O_LARGEFILE.
63679         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
63680         to __O_LARGEFILE.
63681
63682 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
63683             Joseph Myers  <joseph@codesourcery.com>
63684
63685         * config.make.in (NM): New variable.
63686
63687 2012-10-21  Andreas Jaeger  <aj@suse.de>
63688
63689         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
63690         definitions and declarations that are provided by
63691         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
63692
63693 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
63694
63695         [BZ #14683]
63696         * elf/Makefile (tests-static): Add tst-leaks1-static.
63697         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
63698         ($(objpfx)tst-leaks1-static): New rule.
63699         ($(objpfx)tst-leaks1-static-mem): Likewise.
63700         (tst-leaks1-static-ENV): New macro.
63701         * elf/dl-open.c (dl_open_worker): Check the main application
63702         only if SHARED is defined.
63703         * elf/tst-leaks1-static.c: New file.
63704
63705 2012-10-20  Andreas Jaeger  <aj@suse.de>
63706
63707         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
63708         generic values for Linux.
63709         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
63710         and declarations that are provided by <bits/fcntl-linux.h> and
63711         include <bits/fcntl-linux.h>.
63712         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
63713         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
63714
63715 2012-10-20  Roland McGrath  <roland@hack.frob.com>
63716
63717         * io/fcntl.h: Move include of <bits/types.h> to the top and
63718         include it unconditionally.
63719
63720 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
63721
63722         * wcsmbs/Makefile (tests-ifunc): New variable.
63723         (tests): Add $(tests-ifunc).
63724         * wcsmbs/test-wcschr-ifunc.c: New file.
63725         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
63726         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
63727         * wcsmbs/test-wcslen-ifunc.c: Likewise.
63728         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
63729         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
63730
63731         * string/Makefile (tests-ifunc): New variable.
63732         (tests): Add $(tests-ifunc).
63733         * string/test-memccpy.c (TEST_NAME): New macro.
63734         * string/test-memchr.c (TEST_NAME): Likewise.
63735         * string/test-memcmp.c (TEST_NAME): Likewise.
63736         * string/test-memcpy.c (TEST_NAME): Likewise.
63737         * string/test-memmem.c (TEST_NAME): Likewise.
63738         * string/test-memmove.c (TEST_NAME): Likewise.
63739         * string/test-memset.c (TEST_NAME): Likewise.
63740         * string/test-rawmemchr.c (TEST_NAME): Likewise.
63741         * string/test-stpcpy.c (TEST_NAME): Likewise.
63742         * string/test-stpncpy.c (TEST_NAME): Likewise.
63743         * string/test-strcasecmp.c (TEST_NAME): Likewise.
63744         * string/test-strcasestr.c (TEST_NAME): Likewise.
63745         * string/test-strcat.c (TEST_NAME): Likewise.
63746         * string/test-strchr.c (TEST_NAME): Likewise.
63747         * string/test-strcmp.c(TEST_NAME): Likewise.
63748         * string/test-strcpy.c (TEST_NAME): Likewise.
63749         * string/test-strcspn.c (TEST_NAME): Likewise.
63750         * string/test-strlen.c (TEST_NAME): Likewise.
63751         * string/test-strncasecmp.c (TEST_NAME): Likewise.
63752         * string/test-strncmp.c (TEST_NAME): Likewise.
63753         * string/test-strncpy.c (TEST_NAME): Likewise.
63754         * string/test-strnlen.c (TEST_NAME): Likewise.
63755         * string/test-strpbrk.c (TEST_NAME): Likewise.
63756         * string/test-strrchr.c (TEST_NAME): Likewise.
63757         * string/test-strspn.c (TEST_NAME): Likewise.
63758         * string/test-strstr.c (TEST_NAME): Likewise.
63759         * string/test-bcopy-ifunc.c: New file.
63760         * string/test-bzero-ifunc.c: Likewise.
63761         * string/test-memccpy-ifunc.c: Likewise.
63762         * string/test-memchr-ifunc.c: Likewise.
63763         * string/test-memcmp-ifunc.c: Likewise.
63764         * string/test-memcpy-ifunc.c: Likewise.
63765         * string/test-memmem-ifunc.c: Likewise.
63766         * string/test-memmove-ifunc.c: Likewise.
63767         * string/test-mempcpy-ifunc.c: Likewise.
63768         * string/test-memset-ifunc.c: Likewise.
63769         * string/test-rawmemchr-ifunc.c: Likewise.
63770         * string/test-stpcpy-ifunc.c: Likewise.
63771         * string/test-stpncpy-ifunc.c: Likewise.
63772         * string/test-strcasecmp-ifunc.c: Likewise.
63773         * string/test-strcasestr-ifunc.c: Likewise.
63774         * string/test-strcat-ifunc.c: Likewise.
63775         * string/test-strchr-ifunc.c: Likewise.
63776         * string/test-strchrnul-ifunc.c: Likewise.
63777         * string/test-strcmp-ifunc.c: Likewise.
63778         * string/test-strcpy-ifunc.c: Likewise.
63779         * string/test-strcspn-ifunc.c: Likewise.
63780         * string/test-strlen-ifunc.c: Likewise.
63781         * string/test-strncasecmp-ifunc.c: Likewise.
63782         * string/test-strncat-ifunc.c: Likewise.
63783         * string/test-strncmp-ifunc.c: Likewise.
63784         * string/test-strncpy-ifunc.c: Likewise.
63785         * string/test-strnlen-ifunc.c: Likewise.
63786         * string/test-strpbrk-ifunc.c: Likewise.
63787         * string/test-strrchr-ifunc.c: Likewise.
63788         * string/test-strspn-ifunc.c: Likewise.
63789         * string/test-strstr-ifunc.c: Likewise.
63790
63791         * debug/Makefile (tests-ifunc): New variable.
63792         (tests): Add $(tests-ifunc).
63793         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
63794         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
63795         * debug/test-stpcpy_chk-ifunc.c: New file.
63796         * debug/test-strcpy_chk-ifunc.c: Likewise.
63797
63798 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
63799
63800         [BZ #13601]
63801         * elf/dl-load.c (open_verify): Retry read if the entire ELF
63802         header is not read in.
63803
63804 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
63805
63806         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
63807         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
63808         directly.  Pass built executable to script as
63809         $(built-program-cmd).
63810         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
63811         $testprogram without using LD_LIBRARY_PATH and $ldso.
63812
63813         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
63814         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
63815         $(rtld-installed-name).
63816         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
63817         (rtld_installed_name): Likewise.
63818         (library_path): Likewise.
63819         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
63820         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
63821         $(run-program-prefix) to tst-tables.sh.
63822         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
63823         it to run tst-table-from and tst-table-to.
63824         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
63825         Pass it to tst-table.sh.
63826         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
63827         $(run-program-prefix) to tst-gettext.sh.
63828         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
63829         tst-translit.sh.
63830         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
63831         tst-gettext2.sh.
63832         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
63833         to run tst-gettext.
63834         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
63835         to run tst-gettext2.
63836         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
63837         to run tst-translit.
63838         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
63839         $(run-program-prefix) to tst-mtrace.sh.
63840         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
63841         to run tst-mtrace.
63842         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
63843         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
63844         $(rtld-installed-name).
63845         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
63846         (rtld_installed_name): Likewise.
63847         (run_program_prefix): New variable.  Use it to run wordexp-test.
63848
63849         * Makeconfig (ARCH): Remove all definitions.
63850         (machine): Likewise.
63851         [ARCH]: Remove conditional code.
63852         [!objdir]: Give error.
63853         [!objdir] (objpfx): Remove.
63854         [!objdir] (common-objpfx): Likewise.
63855         [!objdir] (common-objdir): Likewise.
63856         * configure.in (config_makefile): Remove.  Hardcode Makefile in
63857         AC_CONFIG_FILES call.
63858         * configure: Regenerated.
63859
63860         [BZ #13888]
63861         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
63862         or TMPDIR.
63863         (testout): Likewise.
63864
63865         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
63866         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
63867         $(rtld-installed-name).
63868         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
63869         (rtld_installed_name): Likwise.
63870         (runit): Remove function.
63871         (run_getconf): New variable,  Use it for running getconf binary.
63872
63873 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
63874
63875         [BZ #14716]
63876         * string/test-memmem.c (check_result): New function.
63877         (do_one_test): Use it.
63878         (check1): New function.
63879         (test_main): Use it.
63880
63881 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
63882
63883         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
63884
63885 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
63886
63887         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
63888         (_G_LSEEK64): Likewise.
63889         (_G_MMAP64): Likewise.
63890         (_G_FSTAT64): Likewise.
63891         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
63892         (_G_LSEEK64): Likewise.
63893         (_G_MMAP64): Likewise.
63894         (_G_FSTAT64): Likewise.
63895         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
63896         unconditional.  Call __mmap64 directly.
63897         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
63898         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
63899         __lseek64 directly.
63900         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
63901         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
63902         __mmap64 directly.
63903         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
63904         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63905         __lseek64 directly.
63906         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
63907         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63908         __lseek64 directly.
63909         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
63910         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
63911         __lseek64 directly.
63912         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
63913         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
63914         __fxstat64 directly.
63915         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
63916         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
63917         unconditional.
63918         (freopen64) [!_G_OPEN64]: Remove conditional code.
63919         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
63920         unconditional.
63921         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
63922         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
63923         unconditional.
63924         (ftello64) [!_G_LSEEK64]: Remove conditional code.
63925         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
63926         unconditional.
63927         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63928         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
63929         unconditional.
63930         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
63931         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
63932         unconditional.
63933         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63934         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
63935         unconditional.
63936         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63937         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
63938         unconditional.
63939         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63940
63941 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
63942
63943         [BZ #12140]
63944         * manual/memory.texi (Malloc Tunable Parameters): Add note
63945         about free list pointers overwriting some perturb bytes.
63946         Wording suggested by Roland McGrath.
63947
63948 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
63949
63950         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
63951         (lgamma_test): Likewise.
63952         (tgamma_test): Likewise.
63953
63954 2012-10-16  Florian Weimer  <fweimer@redhat.com>
63955
63956         [BZ #14700]
63957         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
63958         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
63959
63960 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
63961
63962         * NEWS: Mention BZ #14716.
63963         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
63964         when removing AVAILABLE1_USES_J macro.
63965
63966 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
63967
63968         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
63969         (__bswap_64): __uint64_t for unsigned 64-bit int.
63970
63971 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
63972
63973         * include/string.h (memmem): Declare libc hidden alias.
63974         * string/memmem.c (memmem): Define libc hidden alias.
63975         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
63976         __read, __close instead of open, read, close.
63977
63978 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
63979
63980         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
63981         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
63982         global and hidden.
63983         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
63984         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
63985         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
63986         Likewise.
63987         (__rawmemchr_sse2): Likewise.
63988         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
63989         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
63990         (__strchr_sse2): Likewise.
63991         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
63992         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
63993         (__strcasecmp_sse2): Likewise.
63994         (__strncasecmp_sse2): Likewise.
63995         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
63996         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
63997         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
63998         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
63999         (__strrchr_sse2): Likewise.
64000         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
64001         ifunc-impl-list.c.
64002         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
64003         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
64004         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
64005         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
64006         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
64007         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
64008         * sysdeps/x86_64/multiarch/memset.S: Likewise.
64009         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
64010         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
64011         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
64012         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
64013         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
64014         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
64015         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
64016         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
64017         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
64018         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
64019         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
64020         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
64021         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
64022         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
64023         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
64024         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
64025         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
64026         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
64027         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
64028         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
64029         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
64030         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
64031         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
64032
64033         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
64034         global and hidden.
64035         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
64036         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
64037         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
64038         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
64039         Likewise.
64040         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
64041         Likewise.
64042         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
64043         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
64044         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
64045         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
64046         ifunc-impl-list.c.
64047         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
64048         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
64049         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
64050         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
64051         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
64052         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
64053         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
64054         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
64055         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
64056         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
64057         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
64058         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
64059         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
64060         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
64061         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
64062         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
64063         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
64064         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
64065         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
64066         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
64067         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
64068         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
64069         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
64070         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
64071         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
64072         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
64073         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
64074         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
64075         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
64076         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
64077         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
64078         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
64079         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
64080         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
64081         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
64082         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
64083         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
64084         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
64085         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
64086         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
64087         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
64088
64089         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
64090         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
64091         * include/ifunc-impl-list.h: New file.
64092         * misc/ifunc-impl-list.c: Likewise.
64093         * misc/Makefile (routines): Add ifunc-impl-list.
64094         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
64095         * string/test-string.h: Include <ifunc-impl-list.h>.
64096         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
64097         TEST_NAME]: New variables.
64098         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
64099         are defined.
64100         (test_init): Call __libc_ifunc_impl_list to initialize
64101         func_list if TEST_IFUNC and TEST_NAME are defined.
64102
64103         * string/Makefile (strop-tests): Add bcopy and bzero.
64104         * string/test-bcopy.c: New file.
64105         * string/test-bzero.c: Likewise.
64106         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
64107         defined.
64108         * string/test-memset.c: Support bzero test if TEST_BZERO is
64109         defined.
64110         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
64111         __libc_memmove.
64112         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
64113         __libc_memset.
64114         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
64115         of memset.
64116
64117 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
64118
64119         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
64120         * configure: Regenerated.
64121
64122         * Makeconfig (+link-static-before-libc): Don't include
64123         $(link-static-libc).
64124
64125         * libio/libio.h (_IO_pos_t): Remove.
64126
64127 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
64128
64129         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
64130         McGrath.
64131
64132 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
64133
64134         * crypt/crypt-entry.c: Include fips-private.h.
64135         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
64136         * crypt/md5c-test.c (main): Tolerate disabled MD5.
64137         * sysdeps/unix/sysv/linux/fips-private.h: New file.
64138         * sysdeps/generic/fips-private.h: New file, dummy fallback.
64139
64140 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
64141
64142         * crypt/crypt-private.h: Include stdbool.h.
64143         (_ufc_setup_salt_r): Return bool.
64144         * crypt/crypt-entry.c: Include errno.h.
64145         (__crypt_r): Return NULL with EINVAL for bad salt.
64146         * crypt/crypt_util.c (bad_for_salt): New.
64147         (_ufc_setup_salt_r): Check that salt is long enough and within
64148         the specified alphabet.
64149         * crypt/badsalttest.c: New file.
64150         * crypt/Makefile (tests): Add it.
64151         ($(objpfx)badsalttest): New.
64152
64153 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
64154
64155         * NEWS: Add entry for BZ #14602.
64156
64157 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
64158
64159         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
64160         type-generic.
64161         * math/libm-test.inc: Update comment listing what functions and
64162         macros are tested.
64163         (isgreater_test): New function.
64164         (isgreaterequal_test): Likewise.
64165         (isless_test): Likewise.
64166         (islessequal_test): Likewise.
64167         (islessgreater_test): Likewise.
64168         (isunordered_test): Likewise.
64169         (main): Call the new functions.
64170
64171 2012-10-09  Roland McGrath  <roland@hack.frob.com>
64172
64173         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
64174         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
64175         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
64176         * sysdeps/i386/configure: Regenerated.
64177         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
64178         * sysdeps/mach/configure: Regenerated.
64179         * sysdeps/mach/hurd/configure: Regenerated.
64180         * sysdeps/powerpc/configure: Regenerated.
64181         * sysdeps/powerpc/powerpc32/configure: Regenerated.
64182         * sysdeps/powerpc/powerpc64/configure: Regenerated.
64183         * sysdeps/s390/s390-32/configure: Regenerated.
64184         * sysdeps/s390/s390-64/configure: Regenerated.
64185         * sysdeps/sh/configure: Regenerated.
64186         * sysdeps/sparc/configure: Regenerated.
64187         * sysdeps/unix/sysv/linux/configure: Regenerated.
64188         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
64189         * sysdeps/x86_64/configure: Regenerated.
64190
64191         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
64192         defined.  Don't check if MAP is NULL.
64193
64194 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
64195
64196         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
64197         (_G_stat64): Likewise.
64198         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
64199         (_G_stat64): Likewise.
64200         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
64201         instead of struct _G_stat64.
64202         * libio/fileops.c (mmap_remap_check): Likewise.
64203         (decide_maybe_mmap): Likewise.
64204         (_IO_new_file_seekoff): Likewise.
64205         (_IO_file_stat): Likewise.
64206         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
64207         _G_off64_t.
64208         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
64209         instead of struct _G_stat64.
64210         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
64211
64212 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
64213
64214         [BZ #14602]
64215         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
64216         Replace with ...
64217         (CHECK_EOL): New macro.
64218         (two_way_short_needle): Check beginning of haystack for EOL.  Use
64219         CHECK_EOL.
64220         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
64221         Replace with CHECK_EOL.
64222         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
64223         Replace with CHECK_EOL.
64224
64225 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
64226
64227         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
64228         type-generic.
64229         * math/libm-test.inc: Update comment listing what functions and
64230         macros are tested.
64231         (finite_test): New function.
64232         (isinf_test): Likewise.
64233         (isnan_test): Likewise.
64234         (fpclassify_test): Test subnormal input.
64235         (isfinite_test): Likewise.
64236         (isnormal_test): Likewise.
64237         (main): Call the new functions.
64238
64239 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
64240
64241         [BZ #14660]
64242         * Makerules (%.dynsym): Force C locale when running
64243         $(OBJDUMP) --dynamic-syms.
64244
64245 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
64246
64247         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
64248         <stdint.h>.
64249
64250 2012-10-06  David S. Miller  <davem@davemloft.net>
64251
64252         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
64253         upper 32-bits of the length value in %o2 since we use branch-on-register
64254         tests which consider the entire 64-bit register.
64255
64256 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
64257
64258         * string/test-strstr.c (check2): Add a test for page boundary.
64259
64260 2012-10-05  David S. Miller  <davem@davemloft.net>
64261
64262         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
64263         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
64264         file.
64265         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
64266         sysdep_routines.
64267         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
64268         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
64269         and bzero when HWCAP_SPARC_CRYPTO is present.
64270
64271 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
64272
64273         [BZ #14602]
64274         * string/test-strstr.c (check2): New function.
64275         (test_main): Call check2.
64276
64277         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
64278         and bug-strchr1.
64279         * string/bug-strcasestr1.c (do_test): Moved to ...
64280         * string/test-strcasestr.c (check1): Here.  New function.
64281         (do_one_test): Break out result checking code into ...
64282         (check_result): This.  New function.
64283         (do_one_test): Call check_result.
64284         (test_main): Call check1.
64285         * string/bug-strchr1.c (do_test): Moved to ...
64286         * string/test-strchr.c (check1): Here.  New function.
64287         (do_one_test): Break out result checking code into ...
64288         (check_result): This.  New function.
64289         (do_one_test): Call check_result.
64290         (test_main): Call check1.
64291         * string/bug-strstr1.c (main): Moved to ...
64292         * string/test-strstr.c (check1): Here.  New function.
64293         (do_one_test): Break out result checking code into ...
64294         (check_result): This.  New function.
64295         (do_one_test): Call check_result.
64296         (test_main): Call check1.
64297         * string/bug-strcasestr1.c: Removed.
64298         * string/bug-strchr1.c: Likewise.
64299         * string/bug-strstr1.c: Likewise.
64300
64301         * elf/Makefile (dl-routines): Add hwcaps.
64302         * elf/dl-support.c (_dl_important_hwcaps): Removed.
64303         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
64304         (_dl_important_hwcaps): Moved to ...
64305         * elf/dl-hwcaps.c: Here.  New file.
64306         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
64307
64308         [BZ #14557]
64309         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
64310         if IS_IN_rtld isn't defined.
64311
64312         * elf/dl-support.c (_dl_sysinfo_map): New.
64313         Include "get-dynamic-info.h" and "setup-vdso.h".
64314         (_dl_non_dynamic_init): Call setup_vdso.
64315         * elf/dynamic-link.h: Don't include <assert.h>.
64316         (elf_get_dynamic_info): Moved to ...
64317         * elf/get-dynamic-info.h: Here.  New file.
64318         * elf/dynamic-link.h: Include "get-dynamic-info.h".
64319         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
64320         * elf/setup-vdso.h: Here.  New file.
64321         * elf/rtld.c: Include "setup-vdso.h".
64322         (dl_main): Call setup_vdso.
64323
64324 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
64325
64326         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
64327         creal in comment listing functions tested.  List finite, isinf,
64328         isnan, isless, islessequal, isgreater, isgreaterequal,
64329         islessgreater, isunordered, lgamma_r and pow10 as functions and
64330         macros not tested.  Mention which functions not tested are aliases
64331         for other functions.  Fix typo.  Note that signs of NaNs are not
64332         tested.
64333
64334         * scripts/config.guess: Update from config.git.
64335         * scripts/config.sub: Likewise.
64336
64337 2012-10-04  Roland McGrath  <roland@hack.frob.com>
64338
64339         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
64340         * misc/madvise.c (madvise): Renamed to __madvise.
64341         Make madvise a weak alias.
64342         * include/sys/mman.h: Declare __madvise.
64343         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
64344         * sysdeps/unix/syscalls.list
64345         (madvise): Make __madvise the strong name, and madvise a weak alias.
64346         * sysdeps/unix/sysv/linux/syscalls.list
64347         (madvise, mmap): Remove redundant entries.
64348         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
64349         * malloc/malloc.c (mtrim): Likewise.
64350         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
64351
64352 2012-10-03  Roland McGrath  <roland@hack.frob.com>
64353
64354         * sysdeps/mach/hurd/dl-cache.c: File removed.
64355         * config.h.in (USE_LDCONFIG): New #undef.
64356         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
64357         * configure: Regenerated.
64358         * elf/Makefile (dl-routines): Add dl-cache only under
64359         [$(use-ldconfig) = yes].
64360         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
64361         cache on [USE_LDCONFIG].
64362         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
64363         [USE_LDCONFIG].
64364         * elf/rtld.c (dl_main): Likewise.
64365
64366 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
64367
64368         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
64369         _SC_LEVEL4_CACHE_LINESIZE.
64370
64371 2012-10-03  Roland McGrath  <roland@hack.frob.com>
64372
64373         * sysdeps/unix/bsd/confstr.h: File removed.
64374
64375 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
64376
64377         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
64378         sys/sdt-config.h.
64379
64380 2012-10-02  Roland McGrath  <roland@hack.frob.com>
64381
64382         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
64383         Make 'mapoff' field ElfW(Off) rather than off_t.
64384
64385 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64386
64387         * nscd/Makefile: Remove nscd-cflags and all its users.
64388         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
64389         (CFLAGS-nonlib): Add compiler flags for nscd modules.
64390
64391         [BZ #10631]
64392         * malloc.c (malloc_printerr): Clarify error message.
64393
64394 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
64395
64396         [BZ #14648]
64397         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
64398         Set bit_FMA_Usable if FMA is supported.
64399         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
64400         macro.
64401         (bit_FMA4_Usable): Updated.
64402         (index_FMA_Usable): New macro.
64403         (CPUID_FMA): Likewise.
64404         (HAS_FMA): Defined with bit_FMA_Usable.
64405
64406 2012-10-01  Roland McGrath  <roland@hack.frob.com>
64407
64408         * bits/types.h (__swblk_t): Type removed.
64409         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
64410         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
64411         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
64412         (__SWBLK_T_TYPE): Likewise.
64413         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
64414         (__SWBLK_T_TYPE): Likewise.
64415         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
64416         (__SWBLK_T_TYPE): Likewise.
64417         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
64418         (__SWBLK_T_TYPE): Likewise.
64419
64420 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
64421             Honza Horak <hhorak@redhat.com>
64422
64423         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
64424         (xdr_mapname): Use YPMAXMAP as maxsize.
64425         (xdr_peername): Use YPMAXPEER as maxsize.
64426         (xdr_keydat): Use YPAXRECORD as maxsize.
64427         (xdr_valdat): Use YPMAXRECORD as maxsize.
64428
64429 2012-10-01  Roland McGrath  <roland@hack.frob.com>
64430
64431         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
64432
64433         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
64434         * csu/init-first.c: ... here.
64435         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
64436         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
64437         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
64438         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
64439         * sysdeps/i386/init-first.c: File removed.
64440         * sysdeps/sh/init-first.c: File removed.
64441
64442 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
64443
64444         [BZ #14645]
64445         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
64446         if x * y might underflow to zero and z is zero.
64447         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
64448         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
64449         * math/libm-test.inc (min_subnorm_value): New variable.
64450         (fma_test): Add more tests.
64451         (fma_test_towardzero): Likewise.
64452         (fma_test_downward): Likewise.
64453         (fma_test_upward): Likewise.
64454         (initialize): Set min_subnorm_value.
64455
64456 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
64457
64458         [BZ #14638]
64459         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
64460         0 + 0.
64461         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
64462         mode for addition resulting in exact zero.
64463         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
64464         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
64465         exact 0 + 0.
64466         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
64467         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
64468         * math/libm-test.inc (fma_test): Add more tests.
64469         (fma_test_towardzero): New function.
64470         (fma_test_downward): Likewise.
64471         (fma_test_upward): Likewise.
64472         (main): Call the new functions.
64473
64474 2012-09-28  David S. Miller  <davem@davemloft.net>
64475
64476         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
64477
64478 2012-09-28  Roland McGrath  <roland@hack.frob.com>
64479
64480         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
64481         instead of SIGALRM.
64482
64483         * sysdeps/gnu/_G_config.h: Moved to ...
64484         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
64485         * sysdeps/mach/hurd/_G_config.h: Moved to ...
64486         * sysdeps/generic/_G_config.h: ... here.
64487
64488         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
64489
64490         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
64491
64492         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
64493         Conditionalize target on [libnss_test1.so-version].
64494
64495         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
64496
64497         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
64498         (elfobjdir): Move out of conditionals.
64499
64500         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
64501         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
64502         (__nss_lookup_function): Conditionalize label remove_from_tree on
64503         [!DO_STATIC_NSS || SHARED], matching its only use.
64504
64505 2012-09-28  David S. Miller  <davem@davemloft.net>
64506
64507         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
64508         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
64509         file.
64510         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
64511         sysdep_routines.
64512         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
64513         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
64514         when HWCAP_SPARC_CRYPTO is present.
64515
64516 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
64517
64518         * io/tst-mknodat.c: Create a FIFO instead of a socket.
64519
64520 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
64521
64522         [BZ #6530]
64523         * stdio-common/vfprintf.c (process_string_arg): Revert
64524         2000-07-22 change.
64525
64526 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
64527
64528         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
64529         for testcase.
64530         * stdio-common/tst-sprintf.c: Include <locale.h>
64531         (main): Test sprintf's handling of incomplete multibyte
64532         characters.
64533
64534 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
64535
64536         * elf/dl-runtime.c (VERSYMIDX): Removed.
64537         * elf/dl-version.c (VERSYMIDX): Likewise.
64538         * elf/do-rel.h (VERSYMIDX): Likewise.
64539         (VALIDX): Likewise.
64540         * elf/dynamic-link.h (VERSYMIDX): Likewise.
64541         * elf/rtld.c (VALIDX): Likewise.
64542         (ADDRIDX): Likewise.
64543         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
64544         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
64545         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
64546         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
64547         (VALIDX): Likewise.
64548         (ADDRIDX): Likewise.
64549
64550 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
64551
64552         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
64553
64554 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
64555
64556         [BZ #11438]
64557         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
64558         to global scope.
64559         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
64560         addresses are in the same scope as 192.0.2/24.
64561         * posix/gai.conf: Document new scope table defaults.
64562
64563 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
64564
64565         [BZ #5298]
64566         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
64567         for ftell.  Compute offsets from write pointers instead.
64568         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
64569
64570 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
64571
64572         [BZ #14543]
64573         * libio/Makefile (tests): New test case tst-fseek.
64574         * libio/tst-fseek.c: New test case to verify that fseek/ftell
64575         combination works in wide mode.
64576         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
64577         state when the external buffer state changes.
64578
64579 2012-09-27  David S. Miller  <davem@davemloft.net>
64580
64581         [BZ #14376]
64582         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
64583         pass reloc->r_addend in as the 'high' argument to
64584         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
64585
64586         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64587
64588 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
64589
64590         * rt/tst-aio2.c: Include <pthread.h>.
64591         * rt/tst-aio3.c: Likewise.
64592
64593 2012-09-27  Steve Ellcey  <sellcey@mips.com>
64594
64595         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
64596
64597 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
64598
64599         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
64600         contents on [SHARED].
64601
64602 2012-09-26  Marek Polacek  <polacek@redhat.com>
64603
64604         [BZ #14530]
64605         [BZ #13741]
64606         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
64607         for C++ and GCC <4.3 as well as for non GCC compilers.
64608
64609 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
64610
64611         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64612
64613 2012-09-25  Roland McGrath  <roland@hack.frob.com>
64614
64615         * Makefile.in (all, install): Declare with .PHONY.
64616         Reported by Michael Hope <michael.hope@linaro.org>.
64617
64618 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
64619
64620         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
64621         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
64622         system header.
64623         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
64624         Likewise.
64625         (sydep_routines): Add the new and the internal functions.
64626         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
64627         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
64628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
64629         (GLIBC_2.17): Add the new function.
64630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
64631         (GLIBC_2.17): Likewise.
64632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
64633         (GLIBC_2.17): Likewise.
64634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
64635         (GLIBC_2.17): Likewise.
64636         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
64637
64638 2012-09-25  Alan Modra  <amodra@gmail.com>
64639
64640         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
64641         Add release barrier before setting once_control to say
64642         initialisation is done.  Add hints on lwarx.  Use macro in
64643         place of isync.
64644         (clear_once_control): Add release barrier.
64645
64646 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
64647
64648         [BZ #13629]
64649         * math/s_clog.c (__clog): Handle more values close to |z| = 1
64650         specially.
64651         * math/s_clog10.c (__clog10): Likewise.
64652         * math/s_clog10f.c (__clog10f): Likewise.
64653         * math/s_clog10l.c (__clog10l): Likewise.
64654         * math/s_clogf.c (__clogf): Likewise.
64655         * math/s_clogl.c (__clogl): Likewise.
64656         * math/Makefile (libm-calls): Add x2y2m1.
64657         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
64658         (__x2y2m1): Likewise.
64659         (__x2y2m1l): Likewise.
64660         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
64661         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
64662         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
64663         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
64664         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
64665         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
64666         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
64667         * sysdeps/i386/fpu/libm-test-ulps: Update.
64668         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64669
64670         [BZ #14621]
64671         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
64672         int as type of variable DEPTH.
64673         (glob): Use size_t instead of int as type of variables NEWCOUNT
64674         and OLD_PATHC.
64675
64676 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64677
64678         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
64679         Add s_sincosf-sse2.
64680         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
64681         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
64682         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
64683         macros for using routine as __sincosf_ia32.
64684         Use macro for function declaration and weak_alias.
64685         * sysdeps/i386/fpu/libm-test-ulps: Update.
64686
64687         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
64688         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64689
64690         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
64691         subnormal argument.
64692         * math/s_cexpf.c (__cexpf): Likewise.
64693         * math/s_csinf.c (__csinf): Likewise.
64694         * math/s_csinhf.c (__csinhf): Likewise.
64695         * math/s_ctanf.c (__ctanf): Likewise.
64696         * math/s_ctanhf.c (__ctanhf): Likewise.
64697         * math/s_ccosh.c (__ccoshf): Likewise.
64698         * math/s_cexp.c (__cexpl): Likewise.
64699         * math/s_csin.c (__csin): Likewise.
64700         * math/s_csinh.c (__csinh): Likewise.
64701         * math/s_ctan.c (__ctan): Likewise.
64702         * math/s_ctanh.c (ctanh): Likewise.
64703         * math/s_ccoshl.c (__ccoshl): Likewise.
64704         * math/s_cexpl.c (__cexpl): Likewise.
64705         * math/s_csinl.c (__csinl): Likewise.
64706         * math/s_csinhl.c (__csinhl): Likewise.
64707         * math/s_ctanl.c (__ctanl): Likewise.
64708         * math/s_ctanhl.c (__ctanhl): Likewise.
64709
64710 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
64711
64712         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
64713         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
64714         (_IO_off_t): Define to __off_t, not _G_off_t.
64715         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
64716         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
64717         (_IO_wint_t): Define to wint_t, not _G_wint_t.
64718         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
64719         type of __dummy and __dummy2 fields.
64720         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
64721         (_G_ssize_t): Likewise.
64722         (_G_off_t): Likewise.
64723         (_G_pid_t): Likewise.
64724         (_G_uid_t): Likewise.
64725         (_G_wchar_t): Likewise.
64726         (_G_wint_t): Likewise.
64727         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
64728         (_G_ssize_t): Likewise.
64729         (_G_off_t): Likewise.
64730         (_G_pid_t): Likewise.
64731         (_G_uid_t): Likewise.
64732         (_G_wchar_t): Likewise.
64733         (_G_wint_t): Likewise.
64734         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
64735         (_G_ssize_t): Likewise.
64736         (_G_off_t): Likewise.
64737         (_G_pid_t): Likewise.
64738         (_G_uid_t): Likewise.
64739         (_G_wchar_t): Likewise.
64740         (_G_wint_t): Likewise.
64741
64742 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64743
64744         * malloc/arena.c: Include malloc-sysdep.h.
64745         (shrink_heap): Use check_may_shrink_heap to decide if madvise
64746         is sufficient to shrink the heap or an unmap is needed.
64747         * sysdeps/generic/malloc-sysdep.h: New file.  Define
64748         new function check_may_shrink_heap.
64749         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
64750         new function check_may_shrink_heap.
64751
64752 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64753
64754         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
64755         comments.
64756
64757 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
64758
64759         * catgets/test-gencat.sh: Add "set -e".
64760         * elf/tst-pathopt.sh: Likewise.
64761         * grp/tst_fgetgrent.sh: Likewise.
64762         * iconvdata/run-iconv-test.sh: Likewise.
64763         * intl/tst-gettext.sh: Likewise.
64764         * intl/tst-gettext2.sh: Likewise.
64765         * intl/tst-gettext4.sh: Likewise.
64766         * intl/tst-gettext6.sh: Likewise.
64767         * intl/tst-translit.sh: Likewise.
64768         * io/ftwtest-sh: Likewise.
64769         * libio/test-freopen.sh: Likewise.
64770         * malloc/tst-mtrace.sh: Likewise.
64771         * posix/globtest.sh: Likewise.
64772         * posix/tst-getconf.sh: Likewise.
64773         * posix/wordexp-tst.sh: Likewise.
64774         * stdio-common/tst-printf.sh: Likewise.
64775         * stdio-common/tst-unbputc.sh: Likewise.
64776         * stdlib/tst-fmtmsg.sh: Likewise.
64777         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
64778         * catgets/Makefile: Do not specify -e option when running
64779         testsuite shell scripts.
64780         * elf/Makefile: Likewise.
64781         * grp/Makefile: Likewise.
64782         * iconvdata/Makefile: Likewise.
64783         * intl/Makefile: Likewise.
64784         * io/Makefile: Likewise.
64785         * libio/Makefile: Likewise.
64786         * malloc/Makefile: Likewise.
64787         * posix/Makefile: Likewise.
64788         * stdio-common/Makefile: Likewise.
64789         * stdlib/Makefile: Likewise.
64790         * sysdeps/x86_64/Makefile: Likewise.
64791
64792         * io/ftwtest-sh: Add copyright header.
64793         * posix/globtest.sh: Likewise.
64794         * posix/tst-getconf.sh: Likewise.
64795         * posix/wordexp-tst.sh: Likewise.
64796         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
64797
64798 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
64799
64800         [BZ #13679]
64801         * Makeconfig (+link): Defined as $(+link-static) if
64802         $(build-shared) isn't yes.
64803         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
64804         isn't yes.
64805         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
64806
64807         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
64808
64809         [BZ #14562]
64810         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
64811         new chunk size with MALLOC_ALIGN_MASK.
64812
64813 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
64814
64815         [BZ #5044]
64816         * stdio-common/printf_fphex.c: Include <stdbool.h> and
64817         <rounding-mode.h>.
64818         (__printf_fphex): Determine rounding using get_rounding_mode and
64819         round_away.
64820         * stdio-common/tst-printf-round.c (struct hex_test): New
64821         structure.
64822         (hex_tests): New variable.
64823         (test_hex_in_one_mode): New function.
64824         (do_test): Also run tests for hex float output.
64825
64826 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
64827
64828         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
64829         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
64830         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
64831         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
64832         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
64833         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
64834         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
64835         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
64836
64837 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
64838
64839         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
64840         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
64841         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
64842         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
64843
64844 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
64845
64846         [BZ #14579]
64847         * elf/rtld.c (dl_main): Limit the check for self loading to normal
64848         mode only.
64849         * elf/tst-rtld-load-self.sh: New test.
64850         * elf/Makefile: Run it.
64851
64852 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
64853
64854         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
64855         (tst-writev-ENV): Remove.
64856         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
64857
64858 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
64859
64860         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
64861
64862 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
64863
64864         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
64865         unconditional.
64866         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
64867         Likewise.
64868         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
64869         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
64870         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
64871         Likewise.
64872
64873 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
64874
64875         [BZ #14587]
64876         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
64877         * config.make.in (have-cpp-asm-debuginfo): Removed.
64878         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
64879         * configure: Regenerated.
64880
64881 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
64882
64883         [BZ #5044]
64884         * stdio-common/printf_fp.c: Include <stdbool.h> and
64885         <rounding-mode.h>.
64886         (___printf_fp): Determine rounding using get_rounding_mode and
64887         round_away.
64888         * stdio-common/tst-printf-round.c: New file.
64889         * stdio-common/Makefile (tests): Add tst-printf-round.
64890         (link-libm): New variable.
64891         ($(objpfx)tst-printf-round): Depend in $(link-libm).
64892
64893 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
64894
64895         [BZ #14576]
64896         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
64897         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
64898         Likewise.
64899         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
64900         Likewise.
64901
64902 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
64903
64904         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
64905         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64906         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64907         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64908
64909 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
64910
64911         [BZ #14518]
64912         * include/rounding-mode.h: New file.
64913         * sysdeps/generic/get-rounding-mode.h: Likewise.
64914         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
64915         * stdlib/strtod_l.c: Include <rounding-mode.h>.
64916         (MAX_VALUE): New macro.
64917         (MIN_VALUE): Likewise.
64918         (overflow_value): New function.
64919         (underflow_value): Likewise.
64920         (round_and_return): Use overflow_value and underflow_value to
64921         determine return values in overflow and underflow cases.  Use
64922         round_away to determine rounding depending on rounding mode.
64923         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
64924         determine return values in overflow and underflow cases.
64925         * stdlib/tst-strtod-round.c: Include <fenv.h>.
64926         (struct test_results): New structure.
64927         (struct test): Use struct test_results to store expected results
64928         for all rounding modes.
64929         (TEST): Include expected results for all rounding modes.
64930         (test_in_one_mode): New function.
64931         (do_test): Use test_in_one_mode to compute and check results.
64932         Check results for all rounding modes.
64933         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
64934         $(link-libm).
64935
64936 2012-12-09  Allan McRae  <allan@archlinux.org>
64937
64938         * sysdeps/i386/fpu/libm-test-ulps: Update
64939
64940 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
64941
64942         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
64943         (_G_int32_t): Likewise.
64944         (_G_uint16_t): Likewise.
64945         (_G_uint32_t): Likewise.
64946         (_G_HAVE_BOOL): Likewise.
64947         (_G_HAVE_ATEXIT): Likewise.
64948         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64949         (_G_HAVE_IO_FILE_OPEN): Likewise.
64950         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
64951         (_G_int32_t): Likewise.
64952         (_G_uint16_t): Likewise.
64953         (_G_uint32_t): Likewise.
64954         (_G_HAVE_BOOL): Likewise.
64955         (_G_HAVE_ATEXIT): Likewise.
64956         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64957         (_G_HAVE_IO_FILE_OPEN): Likewise.
64958         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
64959         (_G_int32_t): Likewise.
64960         (_G_uint16_t): Likewise.
64961         (_G_uint32_t): Likewise.
64962         (_G_HAVE_BOOL): Likewise.
64963         (_G_HAVE_ATEXIT): Likewise.
64964         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64965         (_G_HAVE_IO_FILE_OPEN): Likewise.
64966
64967 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
64968
64969         * csu/libc-tls.c: Update copyright years.
64970
64971 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
64972
64973         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
64974         [!_G_USING_THUNKS]: Remove conditional code.
64975         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
64976         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
64977
64978         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
64979         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
64980         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64981         (_G_VTABLE_LABEL_PREFIX): Likewise.
64982         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64983         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64984         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64985         (_G_VTABLE_LABEL_PREFIX): Likewise.
64986         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
64987         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64988         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64989         (_G_VTABLE_LABEL_PREFIX): Likewise.
64990         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
64991
64992 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
64993
64994         * libio/Makefile: Include ../Makeconfig before tests.
64995         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
64996         only if $(build-shared) is yes.
64997
64998         * iconv/gconv_db.c: Update copyright years.
64999
65000 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65001
65002         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
65003         unwind info if defined PIC. Fix special cases description.
65004         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
65005
65006         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
65007         DP_HI_MASK entry.
65008         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
65009
65010 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
65011
65012         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
65013
65014         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
65015         is NULL.
65016
65017         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
65018         (LDLIBS-tst-chk4): This.
65019         (LDFLAGS-tst-chk5): Renamed to ...
65020         (LDLIBS-tst-chk5): This.
65021         (LDFLAGS-tst-chk6): Renamed to ...
65022         (LDLIBS-tst-chk6): This.
65023         (LDFLAGS-tst-lfschk4): Renamed to ...
65024         (LDLIBS-tst-lfschk4): This.
65025         (LDFLAGS-tst-lfschk5): Renamed to ...
65026         (LDLIBS-tst-lfschk5): This.
65027         (LDFLAGS-tst-lfschk6): Renamed to ...
65028         (LDLIBS-tst-lfschk6): This.
65029
65030         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
65031         on $(common-objpfx)soversions.mk.
65032
65033 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
65034
65035         [BZ #10014]
65036         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
65037         example host name.
65038
65039 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
65040
65041         * malloc/arena.c (arena_get_retry): New function that gets
65042         another arena for the caller to try its request on.
65043         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
65044         current arena cannot fulfill the request.
65045         (__libc_memalign): Likewise.
65046         (__libc_memalign): Likewise.
65047         (__libc_pvalloc): Likewise.
65048         (__libc_calloc): Likewise.
65049
65050 2012-09-05  John Tobey  <john.tobey@gmail.com>
65051
65052         [BZ #13542]
65053         * manual/arith.texi (Operations on Complex): Fix description
65054         of carg branch cut.
65055
65056 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
65057
65058         [BZ #10014]
65059         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
65060         host name.
65061
65062         [BZ #10038]
65063         * manual/memory.texi (Memory): Make order of menu items match
65064         order of sections.
65065
65066 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
65067
65068         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
65069         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
65070         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
65071
65072 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
65073
65074         * csu/libc-tls.c (static_dtv): Renamed to ...
65075         (_dl_static_dtv): This.  Make it global.
65076         (_dl_initial_dtv): Removed.
65077         (__libc_setup_tls): Updated.
65078         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
65079         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
65080         DL_INITIAL_DTV.
65081
65082 2012-09-06  Petr Machata  <pmachata@redhat.com>
65083
65084         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
65085         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
65086         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
65087         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
65088
65089 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
65090
65091         [BZ #14545]
65092         * csu/libc-tls.c (_dl_initial_dtv): New variable.
65093         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
65094         freeing dtv[-1].
65095
65096 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
65097
65098         [BZ #14544]
65099         * Makeconfig (link-static-before-libc): Replace $(+prector)
65100         with $(+prectorT).
65101         (link-static-after-libc): Replace $(+postctor) with
65102         $(+postctorT).
65103         (link-bounded): Replace $(+prector)/$(+postctor) with
65104         $(+prectorT)/$(+postctorT).
65105         (+prectorT): New macro.
65106         (+postctorT): Likewise.
65107
65108 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
65109
65110         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
65111         (round_str): Handle values above the maximum for IBM long double
65112         as inexact.
65113         * stdlib/tst-strtod-round.c (tests): Regenerated.
65114
65115 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65116
65117         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
65118         assembler flag.
65119         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
65120         zarch_nohighgprs around the zarch optimized routines.
65121         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
65122         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
65123         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
65124         for zarch.
65125
65126 2012-09-05  David S. Miller  <davem@davemloft.net>
65127
65128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65129
65130         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
65131         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
65132         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
65133         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
65134         entries.
65135
65136 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
65137
65138         * malloc/arena.c: Fold copyright years.
65139         * malloc/mcheck.c, malloc/memusage.c: Likewise.
65140
65141 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
65142
65143         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
65144
65145 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
65146
65147         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
65148
65149 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
65150
65151         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
65152         change internal state upon failure.
65153
65154 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
65155
65156         * malloc/mcheck.c (mcheck_check_all): Fix typo.
65157         * malloc/memusage.c (mmap): Likewise.
65158         (mmap64, mremap): Likewise.  Adjust name in comment.
65159
65160 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
65161
65162         * libio/fileops.c: Fix typos in comments.
65163         * libio/oldfileops.c: Likewise.
65164         * libio/wfileops.c: Likewise.
65165
65166 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
65167
65168         [BZ #1349]
65169         * malloc/Makefile (tests): Add tst-malloc-usable test case.
65170         (tst-malloc-usable-ENV): Set environment for test case.
65171         * malloc/hooks.c (malloc_check_get_size): New function to get
65172         requested size.
65173         * malloc/malloc.c (musable): Use malloc_check_get_size.
65174         * malloc/tst-malloc-usable.c: New test case.
65175
65176 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
65177
65178         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
65179
65180 2012-09-05  Allan McRae  <allan@archlinux.org>
65181
65182         [BZ #13966]
65183         * configure.in (CXX_SYSINCLUDES): Use compiler output to
65184         determine header location.
65185         * configure: Regenerated.
65186
65187 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
65188
65189         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
65190         float format.
65191         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
65192         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
65193         format.
65194         (test): Regenerate.
65195
65196 2012-09-04  David S. Miller  <davem@davemloft.net>
65197
65198         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
65199         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
65200         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
65201
65202 2012-09-04  Florian Weimer  <fweimer@redhat.com>
65203
65204         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
65205         failures.
65206
65207         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
65208
65209 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
65210
65211         [BZ #9914]
65212         * libio/iogetdelim.c: Include <limits.h>.
65213         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
65214         + len + 1 would overflow.
65215
65216 2012-09-03  Andreas Jaeger  <aj@suse.de>
65217
65218         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65219         * sysdeps/i386/fpu/libm-test-ulps: Update.
65220
65221 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65222
65223         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
65224         Add s_sinf-sse2, s_conf-sse2.
65225
65226         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
65227         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
65228         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
65229         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
65230
65231         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
65232         for using routine as __sinf_ia32.
65233         Use macro for function declaration and weak_alias.
65234         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
65235         for using routine as __cosf_ia32.
65236         Use macro for function declaration and weak_alias.
65237
65238         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
65239         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
65240
65241         * sysdeps/x86_64/fpu/s_sinf.S: New file.
65242         * sysdeps/x86_64/fpu/s_cosf.S: New file.
65243         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65244
65245         * math/libm-test.inc (cos_test): Add more test cases.
65246         (sin_test): Likewise.
65247         (sincos_test): Likewise.
65248
65249 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65250
65251         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
65252         (IFUNC_RESOLVE): Make pointers to the specialized implementations
65253         hidden.
65254         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
65255
65256 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
65257
65258         [BZ #14538]
65259         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
65260         first element of the GOT.
65261         (elf_machine_load_address): Return the difference between
65262         the runtime address of _DYNAMIC and elf_machine_dynamic ().
65263
65264 2012-09-01  Allan McRae  <allan@archlinux.org>
65265
65266         [BZ #13412]
65267         * configure.in (AWK): Require gawk version 3.0 or later.
65268         * configure: Regenerated.
65269
65270 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
65271
65272         * sysdeps/unix/sysv/linux/kernel-features.h
65273         (__ASSUME_POSIX_CPU_TIMERS): Remove.
65274         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
65275         [__NR_clock_getres]: Make code unconditional.
65276         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
65277         (clock_getcpuclockid): Remove code left unreachable by removal of
65278         conditionals.
65279         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
65280         code unconditional.
65281         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
65282         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
65283         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
65284         Make code unconditional.
65285         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
65286         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
65287         * sysdeps/unix/sysv/linux/clock_settime.c
65288         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
65289         conditional code.
65290         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
65291         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
65292
65293 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
65294
65295         [BZ #14476]
65296         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
65297         scripts/test-installation.pl.
65298
65299         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
65300         and $ld_so_version if it is set.
65301
65302 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
65303
65304         [BZ #14516]
65305         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
65306         failure if reading from procfs failed.
65307         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
65308
65309 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
65310
65311         * sysdeps/unix/sysv/linux/kernel-features.h
65312         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
65313         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
65314         Remove conditional code.
65315         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
65316         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
65317         Remove conditional code.
65318         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
65319         * sysdeps/unix/sysv/linux/i386/fxstat.c
65320         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
65321         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
65322         * sysdeps/unix/sysv/linux/i386/fxstatat.c
65323         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
65324         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
65325         * sysdeps/unix/sysv/linux/i386/lxstat.c
65326         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
65327         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
65328         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
65329         Remove conditional code.
65330         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
65331         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
65332         Remove conditional code.
65333         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
65334         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
65335         <kernel-features.h>.
65336         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
65337         Remove.
65338         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
65339         Remove conditional code.
65340         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
65341         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
65342         Remove conditional.
65343
65344 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
65345
65346         [BZ #5400]
65347         * NEWS: Add fixed bug number.
65348
65349 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
65350
65351         [BZ #14519]
65352         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
65353         underflowing exponent in case of negative sign.
65354         * stdlib/tst-strtod-round-data: Add more tests.
65355         * stdlib/tst-strtod-round.c (tests): Regenerated.
65356
65357         [BZ #3479]
65358         * stdlib/strtod_l.c (NDIG): Remove.
65359         (HEXNDIG): Likewise.
65360         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
65361         smallest representable value.
65362         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
65363         lie within an exact representation of 1/2 ulp of the result.
65364         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
65365         unconditionally.
65366         (TENS_P9_IDX): Define unconditionally.
65367         (TENS_P9_SIZE): Likewise.
65368         (TENS_P10_IDX): Likewise.
65369         (TENS_P10_SIZE): Likewise.
65370         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
65371         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
65372         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
65373         entries for 10^2^13 and 10^2^14.
65374         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
65375         (TENS_P13_IDX): Define.
65376         (TENS_P13_SIZE): Likewise.
65377         (TENS_P14_IDX): Likewise.
65378         (TENS_P14_SIZE): Likewise.
65379         (_fpioconst_pow10): Change array size to
65380         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
65381         unconditional.
65382         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
65383         1024]: Add entries for 10^2^13 and 10^2^14.
65384         [LAST_POW10 > _LAST_POW10]: Remove #error.
65385         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
65386         (_fpioconst_pow10): Change array size to
65387         FPIOCONST_POW10_ARRAY_SIZE.
65388         * stdlib/gen-fpioconst.c: New file.
65389         * stdlib/gen-tst-strtod-round.c: Likewise.
65390         * stdlib/tst-strtod-round-data: Likewise.
65391         * stdlib/tst-strtod-round.c: Likewise.
65392         * stdlib/Makefile (tests): Add tst-strtod-round.
65393
65394         [BZ #14459]
65395         * stdlib/strtod_l.c: Include <stdint.h>.
65396         (NDEBUG): Do not define.
65397         (round_and_return): Change EXPONENT parameter to type intmax_t.
65398         Rearrange calculations to avoid internal overflow possibilities.
65399         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
65400         Rearrange calculations to avoid internal overflow possibilities.
65401         Assert that number fits inside MPNSIZE limbs.
65402         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
65403         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
65404         calculations and add assertions to avoid internal overflow
65405         possibilities.  Add casts to avoid signed/unsigned operations.
65406         * stdlib/tst-strtod-overflow.c: New file.
65407         * stdlib/Makefile (tests): Add tst-strtod-overflow.
65408
65409 2012-08-25  Marek Polacek  <polacek@redhat.com>
65410
65411         * time/time.h: Fix some typos in comments.
65412
65413 2012-08-23  Roland McGrath  <roland@hack.frob.com>
65414
65415         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
65416         * posix/tst-rfc3484-2.c: Likewise.
65417         * posix/tst-rfc3484-3.c: Likewise.
65418
65419 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
65420
65421         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
65422         (EF_ARM_ABI_FLOAT_HARD): Likewise.
65423
65424 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
65425
65426         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
65427         #include of fxstatat64.c.
65428
65429 2012-08-22  Roland McGrath  <roland@hack.frob.com>
65430
65431         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
65432         * shadow/getspent_r.c: Likewise.
65433         * shadow/getspnam.c: Likewise.
65434         * shadow/getspnam_r.c: Likewise.
65435         * gshadow/getsgent.c: Likewise.
65436         * gshadow/getsgent_r.c: Likewise.
65437         * gshadow/getsgnam.c: Likewise.
65438         * gshadow/getsgnam_r.c: Likewise.
65439         * inet/getnetbyad.c: Likewise.
65440         * inet/getnetbyad_r.c: Likewise.
65441         * inet/getnetbynm.c: Likewise.
65442         * inet/getnetbynm_r.c: Likewise.
65443         * inet/getnetent.c: Likewise.
65444         * inet/getnetent_r.c: Likewise.
65445         * inet/getproto.c: Likewise.
65446         * inet/getproto_r.c: Likewise.
65447         * inet/getprtent.c: Likewise.
65448         * inet/getprtent_r.c: Likewise.
65449         * inet/getprtname.c: Likewise.
65450         * inet/getprtname_r.c: Likewise.
65451         * inet/getrpcbyname.c: Likewise.
65452         * inet/getrpcbyname_r.c: Likewise.
65453         * inet/getrpcbynumber.c: Likewise.
65454         * inet/getrpcbynumber_r.c: Likewise.
65455         * inet/getrpcent.c: Likewise.
65456         * inet/getrpcent_r.c: Likewise.
65457         * inet/getaliasent.c: Likewise.
65458         * inet/getaliasent_r.c: Likewise.
65459         * inet/getaliasname.c: Likewise.
65460         * inet/getaliasname_r.c: Likewise.
65461         * nscd/getgrgid_r.c: Likewise.
65462         * nscd/getgrnam_r.c: Likewise.
65463         * nscd/gethstbyad_r.c: Likewise.
65464         * nscd/gethstbynm3_r.c: Likewise.
65465         * nscd/getpwnam_r.c: Likewise.
65466         * nscd/getpwuid_r.c: Likewise.
65467         * nscd/getsrvbynm_r.c: Likewise.
65468         * nscd/getsrvbypt_r.c: Likewise.
65469         * nscd/gai.c: Likewise.
65470
65471         * configure.in (build_nscd): New substituted variable, set
65472         by --disable-build-nscd and defaults to $use_nscd.
65473         * configure: Regenerated.
65474         * config.make.in (build-nscd): New substituted variable.
65475         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
65476         Change conditional to require [$(build-nscd) = yes] as well.
65477         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
65478
65479         [BZ# 13696]
65480         * configure.in (use_nscd): New substituted variable, set by
65481         --disable-nscd.  If enabled, define USE_NSCD.
65482         * configure: Regenerated.
65483         * config.h.in: Add USE_NSCD.
65484         * config.make.in (use-nscd): New substituted variable.
65485         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
65486         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
65487         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
65488         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
65489         (CFLAGS-getgrnam_r.c): Likewise.
65490         (CFLAGS-initgroups.c): Likewise.
65491         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
65492         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
65493         Variables removed.
65494         * inet/getnetgrent_r.c
65495         (nscd_setnetgrent): New function, broken out of ...
65496         (setnetgrent): ... here.  Call it.
65497         (innetgr): Conditionalize nscd bits on [USE_NSCD].
65498         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
65499         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
65500         * nscd/Makefile (routines, aux): Move definitions after include of
65501         Makeconfig.  Conditionalize on [$(use-nscd) != no].
65502         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
65503         Conditionalize on [USE_NSCD].
65504         (is_nscd, nscd_init_cb): Likewise.
65505         (nss_load_library): Conditionalize init callback on [USE_NSCD].
65506         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
65507         * nss/nss_db/db-init.c: Likewise.
65508         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
65509         [USE_NSCD].
65510         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
65511         (make_request): Use it.
65512         (cache_valid_p): New function.
65513         (__check_pf): Use it.
65514         * NEWS: Add item for --disable-nscd.
65515
65516 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
65517
65518         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
65519         to support sed >= 4.2.1-20-ga9bf076.
65520         * configure: Regenerated.
65521
65522 2012-08-22  Roland McGrath  <roland@hack.frob.com>
65523
65524         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
65525         Conditionalize whole body on [IREL].
65526
65527 2012-08-22  Jeff Law <law@redhat.com>
65528
65529         [BZ #14505]
65530         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
65531         if the family is PF_UNSPEC.
65532
65533 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
65534
65535         * Makerules (lib-version): Rename from V.
65536         (install-lib-nosubdir): Change V to lib-version.
65537
65538 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
65539
65540         [BZ #14252]
65541         * powerpc32/power6/wcschr.c: New file.
65542         * powerpc32/power6/wcscpy.c: New file.
65543         * powerpc32/power6/wcsrchr.c: New file.
65544         * powerpc64/power6/wcschr.c: New file.
65545         * powerpc64/power6/wcscpy.c: New file.
65546         * powerpc64/power6/wcsrchr.c: New file.
65547
65548 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
65549
65550         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
65551         (two_way_short_needle): Use it.
65552         * string/strstr.c (AVAILABLE1_USES_J): Define.
65553         * string/strcasestr.c: Likewise.
65554
65555         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
65556         array references.
65557         * string/strcasestr.c (TOLOWER): Make side-effect safe.
65558
65559         [BZ #11607]
65560         * NEWS: Add an entry.
65561         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
65562         define their defaults.
65563         (two_way_short_needle): Detect end-of-string on-the-fly.
65564         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
65565         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
65566         * string/bug-strcasestr1.c: New test.
65567         * string/Makefile: Run it.
65568
65569 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
65570
65571         [BZ #11607]
65572         * string/str-two-way.h (two_way_short_needle): Optimize matching of
65573         the first character.
65574
65575 2012-08-21  Roland McGrath  <roland@hack.frob.com>
65576
65577         * csu/elf-init.c (__libc_csu_irel): Function removed.
65578         * csu/libc-start.c (apply_irel): New function.
65579         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
65580
65581 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
65582
65583         * sysdeps/unix/sysv/linux/kernel-features.h
65584         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
65585         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
65586         <kernel-features.h>.
65587         [__NR_fadvise64_64]: Make code unconditional.
65588         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
65589         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
65590         !__NR_fadvise64_64)]: Likewise.
65591         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
65592         !__NR_fadvise64_64))]: Likewise.
65593         [__NR_fadvise64]: Make code unconditional.
65594         [!__NR_fadvise64]: Remove conditional code.
65595         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
65596         <kernel-features.h>.
65597         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
65598         unconditional.
65599         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
65600         conditional code.
65601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
65602         not include <kernel-features.h>.
65603         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
65604         unconditional.
65605         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
65606         conditional code.
65607         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
65608         include <kernel-features.h>.
65609         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
65610         unconditional.
65611         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
65612         conditional code.
65613
65614 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
65615
65616         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
65617         slight instruction rearrangements per scrollpipe analysis.
65618         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
65619
65620 2012-08-20  Roland McGrath  <roland@hack.frob.com>
65621
65622         * manual/syslog.texi (syslog; vsyslog, closelog):
65623         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
65624         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
65625
65626         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
65627         DSOCAPS to match condition on defining it.
65628
65629 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
65630
65631         * sysdeps/unix/sysv/linux/kernel-features.h
65632         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
65633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
65634         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
65635         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
65636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
65637         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
65638         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
65639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
65640         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
65641         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
65642
65643         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
65644         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
65645
65646         * sysdeps/unix/sysv/linux/kernel-features.h
65647         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
65648         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
65649         unconditional.
65650         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65651         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
65652         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
65653         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65654         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
65655         Make code unconditional.
65656         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65657         (__mmap64) [!__NR_mmap2]: Likewise.
65658         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
65659         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
65660         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65661         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
65662         [__NR_mmap2]: Make code unconditional.
65663         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
65664         (__mmap64) [!__NR_mmap2]: Likewise.
65665
65666 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65667
65668         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
65669
65670 2012-08-18  Andreas Jaeger  <aj@suse.de>
65671
65672         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
65673
65674 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
65675
65676         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
65677         * include/unistd.h (__have_sock_cloexec): Likewise.
65678         (__have_pipe2): Likewise.
65679         (__have_dup3): Likewise.
65680
65681 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
65682
65683         [BZ #9685]
65684         * include/unistd.h (__have_pipe2): Change define into an extern int.
65685         (__have_dup3): Likewise.
65686         * socket/have_sock_cloexec.c: Include fcntl.h.
65687         (__have_pipe2): New variable.
65688         (__have_dup3): Likewise.
65689
65690 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
65691
65692         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
65693
65694 2012-08-17  Marek Polacek  <polacek@redhat.com>
65695
65696         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
65697         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
65698
65699 2012-08-17  Roland McGrath  <roland@hack.frob.com>
65700
65701         * configure.in: Add AC_SUBST for sysheaders.
65702         * configure: Regenerated.
65703         * config.make.in (sysheaders): New substituted variable.
65704
65705         * sysdeps/unix/mkfifo.c: Moved ...
65706         * sysdeps/posix/mkfifo.c: ... here.
65707         * sysdeps/unix/mkfifoat.c: Moved ...
65708         * sysdeps/posix/mkfifoat.c: ... here.
65709
65710         * sysdeps/unix/utime.c: Moved ...
65711         * sysdeps/posix/utime.c: ... here.
65712
65713         * sysdeps/unix/time.c: Moved ...
65714         * sysdeps/posix/time.c: ... here.
65715         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
65716         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
65717
65718         * sysdeps/unix/nice.c: Moved ...
65719         * sysdeps/posix/nice.c: ... here.
65720
65721         * sysdeps/unix/alarm.c: Moved ...
65722         * sysdeps/posix/alarm.c: ... here.
65723
65724         * intl/Makefile ($(codeset_mo)): Depend on the input file.
65725
65726 2012-08-17  Jeff Law <law@redhat.com>
65727
65728         * intl/Makefile (codeset_mo): New variable.
65729         ($(codeset_mo)): New target.
65730         (tst-codeset.out): Depend on that.  Remove explicit rule.
65731         (tst-gettext3.out, tst-gettext5.out): Likewise.
65732         (LOCPATH-ENV, tst-codeset-ENV): New variables.
65733         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
65734         * intl/tst-codeset.sh: Remove.
65735         * intl/tst-gettext3.sh: Likewise.
65736         * intl/tst-gettext5.sh: Likewise.
65737
65738 2012-08-17  Roland McGrath  <roland@hack.frob.com>
65739
65740         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
65741         * sysdeps/unix/syscalls.list: ... here.
65742
65743         * sysdeps/posix/getaddrinfo.c
65744         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
65745         (gaiconf_init, gaiconf_reload): Use them.
65746         [!_STATBUF_ST_NSEC]
65747         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
65748         Define using time_t rather than struct timespec.
65749
65750         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
65751         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
65752         Macros removed.
65753         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
65754         [!NO_THREADS].
65755         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
65756         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
65757         Likewise.
65758
65759         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
65760         __libc_cleanup_push argument.
65761
65762         * bits/param.h: New file.
65763         * misc/sys/param.h: New file.
65764         * include/sys/param.h: New file.
65765         * misc/Makefile (headers): Add bits/param.h.
65766         * sysdeps/generic/sys/param.h: File removed.
65767         * sysdeps/unix/sysv/linux/bits/param.h: New file.
65768         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
65769         * sysdeps/mach/hurd/bits/param.h: New file.
65770         * sysdeps/mach/hurd/sys/param.h: File removed.
65771
65772         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
65773         last change.
65774
65775         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
65776         [_IO_MTSAFE_IO].
65777         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
65778         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
65779         New macros.
65780
65781         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
65782         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
65783         rather than -D_IO_MTSAFE_IO conditionally.
65784         * stdio-common/Makefile (CPPFLAGS): Likewise.
65785         * wcsmbs/Makefile (CPPFLAGS): Likewise.
65786         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
65787         Use $(libio-mtsafe).
65788         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
65789         of -D_IO_MTSAFE_IO.
65790         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
65791         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
65792         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
65793         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
65794         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
65795         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
65796         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
65797         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
65798         (CFLAGS-fread_u_chk.c): Likewise.
65799         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
65800         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
65801         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
65802         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
65803         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
65804         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
65805         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
65806         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
65807         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
65808
65809         * libio/Makefile: Test [$(libc-reentrant) = yes]
65810         instead of [$(filter %REENTRANT, $(defines)) nonempty].
65811
65812         * Makeconfig
65813         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
65814         * sysdeps/pthread/configure: File removed.
65815         * sysdeps/pthread/Makeconfig: New file.
65816         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
65817         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
65818
65819 2012-08-16  Gary Benson  <gbenson@redhat.com>
65820
65821         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
65822         unmapping the first object in a namespace.
65823
65824 2012-08-16  Roland McGrath  <roland@hack.frob.com>
65825
65826         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
65827         (__internal_setnetgrent): ... this.  Add internal_function to
65828         definition.  Add libc_hidden_def.
65829         (setnetgrent): Update caller.
65830         (internal_endnetgrent): Renamed to ...
65831         (__internal_endnetgrent): ... this.  Add internal_function to
65832         definition.  Add libc_hidden_def.
65833         (endnetgrent): Update caller.
65834         (internal_getnetgrent_r): Renamed to ...
65835         (__internal_getnetgrent_r): ... this.  Add internal_function to
65836         definition.  Add libc_hidden_def.
65837         (__getnetgrent_r): Update caller.
65838         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
65839
65840 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65841
65842         * stdlib/longlong.h: Update from GCC.
65843
65844 2012-08-16  Roland McGrath  <roland@hack.frob.com>
65845
65846         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
65847         on _QL, which is set by umul_ppmm but never used.
65848         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
65849         variables, which are set by GMP macros but never used.
65850         * stdio-common/_itowa.c (_itowa): Likewise.
65851         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
65852         * stdlib/mod_1.c (mpn_mod_1): Likewise.
65853
65854 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
65855
65856         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
65857         struct La_sh_regs is not constant.
65858         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
65859         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
65860         and struct La_sparc64_regs are not constant.
65861
65862 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65863
65864         * sysdeps/unix/sysv/linux/kernel-features.h
65865         (__ASSUME_POSIX_TIMERS): Remove.
65866         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
65867         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65868         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
65869         Make code unconditional.
65870         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65871         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
65872         Make code unconditional.
65873         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65874         * sysdeps/unix/sysv/linux/clock_nanosleep.c
65875         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
65876         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65877         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
65878         Make code unconditional.
65879         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65880         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
65881         (__libc_missing_posix_timers): Remove.
65882
65883 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65884
65885         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
65886         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
65887
65888         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
65889
65890         * elf/dl-sym.c: Include <stdlib.h>.
65891
65892         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
65893         constants, which avoids warnings in 32-bit builds.
65894
65895         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
65896         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
65897
65898         * misc/lseek.c: File moved to ...
65899         * io/lseek.c: ... here.
65900
65901         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
65902
65903         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
65904         shifting LEN more than 31 bits at once.
65905
65906 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65907
65908         [BZ #14195]
65909         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
65910         segmentation fault for a case of two empty input strings.
65911         * string/test-strncasecmp.c (check1): Renamed to...
65912         (bz12205): ...this.
65913         (bz14195): Add new testcase for two empty input strings and N > 0.
65914         (test_main): Call new testcase, adapt for renamed function.
65915
65916 2012-08-15  Andreas Jaeger  <aj@suse.de>
65917
65918         [BZ #14090]
65919         * crypt/md5test2.c: New test, based on test supplied by Serge
65920         Belyshev <belyshev@depni.sinp.msu.ru>.
65921         * crypt/Makefile (xtests): Add md5test-giant..
65922         * crypt/Makefile ($(objpfx)md5test-giant): Add.
65923
65924 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65925
65926         [BZ #14090]
65927         * crypt/md5.c (md5_process_block): Don't assume the buffer
65928         length is less than 2**32.
65929         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
65930         length is less than 2**64.
65931
65932 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65933
65934         * string/str-two-way.h: Include <sys/param.h>.
65935         (MAX): Macro removed.
65936
65937         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
65938         Move #define and #undef of memmove to just before and after
65939         including <string.h>.
65940
65941         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
65942         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
65943         and after including <string.h>.  Move declarations of
65944         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
65945         to before #include "string/memmove.c".
65946
65947         * include/dirent.h: Declare __getdirentries.
65948
65949         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
65950         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
65951
65952 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
65953
65954         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
65955         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
65956         * sysdeps/i386/configure: Regenerated.
65957         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
65958         STABS_CURRENT_FILE, and STABS_FUN.
65959         (END): Remove call to STABS_FUN_END.
65960         (STABS_CURRENT_FILE1): Delete.
65961         (STABS_CURRENT_FILE): Likewise.
65962         (STABS_FUN): Likewise.
65963         (STABS_FUN_END): Likewise.
65964         (STABS_FUN2): Likewise.
65965         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
65966         * sysdeps/x86_64/configure: Regenerated.
65967
65968 2012-08-14  Roland McGrath  <roland@hack.frob.com>
65969
65970         * elf/dl-open.c: Include <atomic.h>.
65971         * elf/dl-lookup.c: Likewise.
65972
65973 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
65974
65975         * sysdeps/unix/sysv/linux/kernel-features.h
65976         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
65977         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
65978         unconditionally.
65979         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
65980         unconditionally.
65981         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
65982         condition on __ASSUME_CLONE_THREAD_FLAGS.
65983
65984 2012-08-14  Andreas Jaeger  <aj@suse.de>
65985
65986         * sysdeps/i386/fpu/libm-test-ulps: Update.
65987
65988 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
65989
65990         * include/atomic.h (atomic_exchange_and_add): Split into ...
65991         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
65992         New atomic macros.
65993
65994 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
65995
65996         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65997
65998 2012-08-13  Jeff Law <law@redhat.com>
65999
66000         * manual/stdio.texi (snprintf): Clarify handling of the trailing
66001         null byte in the output string.
66002
66003 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
66004
66005         * sysdeps/unix/sysv/linux/kernel-features.h
66006         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
66007         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
66008         (__ASSUME_ARG_MAX_STACK_BASED): Define.
66009         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
66010         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
66011         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
66012         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
66013
66014 2012-08-09  Jeff Law <law@redhat.com>
66015
66016         [BZ #13939]
66017         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
66018         When avoid_arena is set, don't retry in the that arena.  Pick the
66019         next one, whatever it might be.
66020         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
66021         (arena_lock): Pass in new parameter to arena_get2.
66022         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
66023         arena_get2.
66024         (__libc_malloc): Unify retrying after main arena failure with
66025         __libc_memalign version.
66026         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
66027
66028 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
66029
66030         [BZ #14166]
66031         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
66032         to __redirect_strstr.
66033         (__strstr_sse42): Use typeof __redirect_strstr.
66034         (__strstr_ia32): Likewise.
66035         (__libc_strstr): New prototype.
66036         (strstr): Renamed to ...
66037         (__libc_strstr): This.
66038         (strstr): New strong alias of __libc_strstr.
66039         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
66040         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
66041         __redirect_time.
66042         Include <time.h>.
66043         (__libc_time): New prototype.
66044         (time_ifunc): Replace time with __libc_time.
66045         (time): New strong alias and hidden definition of __libc_time.
66046         (__GI_time): Remove strong alias.
66047         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
66048         Include <stddef.h>.
66049         (memmove): Redefined to __redirect_memmove.
66050         (__memmove_sse2): Use typeof __redirect_memmove.
66051         (__memmove_ssse3): Likewise.
66052         (__memmove_ssse3_back): Likewise.
66053         (__libc_memmove): New prototype.
66054         (memmove): Renamed to ...
66055         (__libc_memmove): This.
66056         (memmove): New strong alias of __libc_memmove.
66057
66058 2012-08-08  Mark Salter  <msalter@redhat.com>
66059
66060         * elf/elf.h
66061         (R_MN10300_TLS_GD): Define.
66062         (R_MN10300_TLS_LD): Likewise.
66063         (R_MN10300_TLS_LDO): Likewise.
66064         (R_MN10300_TLS_GOTIE): Likewise.
66065         (R_MN10300_TLS_IE): Likewise.
66066         (R_MN10300_TLS_LE): Likewise.
66067         (R_MN10300_TLS_DTPMOD): Likewise.
66068         (R_MN10300_TLS_DTPOFF): Likewise.
66069         (R_MN10300_TLS_TPOFF): Likewise.
66070         (R_MN10300_SYM_DIFF): Likewise.
66071         (R_MN10300_ALIGN): Likewise.
66072         (R_MN10300_NUM): Update.
66073
66074 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
66075
66076         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
66077         Remove.
66078
66079 2012-08-08  Roland McGrath  <roland@hack.frob.com>
66080
66081         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
66082
66083         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
66084         sysdeps/unix -> sysdeps/posix move.
66085         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
66086
66087 2012-08-07      Allan McRae     <allan@archlinux.org>
66088
66089         [BZ #14303]
66090         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
66091         (SUNOS_CPP): Likewise.
66092         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
66093         not found.
66094         (open_input): Call CPP using execvp.
66095
66096 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
66097
66098         * sysdeps/unix/sysv/linux/kernel-features.h
66099         (__ASSUME_PROT_GROWSUPDOWN): Remove.
66100         (__ASSUME_NO_CLONE_DETACHED): Likewise.
66101         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
66102         (__ASSUME_WAITID_SYSCALL): Likewise.
66103         * sysdeps/unix/sysv/linux/dl-execstack.c
66104         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
66105         code unconditional.
66106         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
66107         conditional code.
66108         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
66109         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
66110         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
66111         code.
66112         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
66113         unconditional.
66114         [__ASSUME_WAITID_SYSCALL]: Likewise.
66115         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
66116
66117 2012-08-07  Roland McGrath  <roland@hack.frob.com>
66118
66119         * sysdeps/unix/closedir.c: Renamed to ...
66120         * sysdeps/posix/closedir.c: ... here.
66121         * sysdeps/unix/dirfd.c: Renamed to ...
66122         * sysdeps/posix/dirfd.c: ... here.
66123         * sysdeps/unix/dirstream.h: Renamed to ...
66124         * sysdeps/posix/dirstream.h: ... here.
66125         * sysdeps/unix/fdopendir.c: Renamed to ...
66126         * sysdeps/posix/fdopendir.c: ... here.
66127         * sysdeps/unix/opendir.c: Renamed to ...
66128         * sysdeps/posix/opendir.c: ... here.
66129         * sysdeps/unix/readdir.c: Renamed to ...
66130         * sysdeps/posix/readdir.c: ... here.
66131         * sysdeps/unix/readdir_r.c: Renamed to ...
66132         * sysdeps/posix/readdir_r.c: ... here.
66133         * sysdeps/unix/rewinddir.c: Renamed to ...
66134         * sysdeps/posix/rewinddir.c: ... here.
66135         * sysdeps/unix/seekdir.c: Renamed to ...
66136         * sysdeps/posix/seekdir.c: ... here.
66137         * sysdeps/unix/telldir.c: Renamed to ...
66138         * sysdeps/posix/telldir.c: ... here.
66139         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
66140         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
66141         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
66142         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
66143
66144         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
66145         * bits/fcntl.h: ... here.
66146
66147         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
66148         not 0.
66149         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
66150         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
66151         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
66152         (struct flock): Move l_start, l_len to the beginning.
66153         Use __pid_t for l_pid.
66154         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
66155         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
66156         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
66157         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
66158         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
66159         [__USE_LARGEFILE64] (struct flock64): New type.
66160         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
66161
66162         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
66163         * bits/dirent.h: ... here.
66164
66165         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
66166         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
66167
66168 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
66169
66170         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66171         Change from 2.6.0 to 2.6.16.
66172         * sysdeps/unix/sysv/linux/configure: Regenerated.
66173         * sysdeps/unix/sysv/linux/kernel-features.h
66174         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
66175         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
66176         version.
66177         (__ASSUME_UTIMES): Likewise.
66178         (__ASSUME_CLONE_STOPPED): Remove.
66179         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
66180         architectures, not kernel version.
66181         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
66182         (__ASSUME_NO_CLONE_DETACHED): Likewise.
66183         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
66184         (__ASSUME_WAITID_SYSCALL): Likewise.
66185         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
66186         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
66187         * README: State 2.6.16 as minimum Linux kernel version.  Do not
66188         refer to older versions.
66189
66190 2012-08-06  Roland McGrath  <roland@hack.frob.com>
66191
66192         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
66193         Define alphasort64 as an alias.
66194         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
66195         Define versionsort64 as an alias.
66196         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
66197         Define scandir64 as an alias.
66198         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
66199         Define scandirat64 as an alias.
66200         * dirent/alphasort64.c (alphasort64):
66201         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
66202         * dirent/versionsort64.c: Likewise.
66203         * dirent/scandir64.c: Likewise.
66204         * dirent/scandirat64.c: Likewise.
66205         * sysdeps/wordsize-64/alphasort.c: File removed.
66206         * sysdeps/wordsize-64/alphasort64.c: File removed.
66207         * sysdeps/wordsize-64/scandir.c: File removed.
66208         * sysdeps/wordsize-64/scandir64.c: File removed.
66209         * sysdeps/wordsize-64/scandirat.c: File removed.
66210         * sysdeps/wordsize-64/scandirat64.c: File removed.
66211         * sysdeps/wordsize-64/versionsort.c: File removed.
66212         * sysdeps/wordsize-64/versionsort64.c: File removed.
66213         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
66214         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
66215         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
66216         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
66217         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
66218         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
66219         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
66220         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
66221
66222         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
66223         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
66224         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
66225         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
66226         [defined __arch64__ || defined __sparcv9]
66227         (__INO_T_MATCHES_INO64_T): New macro.
66228         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
66229         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
66230         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
66231         * sysdeps/unix/sysv/linux/bits/dirent.h
66232         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
66233         (_DIRENT_MATCHES_DIRENT64): New macro.
66234
66235         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
66236         Define lockf64 as an alias.
66237         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
66238         Define fseeko64 as an alias.
66239         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
66240         Define ftello64 as an alias.
66241         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
66242         Define _IO_fgetpos64 and fgetpos64 as aliases.
66243         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
66244         Define _IO_fsetpos64 and fsetpos64 as aliases.
66245         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
66246         Conditionalize body on this.
66247         * libio/fseeko64.c: Likewise.
66248         * libio/ftello64.c: Likewise.
66249         * libio/iofgetpos64.c: Likewise.
66250         * libio/iofsetpos64.c: Likewise.
66251         * sysdeps/wordsize-64/lockf.c: File removed.
66252         * sysdeps/wordsize-64/lockf64.c: File removed.
66253         * sysdeps/wordsize-64/fseeko.c: File removed.
66254         * sysdeps/wordsize-64/fseeko64.c: File removed.
66255         * sysdeps/wordsize-64/ftello.c: File removed.
66256         * sysdeps/wordsize-64/ftello64.c: File removed.
66257         * sysdeps/wordsize-64/iofgetpos.c: File removed.
66258         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
66259         * sysdeps/wordsize-64/iofsetpos.c: File removed.
66260         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
66261         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
66262         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
66263         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
66264         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
66265         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
66266         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
66267         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
66268         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
66269         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
66270         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
66271
66272         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
66273         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
66274         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
66275         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
66276         [defined __arch64__ || defined __sparcv9]
66277         (__OFF_T_MATCHES_OFF64_T): New macro.
66278         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
66279         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
66280         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
66281         (__OFF_T_MATCHES_OFF64_T): New macro.
66282
66283 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
66284
66285         * stdlib/secure-getenv.c (__secure_getenv): Replace
66286         GLIBC_2_16 with GLIBC_2_17.
66287
66288 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
66289
66290         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
66291         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
66292
66293 2012-08-03  David S. Miller  <davem@davemloft.net>
66294
66295         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66296
66297 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
66298
66299         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
66300         Remove.
66301         (__ASSUME_CORRECT_SI_PID): Likewise.
66302         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
66303         (__ASSUME_TMPFS_NAME): Likewise.
66304         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
66305         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
66306         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
66307         (HAVE_AUX_SECURE): Make definition unconditional.
66308         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
66309         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
66310
66311 2012-08-03  Roland McGrath  <roland@hack.frob.com>
66312
66313         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
66314         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
66315         * sysdeps/mach/hurd/eloop-threshold.h: New file.
66316         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
66317         __eloop_threshold instead of SYMLOOP_MAX.
66318
66319         * sysdeps/generic/eloop-threshold.h: New file.
66320         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
66321         of MAXSYMLINKS.
66322         * elf/chroot_canon.c (chroot_canon): Likewise.
66323
66324 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
66325
66326         [BZ #13717]
66327         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66328         Change to 2.6.0 everywhere.
66329         * sysdeps/unix/sysv/linux/configure: Regenerated.
66330         * sysdeps/unix/sysv/linux/kernel-features.h
66331         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
66332         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
66333         kernel versions.
66334         (__ASSUME_POSIX_TIMERS): Define unconditionally.
66335         (__ASSUME_FUTEX_REQUEUE): Remove.
66336         (__ASSUME_STATFS64): Define unconditionally.
66337         (__ASSUME_AT_SECURE): Likewise.
66338         (__ASSUME_CORRECT_SI_PID): Likewise.
66339         (__ASSUME_TGKILL): Define without depending on kernel version for
66340         i386.
66341         (__ASSUME_UTIMES): Likewise.
66342         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
66343         kernel version.
66344         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
66345         (__ASSUME_TMPFS_NAME): Likewise.
66346         * README: Update reference to Linux kernel versions.
66347
66348 2012-08-02  Marek Polacek  <polacek@redhat.com>
66349
66350         [BZ# 14150]
66351         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
66352         libc_cv_asm_type_prefix with %.
66353         * configure: Regenerated.
66354         * include/libc-symbols.h: Remove comment about
66355         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
66356         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
66357         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
66358         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
66359         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
66360         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
66361         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
66362         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
66363         * elf/tst-unique2mod1.c: Likewise.
66364         * elf/tst-unique1mod2.c: Likewise.
66365         * elf/tst-unique1mod1.c: Likewise.
66366         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
66367         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
66368         Replace ASM_TYPE_DIRECTIVE with .type.
66369         * sysdeps/s390/s390-64/sysdep.h: Likewise.
66370         * sysdeps/i386/sysdep.h: Likewise.
66371         * sysdeps/x86_64/sysdep.h: Likewise.
66372         * sysdeps/sh/sysdep.h: Likewise.
66373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
66374         Do not define ASM_TYPE_DIRECTIVE.
66375         * sysdeps/powerpc/sysdep.h: Likewise.
66376         * sysdeps/powerpc/powerpc32/sysdep.h:
66377         Replace ASM_TYPE_DIRECTIVE with .type.
66378         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
66379         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
66380         * sysdeps/i386/fpu/e_powf.S: Likewise.
66381         * sysdeps/i386/fpu/e_expl.S: Likewise.
66382         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
66383         * sysdeps/i386/fpu/e_acosh.S: Likewise.
66384         * sysdeps/i386/fpu/e_pow.S: Likewise.
66385         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
66386         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
66387         * sysdeps/i386/fpu/s_expm1.S: Likewise.
66388         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
66389         * sysdeps/i386/fpu/e_log2.S: Likewise.
66390         * sysdeps/i386/fpu/e_log2l.S: Likewise.
66391         * sysdeps/i386/fpu/e_scalb.S: Likewise.
66392         * sysdeps/i386/fpu/e_powl.S: Likewise.
66393         * sysdeps/i386/fpu/e_log10f.S: Likewise.
66394         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
66395         * sysdeps/i386/fpu/e_logl.S: Likewise.
66396         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
66397         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
66398         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
66399         * sysdeps/i386/fpu/e_log2f.S: Likewise.
66400         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
66401         * sysdeps/i386/fpu/e_log.S: Likewise.
66402         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
66403         * sysdeps/i386/fpu/e_logf.S: Likewise.
66404         * sysdeps/i386/fpu/e_log10l.S: Likewise.
66405         * sysdeps/i386/fpu/e_atanh.S: Likewise.
66406         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
66407         * sysdeps/i386/fpu/e_log10.S: Likewise.
66408         * sysdeps/i386/fpu/s_frexp.S: Likewise.
66409         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
66410         * sysdeps/i386/fpu/s_asinh.S: Likewise.
66411         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
66412         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
66413         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
66414         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
66415         * sysdeps/i386/i686/strtok.S: Likewise.
66416         * sysdeps/i386/i386-mcount.S: Likewise.
66417         * sysdeps/i386/strtok.S: Likewise.
66418         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
66419         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
66420         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
66421         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
66422         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
66423         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
66424         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
66425         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
66426         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
66427         * sysdeps/x86_64/_mcount.S: Likewise.
66428         * sysdeps/x86_64/strtok.S: Likewise.
66429         * sysdeps/sh/_mcount.S: Likewise.
66430
66431 2012-08-01  Roland McGrath  <roland@hack.frob.com>
66432
66433         * libio/iofopen.c: Include <fcntl.h>.
66434         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
66435         (_IO_fopen64, fopen64): Define as aliases.
66436         * libio/iofopen64.c: Include <fcntl.h>.
66437         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
66438         Conditionalize body on this.
66439         * sysdeps/wordsize-64/iofopen.c: File removed.
66440         * sysdeps/wordsize-64/iofopen64.c: File removed.
66441
66442 2012-08-01  Marek Polacek  <polacek@redhat.com>
66443
66444         * libc/Makeconfig: Use elf in place of binfmt-subdir.
66445         Use dlfcn directly instead of a variable.
66446         (binfmt-subdir): Do not define.
66447         (dlfcn): Likewise.
66448
66449 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
66450
66451         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
66452         Remove all definitions.
66453         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
66454         <kernel-features.h>.
66455         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
66456         (miss_F_GETOWN_EX): Remove all definitions.
66457         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
66458         macro definition.
66459         [!__ASSUME_FCNTL64]: Remove conditional code.
66460         [__ASSUME_FCNTL64]: Make code unconditional.
66461         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
66462         <kernel-features.h>.
66463         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
66464         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
66465         (lockf64) [__NR_fcntl64]: Make code unconditional.
66466         (lockf64) [__ASSUME_FCNTL64]: Likewise.
66467
66468         * sysdeps/unix/sysv/linux/kernel-features.h
66469         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
66470         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
66471         Make code unconditional.
66472         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
66473         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
66474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
66475         [__NR_vfork]: Make code unconditional.
66476         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
66477         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
66478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
66479         [__NR_vfork]: Make code unconditional.
66480         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
66481         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
66482
66483 2012-08-01  Roland McGrath  <roland@hack.frob.com>
66484
66485         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
66486         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
66487
66488         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
66489         Define mkstemp64 as an alias.
66490         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
66491         Define mkstemps64 as an alias.
66492         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
66493         Define mkostemp64 as an alias.
66494         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
66495         Define mkostemps64 as an alias.
66496         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
66497         Conditionalize body on this.
66498         * misc/mkostemp64.c: Likewise.
66499         * misc/mkostemps64.c: Likewise.
66500         * misc/mkstemps64.c: Likewise.
66501         * sysdeps/wordsize-64/mkstemp64.c: File removed.
66502         * sysdeps/wordsize-64/mkostemp64.c: File removed.
66503         * sysdeps/wordsize-64/mkostemp.c: File removed.
66504         * sysdeps/wordsize-64/mkstemp.c: File removed.
66505         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
66506         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
66507         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
66508         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
66509
66510         [BZ #14138]
66511         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
66512         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
66513         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
66514         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
66515
66516         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
66517         compat_symbol macros from <shlib-compat.h> rather than the underlying
66518         default_symbol_version and symbol_version macros, so that DEFAULT
66519         lines in shlib-versions are respected.
66520         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
66521
66522 2012-08-01  Florian Weimer  <fweimer@redhat.com>
66523
66524         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
66525         Declare with warn_unused_result.
66526         (setgid, setregid, setegid, setresgid): Likewise.
66527         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
66528         Likewise.
66529         * WUR-REPORT: Remove set*id functions.
66530
66531 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
66532
66533         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
66534
66535 2012-07-31  Roland McGrath  <roland@hack.frob.com>
66536
66537         [BZ #10191]
66538         * include/sys/socket.h (__libc_accept, __libc_accept4):
66539         Add attribute_hidden.
66540         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
66541
66542         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
66543         use of PTR_MANGLE.
66544         * inet/getnetgrent_r.c (setup): Likewise.
66545
66546         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
66547
66548 2012-07-31  David S. Miller  <davem@davemloft.net>
66549
66550         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66551
66552 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
66553
66554         [BZ #13629]
66555         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
66556         value between 1.0 and 2.0 and smaller part has absolute value less
66557         than 1.0.
66558         * math/s_clog10.c (__clog10): Likewise.
66559         * math/s_clog10f.c (__clog10f): Likewise.
66560         * math/s_clog10l.c (__clog10l): Likewise.
66561         * math/s_clogf.c (__clogf): Likewise.
66562         * math/s_clogl.c (__clogl): Likewise.
66563         * math/libm-test.inc (clog_test): Add more tests.
66564         (clog10_test): Likewise.
66565         * sysdeps/i386/fpu/libm-test-ulps: Update.
66566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66567
66568 2012-07-31  Florian Weimer  <fweimer@redhat.com>
66569
66570         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
66571         Exit with zero in case no suitable GID is found, and write a
66572         message to standard error.
66573
66574 2012-07-30  Roland McGrath  <roland@hack.frob.com>
66575
66576         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
66577         rather than to 1.
66578         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
66579         (MAXPATHLEN): Removed.
66580         (NOGROUP, NODEV): New macros.
66581         (setbit, clrbit, isset, isclr): New macros.
66582         (howmany, roundup, powerof2): New macros.
66583         (DEV_BSIZE): New macro.
66584
66585         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
66586         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
66587
66588         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
66589         definition on [!__NO_LONG_DOUBLE_MATH].
66590
66591         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
66592         PTR_MANGLE and PTR_DEMANGLE.
66593
66594         * socket/accept4.c (accept4): Rename to __libc_accept4.
66595         Define accept4 as a weak alias.
66596
66597         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
66598         on [_DIRENT_HAVE_D_TYPE].
66599         * io/ftw.c (ftw_dir): Likewise.
66600
66601         * io/xmknod.c (__xmknod): Don't check PATH for being null.
66602
66603         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
66604
66605         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
66606         Use the BSD numbers rather than the arbitrary ones we had.
66607         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
66608         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
66609         (SIGXCPU, SIGXFSZ): New macros.
66610         (_NSIG): Now 32.
66611
66612         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
66613         initializer on [_LIBC_REENTRANT].
66614
66615         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
66616         definitions inside [_POSIX_MAPPED_FILES].
66617
66618         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
66619
66620         * dirent/opendir.c: Include <fcntl.h>.
66621
66622         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
66623         (__libc_getspecific): Likewise.
66624         (__libc_key_create): Likewise.
66625
66626         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
66627         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
66628         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
66629         (tmpfile64): Define as alias.
66630         * sysdeps/wordsize-64/tmpfile.c: File removed.
66631         * sysdeps/wordsize-64/tmpfile64.c: File removed.
66632         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
66633         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
66634
66635         * stdio-common/vfscanf.c: Include <stdbool.h>.
66636         * nss/makedb.c: Likewise.
66637         * stdio-common/_i18n_number.h: Likewise.
66638         * argp/argp-help.c: Likewise.
66639         * posix/wordexp.c: Likewise.
66640         * sysdeps/posix/spawni.c: Likewise.
66641         * nss/nss_files/files-initgroups.c: Likewise.
66642         * stdio-common/reg-modifier.c: Include <stdlib.h>.
66643         * nss/nss_files/files-initgroups.c: Likewise.
66644         * nss/nss_db/db-netgrp.c: Likewise.
66645         * nss/nss_db/db-initgroups.c: Likewise.
66646         * io/fchmodat.c: Include <sys/stat.h>.
66647
66648         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
66649         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
66650
66651         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
66652         [HAVE_MMAP].
66653
66654         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
66655         Add multiple inclusion protection.
66656
66657 2012-07-27  David S. Miller  <davem@davemloft.net>
66658
66659         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66660
66661 2012-07-27  Gary Benson  <gbenson@redhat.com>
66662
66663         [BZ #14298]
66664         * elf/rtld.c: Include <stap-probe.h>.
66665         (dl_main): Added static probes "init_start" and "init_complete".
66666         * elf/dl-load.c: Include <stap-probe.h>.
66667         (lose): Take new parameter "nsid".
66668         Added static probe "map_failed".
66669         (_dl_map_object_from_fd): Pass namespace id to lose.
66670         Added static probe "map_start".
66671         (open_verify): Pass namespace id to lose.
66672         * elf/dl-open.c: Include <stap-probe.h>.
66673         (dl_open_worker) Added static probes "map_complete", "reloc_start"
66674         and "reloc_complete".
66675         * elf/dl-close.c: Include <stap-probe.h>.
66676         (_dl_close_worker): Added static probes "unmap_start" and
66677         "unmap_complete".
66678         * elf/rtld-debugger-interface.txt: New file documenting the above.
66679
66680 2012-07-26  Roland McGrath  <roland@hack.frob.com>
66681
66682         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
66683         rather than a string variable.
66684         * sunrpc/rpc_main.c (h_output): Likewise.
66685         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
66686
66687 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
66688
66689         * inet/check_native.c: New file.
66690
66691 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
66692
66693         [BZ #13629]
66694         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
66695         if larger part has absolute value 1.0.
66696         * math/s_clog10.c (__clog10): Likewise.
66697         * math/s_clog10f.c (__clog10f): Likewise.
66698         * math/s_clog10l.c (__clog10l): Likewise.
66699         * math/s_clogf.c (__clogf): Likewise.
66700         * math/s_clogl.c (__clogl): Likewise.
66701         * math/libm-test.inc (clog_test): Add more tests.
66702         (clog10_test): Likewise.
66703         * sysdeps/i386/fpu/libm-test-ulps: Update.
66704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66705
66706         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
66707         (pltexit): Likewise.
66708         (La_regs): Likewise.
66709         (La_retval): Likewise.
66710         (int_retval): Likewise.
66711         Update #error for removed macros to refer only to definitions in
66712         tst-audit.h.
66713         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
66714         macro.
66715         (pltexit): Likewise.
66716         (La_regs): Likewise.
66717         (La_retval): Likewise.
66718         (int_retval): Likewise.
66719         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
66720         macro.
66721         (pltexit): Likewise.
66722         (La_regs): Likewise.
66723         (La_retval): Likewise.
66724         (int_retval): Likewise.
66725         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
66726         macro.
66727         (pltexit): Likewise.
66728         (La_regs): Likewise.
66729         (La_retval): Likewise.
66730         (int_retval): Likewise.
66731         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
66732         macro.
66733         (pltexit): Likewise.
66734         (La_regs): Likewise.
66735         (La_retval): Likewise.
66736         (int_retval): Likewise.
66737         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
66738         macro.
66739         (pltexit): Likewise.
66740         (La_regs): Likewise.
66741         (La_retval): Likewise.
66742         (int_retval): Likewise.
66743         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
66744         macro.
66745         (pltexit): Likewise.
66746         (La_regs): Likewise.
66747         (La_retval): Likewise.
66748         (int_retval): Likewise.
66749         * sysdeps/generic/tst-audit.h: Update comment to refer only to
66750         macro definitions in tst-audit.h.
66751         * sysdeps/i386/tst-audit.h: New file.
66752         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
66753         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
66754         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
66755         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
66756         * sysdeps/sh/tst-audit.h: Likewise.
66757         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
66758         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
66759         * sysdeps/x86_64/tst-audit.h: Likewise.
66760
66761 2012-07-26  Andreas Jaeger  <aj@suse.de>
66762
66763         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
66764         ptrace.
66765
66766         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
66767         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
66768         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
66769         PTRACE_O_MASK.
66770         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
66771         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
66772         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
66773
66774         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
66775         value.
66776
66777         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
66778         _sigsys.
66779         (si_call_addr, si_syscall, si_arch): Define new macro.
66780         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
66781         _sigsys.
66782         (si_call_addr, si_syscall, si_arch): Define new marcro.
66783         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
66784         _sigsys.
66785         (si_call_addr, si_syscall, si_arch): Define new macro.
66786         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
66787         _sigsys.
66788         (si_call_addr, si_syscall, si_arch): Define new macro.
66789
66790 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
66791
66792         [BZ #13717]
66793         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66794         Change to 2.4.21 where previously 2.4.1.
66795         * sysdeps/unix/sysv/linux/configure: Regenerated.
66796         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
66797         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
66798         Linux kernel version.
66799         (__ASSUME_STD_AUXV): Remove.
66800         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
66801         kernel version.
66802         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
66803         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
66804         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
66805         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
66806         (__ASSUME_NETLINK_SUPPORT): Likewise.
66807         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
66808         (__no_netlink_support): Remove conditional definition.
66809         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
66810         Remove.
66811         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
66812         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
66813         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
66814         (if_nameindex_ioctl): Remove.
66815         (if_nameindex_netlink): Do not handle __no_netlink_support.
66816         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
66817         code.
66818         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
66819         Remove conditional code.
66820         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
66821         code.
66822         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
66823         unconditional.
66824         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
66825         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
66826         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
66827         Remove.
66828         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
66829         [!__ASSUME_STD_AUXV]: Remove conditional code.
66830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
66831         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
66832         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
66833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
66834         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
66835         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66836         code.
66837         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
66839         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
66840         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66841         conditional code.
66842         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
66844         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66845         code.
66846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
66847         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66848         conditional code.
66849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
66850         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66851         code unconditional.
66852         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66853         conditional code.
66854         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66855         unconditional.
66856         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66857         conditional code.
66858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
66859         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66860         unconditional.
66861         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66862         conditional code.
66863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
66864         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66865         code unconditional.
66866         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66867         conditional code.
66868         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66869         unconditional.
66870         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66871         conditional code.
66872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
66873         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66874         code unconditional.
66875         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66876         conditional code.
66877         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66878         unconditional.
66879         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66880         conditional code.
66881
66882 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
66883
66884         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
66885         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
66886         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
66887         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
66888         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
66889         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
66890         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
66891         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
66892         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
66893         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
66894         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
66895         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
66896         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
66897         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
66898         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
66899         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
66900         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
66901         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
66902         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
66903         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
66904         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
66905         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
66906         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
66907
66908 2012-07-25  Florian Weimer  <fweimer@redhat.com>
66909
66910         * Versions.def: Add GLIBC_2.17.
66911         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
66912         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
66913         Introduce __libc_secure_getenv.
66914         * stdlib/Versions (2.17): Add secure_getenv
66915         (GLIBC_PRIVATE): Add __libc_secure_getenv.
66916         * stdlib/secure-getenv.c: Rename __secure_getenv to
66917         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
66918         symbol __secure_getenv for GLIBC_2.0.
66919         * stdlib/tst-secure-getenv.c: New.
66920         * stdlib/Makefile (tests): Add testcase.
66921         * manual/startup.texi (Environment Access): Document
66922         secure_getenv.
66923         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
66924         __libc_secure_getenv.
66925         * inet/ruserpass.c (ruserpass): Likewise.
66926         * malloc/mtrace.c (mtrace): Likewise.
66927         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
66928         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
66929         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
66930         * sysdeps/posix/tempname.c: Likewise.  Evaluate
66931         HAVE_SECURE_GETENV.
66932         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
66933         __secure_getenv to __libc_secure_getenv.
66934         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
66935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
66936         Likewise.
66937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
66938         Likewise.
66939         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
66940         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
66941         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
66942         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
66943         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
66944         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
66945         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
66946
66947 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
66948
66949         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
66950         (struct La_i86_retval): Likewise.
66951         (struct La_x86_64_regs): Likewise.
66952         (struct La_x86_64_retval): Likewise.
66953         (struct La_x32_regs): Likewise.
66954         (struct La_x32_retval): Likewise.
66955         (struct La_ppc32_regs): Likewise.
66956         (struct La_ppc32_retval): Likewise.
66957         (struct La_ppc64_regs): Likewise.
66958         (struct La_ppc64_retval): Likewise.
66959         (struct La_sh_regs): Likewise.
66960         (struct La_sh_retval): Likewise.
66961         (struct La_s390_32_regs): Likewise.
66962         (struct La_s390_32_retval): Likewise.
66963         (struct La_s390_64_regs): Likewise.
66964         (struct La_s390_64_retval): Likewise.
66965         (struct La_sparc32_regs): Likewise.
66966         (struct La_sparc32_retval): Likewise.
66967         (struct La_sparc64_regs): Likewise.
66968         (struct La_sparc64_retval): Likewise.
66969         (struct audit_ifaces): Remove architecture-specific pltenter and
66970         pltexit members.
66971         * sysdeps/i386/ldsodefs.h: New file.
66972         * sysdeps/powerpc/ldsodefs.h: Likewise.
66973         * sysdeps/s390/ldsodefs.h: Likewise.
66974         * sysdeps/sh/ldsodefs.h: Likewise.
66975         * sysdeps/sparc/ldsodefs.h: Likewise.
66976         * sysdeps/x86_64/ldsodefs.h: Likewise.
66977
66978 2012-07-25  Marek Polacek  <polacek@redhat.com>
66979
66980         [BZ #6808]
66981         * math/libm-test.inc (yn_test): Add another test.
66982         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
66983         to ERANGE when the result is +-Inf.
66984         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
66985         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
66986         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
66987         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
66988
66989 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
66990
66991         * conform/data/time.h-data (NULL): Use macro-constant.  Require
66992         equal to 0.
66993         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
66994         clock_t.
66995         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
66996
66997 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
66998
66999         * configure.in <sysdeps resolving>: Correct printing
67000         Implies_before.
67001         * configure: Regenerate.
67002
67003 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
67004
67005         * math/w_ilogb.c: Include <limits.h>.
67006         * math/w_ilogbl.c: Likewise.
67007
67008 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
67009
67010         * manual/lang.texi (__va_copy): Document primarily as ISO C99
67011         va_copy.  Document allowing for unavailable va_copy only as
67012         pre-C99 compatibility.
67013         * manual/string.texi (Copying and Concatenation): Use va_copy
67014         instead of __va_copy in concat example.
67015
67016 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
67017
67018         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
67019         (__sendto): Use create_address_port.  Initialize APORT and deallocate
67020         it if not null.
67021
67022         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
67023         with O_NOLINK passed to __file_name_lookup.
67024
67025         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
67026         with O_NOLINK passed to __file_name_lookup.
67027
67028         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
67029         negative N or less than NGIDS.
67030
67031         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
67032         type to string_t.  Set ERANGE as errno and return it if NAME is not big
67033         enough.  Use memcpy instead of strncpy.
67034
67035 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
67036
67037         * elf/Makefile (check-data): Remove.
67038         (localplt.data): New vpath directive.
67039         ($(objpfx)check-localplt.out): Use localplt.data from vpath
67040         instead of $(check-data).
67041         * scripts/data/localplt-generic.data: Move to ...
67042         * sysdeps/generic/localplt.data: ... here.
67043         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
67044         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
67045         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
67046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
67047         ... here.
67048         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
67049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
67050         ... here.
67051         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
67052         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
67053         ... here.
67054         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
67055         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
67056         ... here.
67057         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
67058         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
67059         ... here.
67060         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
67061         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
67062         ... here.
67063
67064 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67065
67066         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
67067         PPC32 and PPC64 files.
67068         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
67069         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
67070
67071 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67072
67073         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
67074         __makecontext_ret to ...
67075         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
67076         ... here and call exit if uc_link is NULL.  New file.
67077         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
67078         __makecontext_ret.S.
67079         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
67080         __makecontext_ret to ...
67081         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
67082         ... here and call exit if uc_link is NULL.  New file.
67083         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
67084         __makecontext_ret.S.
67085
67086 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67087
67088         * elf/elf.h (R_390_IRELATIVE): New definition.
67089         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
67090         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
67091         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
67092         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
67093         (elf_machine_lazy_rel): Likewise.
67094         * sysdeps/s390/dl-irel.h: New file.
67095         * sysdeps/s390/s390-64/memcpy.S: New asm code.
67096         * sysdeps/s390/s390-64/memset.S: New asm code.
67097         * sysdeps/s390/s390-64/memcmp.S: New asm code.
67098         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
67099         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
67100         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
67101         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
67102         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
67103         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
67104         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
67105         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
67106         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
67107         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
67108         * sysdeps/s390/s390-32/memcpy.S: New asm code.
67109         * sysdeps/s390/s390-32/memset.S: New asm code.
67110         * sysdeps/s390/s390-32/memcmp.S: New asm code.
67111
67112 2012-07-17  Marek Polacek  <polacek@redhat.com>
67113
67114         [BZ #14349]
67115         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
67116         * sysdeps/s390/s390-64/configure.in: Likewise.
67117         * sysdeps/sparc/configure.in: Likewise.
67118         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
67119         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
67120         * sysdeps/i386/configure.in: Likewise.
67121         * sysdeps/x86_64/configure.in: Likewise.
67122         * sysdeps/sh/configure.in: Likewise.
67123         * sysdeps/s390/s390-32/configure: Regenerated.
67124         * sysdeps/s390/s390-64/configure: Likewise.
67125         * sysdeps/x86_64/configure: Likewise.
67126         * sysdeps/sh/configure: Likewise.
67127         * sysdeps/powerpc/powerpc64/configure: Likewise.
67128         * sysdeps/powerpc/powerpc32/configure: Likewise.
67129         * sysdeps/sparc/configure: Likwise.
67130         * sysdeps/i386/configure: Likewise.
67131
67132         * elf/dl-open.c: Comment fixes.
67133
67134 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
67135
67136         * Makefile [CXX] (check-data): Remove.
67137         [CXX] (c++-types.data): New vpath directive.
67138         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
67139         vpath.  Do not allow for C++ type data being missing.
67140         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
67141         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
67142         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
67143         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
67144         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
67145         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
67146         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
67147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
67148         ... here.
67149         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
67150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
67151         ... here.
67152         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
67153         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
67154         ... here.
67155         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
67156         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
67157         ... here.
67158         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
67159         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
67160         ... here.
67161         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
67162         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
67163         ... here.
67164         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
67165         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
67166         ... here.
67167         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
67168         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
67169
67170         * elf/tls-macros.h (TLS_LE): Move architecture-specific
67171         definitions to architecture-specific files.
67172         (TLS_IE): Likewise.
67173         (TLS_LD): Likewise.
67174         (TLS_GD): Likewise.
67175         * sysdeps/i386/tls-macros.h: New file.
67176         * sysdeps/powerpc/tls-macros.h: Likewise.
67177         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
67178         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
67179         * sysdeps/sh/tls-macros.h: Likewise.
67180         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
67181         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
67182         * sysdeps/x86_64/tls-macros.h: Likewise.
67183
67184 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
67185
67186         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
67187         zero value for regular exit case.
67188
67189         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
67190         (__start_context): Preserve zero value for regular exit case.
67191
67192 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
67193             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67194
67195         * manual/setjmp.texi (setcontext): Clarify normal process
67196         termination when uc_link is the null pointer.
67197         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
67198         exit call.
67199
67200 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
67201
67202         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
67203         preprocessor.  Test for each exception mask separately.
67204
67205 2012-07-16  Andreas Jaeger  <aj@suse.de>
67206
67207         * po/ru.po: Update from translation team.
67208
67209 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
67210
67211         * conform/data/string.h-data (NULL): Use macro-constant.  Require
67212         equal to 0.
67213         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
67214         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
67215         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
67216         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
67217         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67218
67219 2012-07-13  Andreas Jaeger  <aj@suse.de>
67220
67221         * po/fr.po: Update from translation team.
67222
67223 2012-07-12  Marek Polacek  <polacek@redhat.com>
67224
67225         [BZ #14173]
67226         * math/libm-test.inc (yn_test): Add test for BZ #14173.
67227         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
67228         loop condition.
67229
67230 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
67231
67232         [BZ #13717]
67233         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
67234         Change to 2.4.1 where previously 2.4.0.
67235         * sysdeps/unix/sysv/linux/configure: Regenerated.
67236         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
67237         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
67238         version.
67239         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
67240         (__ASSUME_AT_CLKTCK): Remove.
67241         (__ASSUME_AT_PAGESIZE): Likewise.
67242         (__ASSUME_AT_XID): Likewise.
67243         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
67244         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
67245         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
67246         unconditionally.
67247         (HAVE_AUX_PAGESIZE): Likewise.
67248         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
67249         [__ASSUME_AT_CLKTCK]: Make code unconditional.
67250         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
67251
67252 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
67253
67254         [BZ #14307]
67255         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
67256         the temporary buffer used to invoke __gethostbyname2_r,
67257         __gethostbyaddr_r and gethostbyname4_r to make room for struct
67258         host_data / struct gaih_addrtuple.
67259         * resolv/nss_dns/dns-host.c (global scope): Move definition of
67260         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
67261         header file nss/nsswitch.h.
67262         * nss/nsswitch.h (global scope): Add definition of implementation
67263         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
67264         resolv/nss_dns/dns-host.c).
67265
67266 2012-07-11  Andreas Jaeger  <aj@suse.de>
67267
67268         * po/fr.po: Update from translation team.
67269
67270         * po/sv.po: Update from translation team
67271         * po/fr.po: Another update from translation team.
67272
67273 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67274
67275         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
67276         for subnormals or multiply small sinh result by itself.
67277         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67278         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67279
67280 2012-07-11  David S. Miller  <davem@davemloft.net>
67281
67282         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67283
67284 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
67285
67286         [BZ #14347]
67287         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
67288         (INTERNAL_MARK): Shift it here.
67289
67290 2012-07-10  Marek Polacek  <polacek@redhat.com>
67291
67292         [BZ #14151]
67293         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
67294         libc_cv_asm_global_directive with .globl.
67295         * configure: Regenerated.
67296         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
67297         with .globl.
67298         * sysdeps/i386/configure: Regenerated.
67299         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
67300         with .globl.
67301         * sysdeps/x86_64/configure: Regenerated.
67302         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
67303         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
67304         * elf/tst-unique2mod2.c: Likewise.
67305         * elf/tst-unique2mod1.c: Likewise.
67306         * elf/tst-unique1mod2.c: Likewise.
67307         * elf/tst-unique1mod1.c: Likewise.
67308         * sysdeps/s390/s390-32/sysdep.h: Likewise.
67309         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
67310         * sysdeps/s390/s390-64/sysdep.h: Likewise.
67311         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
67312         * sysdeps/mach/sysdep.h: Likewise.
67313         * sysdeps/i386/sysdep.h: Likewise.
67314         * sysdeps/i386/i386-mcount.S: Likewise.
67315         * sysdeps/x86_64/_mcount.S: Likewise.
67316         * sysdeps/x86_64/sysdep.h: Likewise.
67317         * sysdeps/sh/_mcount.S: Likewise.
67318         * sysdeps/sh/sysdep.h: Likewise.
67319         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
67320         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
67321         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
67322         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
67323         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
67324         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
67325         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
67326         * locale/localeinfo.h: Likewise.
67327         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
67328         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
67329
67330 2012-07-09  Roland McGrath  <roland@hack.frob.com>
67331
67332         [BZ #14336]
67333         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
67334         system".
67335         * manual/message.texi (The Uniforum approach): Likewise.
67336         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
67337         (glibc iconv Implementation): Likewise.
67338
67339 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
67340
67341         [BZ #14337]
67342         * math/s_clog.c (__clog): Avoid scaling a value down where that
67343         could result in underflow.
67344         * math/s_clog10.c (__clog10): Likewise.
67345         * math/s_clog10f.c (__clog10f): Likewise.
67346         * math/s_clog10l.c (__clog10l): Likewise.
67347         * math/s_clogf.c (__clogf): Likewise.
67348         * math/s_clogl.c (__clogl): Likewise.
67349         * math/libm-test.inc (clog_test): Add more tests.
67350         (clog10_test): Likewise.
67351         * sysdeps/i386/fpu/libm-test-ulps: Update.
67352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67353
67354 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
67355
67356         [BZ #14283]
67357         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
67358         by 7 not 8 to examine high bit of fractional part.
67359
67360         [BZ #14042]
67361         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
67362         for call to __mcount_internal.
67363         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
67364         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
67365         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
67366
67367 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
67368
67369         [BZ #14154]
67370         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
67371         approximation for values within 0x1p-13f of an odd multiple of
67372         pi/4.
67373         * math/libm-test.inc (tan_test): Do not allow spurious underflow
67374         exception.  Add more tests.
67375         * sysdeps/i386/fpu/libm-test-ulps: Update.
67376
67377         [BZ #6778]
67378         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
67379         inputs and return -1 for them.  Do not check for +Inf in case not
67380         reachable for +Inf.
67381         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
67382         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
67383         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
67384         and return -1 for them.  Do not check for +Inf in case not
67385         reachable for +Inf.
67386         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
67387         define.
67388         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
67389         and return -1 for them.  Do not check for +Inf in case not
67390         reachable for +Inf.
67391         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
67392         spurious underflow.
67393         * sysdeps/i386/fpu/libm-test-ulps: Update.
67394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67395
67396 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
67397
67398         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
67399
67400 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
67401
67402         [BZ #14157]
67403         [BZ #14331]
67404         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
67405         could result in spurious underflow.  Scale down values above
67406         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
67407         * math/s_csqrtf.c (__csqrtf): Likewise.
67408         * math/s_csqrtl.c (__csqrtl): Likewise.
67409         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
67410         spurious underflow.
67411         * sysdeps/i386/fpu/libm-test-ulps: Update.
67412         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67413
67414 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
67415
67416         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
67417         xopen-msg.sed.
67418         * catgets/xopen-msg.awk: New file.
67419         * catgets/xopen-msg.sed: Removed.
67420
67421         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
67422         po2text.sed.
67423         * intl/po2test.awk: New file.
67424         * intl/po2test.sed: Removed.
67425
67426 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
67427
67428         [BZ #14328]
67429         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
67430         or multiply small sinh result by itself.
67431         * math/s_ctanf.c (__ctanf): Likewise.
67432         * math/s_ctanh.c (__ctanh): Likewise.
67433         * math/s_ctanhf.c (__ctanhf): Likewise.
67434         * math/s_ctanhl.c (__ctanhl): Likewise.
67435         * math/s_ctanl.c (__ctanl): Likewise.
67436         * math/libm-test.inc (ctan_test_tonearest): New function.
67437         (ctan_test_towardzero): Likewise.
67438         (ctan_test_downward): Likewise.
67439         (ctan_test_upward): Likewise.
67440         (ctanh_test_tonearest): Likewise.
67441         (ctanh_test_towardzero): Likewise.
67442         (ctanh_test_downward): Likewise.
67443         (ctanh_test_upward): Likewise.
67444         (main): Call these new functions.
67445         * sysdeps/i386/fpu/libm-test-ulps: Update.
67446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67447
67448 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
67449
67450         * .gitignore: Delete /ports entry.
67451
67452 2012-07-03  Andreas Jaeger  <aj@suse.de>
67453
67454         * po/bg.po: Update from translation team.
67455         * po/cs.po: Likewise.
67456         * po/de.po: Likewise.
67457         * po/hr.po: Likewise.
67458         * po/nl.pl: Likewise.
67459         * po/pl.po: Likewise.
67460         * po/vi.po: Likewise.
67461
67462 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
67463
67464         * Makeconfig [!+link] (+link-before-libc): New variable.
67465         [!+link] (+link-after-libc): Likewise.
67466         [!+link] (+link-tests): Likewise.
67467         [!+link] (+link): Define in terms of $(+link-before-libc) and
67468         $(+link-after-libc).
67469         [!+link-static] (+link-static-before-libc): New variable.
67470         [!+link-static] (+link-static-after-libc): Likewise.
67471         [!+link-static] (+link-static-tests): Likewise.
67472         [!+link-static] (+link-static): Define in terms of
67473         $(+link-static-before-libc) and $(+link-static-after-libc).
67474         [build-shared] (link-libc-before-gnulib): New variable.
67475         [build-shared] (link-libc-tests): Likewise.
67476         [build-shared] (link-libc): Define in terms of
67477         $(link-libc-before-gnulib).
67478         [!build-shared] (link-libc-tests): New variable.
67479         (link-libc-static-tests): New variable.
67480         [!gnulib] (gnulib-arch): New variable.
67481         [!gnulib] (gnulib-tests): Likewise.
67482         [!gnulib] (static-gnulib-arch): Likewise.
67483         [!gnulib] (static-gnulib-tests): Likewise.
67484         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
67485         Define with "=" instead of ":=".
67486         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
67487         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
67488         * Rules (binaries-all-notests): New variable.
67489         (binaries-all-tests): Likewise.
67490         (binaries-static-notests): Likewise.
67491         (binaries-static-tests): Likewise.
67492         (binaries-all): Define using $(binaries-all-notests) and
67493         $(binaries-all-tests).
67494         (binaries-static): Define using $(binaries-static-notests) and
67495         $(binaries-static-tests).
67496         (binaries-shared-tests): New variable.
67497         (binaries-shared-notests): Likewise.
67498         (binaries-shared): Remove variable.
67499         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
67500         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
67501         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
67502         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
67503         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
67504         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
67505         * elf/Makefile (sln-modules): New variable.
67506         (extra-objs): Add $(sln-modules:=.o).
67507         (ldconfig-modules): Add static-stubs.
67508         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
67509         * elf/static-stubs.c: New file.
67510
67511         [BZ #14283]
67512         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
67513         by 7 not 8 to examine high bit of fractional part.  Use volatile
67514         variables when splitting into final array of floats if
67515         __FLT_EVAL_METHOD__ != 0.
67516         * math/libm-test.inc (cos_test): Add another test.
67517         (sin_test): Likewise.
67518         * sysdeps/i386/fpu/libm-test-ulps: Update.
67519
67520         [BZ #14273]
67521         * math/libm-test.inc (cosh_test): Add more tests.
67522
67523         * version.h (RELEASE): Set to "development".
67524         (VERSION): Set to "2.16.90".
67525
67526 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
67527
67528         * NEWS: Update copyright. Remove last-updated date.
67529         Mention math library bug fixes and timezone data changes.
67530         * README: Mention GNU/Hurd, x32, and HPPA support status.
67531
67532 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
67533
67534         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
67535
67536 2012-06-27  Andreas Jaeger  <aj@suse.de>
67537
67538         * manual/contrib.texi (Contributors): Add Samuel Thibault.
67539
67540 2012-06-25  Andreas Jaeger  <aj@suse.de>
67541
67542         * sysdeps/s390/fpu/libm-test-ulps: Update.
67543
67544 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
67545             Thomas Schwinge  <thomas@codesourcery.com>
67546
67547         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
67548         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
67549         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
67550         fanotify_mark.
67551
67552 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
67553
67554         * sysdeps/mach/start.c: Remove file.
67555         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
67556         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
67557         * sysdeps/sh/init-first.c: Likewise.
67558
67559         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
67560         registers for frame unwinding purposes, add CFI directives.
67561         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
67562         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
67563         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
67564         Likewise.
67565
67566         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
67567         __fortify_fail returning.
67568         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
67569
67570         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
67571         sysdeps/sh/____longjmp_chk.S.
67572         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
67573         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
67574         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
67575         (gen-as-const-headers): Append sigaltstack-offsets.sym.
67576
67577         * sysdeps/sh/abort-instr.h: New file.
67578         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
67579         process in case exit returns.
67580
67581         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
67582         initialize the GOT register before use.
67583
67584         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
67585         calculation of ARGC > 4.
67586
67587         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
67588         meaningful names to some local labels.
67589
67590 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
67591             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67592
67593         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
67594         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
67595         (__arch_compare_and_exchange_val_16_acq): Likewise.
67596         (__arch_compare_and_exchange_val_32_acq): Likewise.
67597         (atomic_exchange_and_add): Fix gUSA sequence.
67598         (atomic_add): Likewise.
67599         (atomic_add_negative): Likewise.
67600         (atomic_add_zero): Likewise.
67601         (atomic_bit_test_set): Likewise.
67602
67603 2012-06-22  Andreas Schwab  <schwab@redhat.com>
67604
67605         [BZ #13579]
67606         * include/link.h (struct link_map): Add l_free_initfini.
67607         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
67608         l_initfini.
67609         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
67610         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
67611         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
67612         set.
67613
67614 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
67615
67616         * configure.in: Use AC_LANG_SOURCE.
67617         * configure: Regenerate.
67618
67619 2012-06-22  Roland McGrath  <roland@hack.frob.com>
67620
67621         * configure.in (libc_cv_localstatedir): New substituted variable.
67622         * configure: Regenerated.
67623         * config.make.in (localstatedir): New variable, substituted from
67624         libc_cv_localstatedir.
67625         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
67626         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
67627         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
67628         * sysdeps/gnu/configure: Regenerated.
67629
67630 2012-06-21  Jeff Law  <law@redhat.com>
67631
67632         [BZ #14277]
67633         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
67634         free.  Simplify list management for _LIBC case.
67635
67636 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
67637
67638         [BZ #14273]
67639         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
67640         Clear sign bit of 64-bit integer value before comparing against
67641         overflow value.
67642
67643         * sysdeps/mach/configure: Regenerated.
67644
67645 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
67646
67647         [BZ #14278]
67648         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
67649
67650 2012-06-21  Jeff Law  <law@redhat.com>
67651
67652         [BZ #13882]
67653         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
67654         uint16_t for elements in the "seen" array to avoid char overflows.
67655         * elf/dl-fini.c (_dl_sort_fini): Likewise.
67656         * elf/dl-open.c (dl_open_worker): Likewise.
67657
67658 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
67659
67660         * scripts/list-sources.sh: Scan PORTS for translations.
67661         * po/libc.pot: Regenerated.
67662
67663 2012-06-21  Andreas Jaeger  <aj@suse.de>
67664
67665         [BZ #12194]
67666         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
67667         warning.
67668         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
67669         * bits/byteswap-16.h (__bswap_16): Likewise.
67670         * bits/byteswap.h (__bswap_constant_16): Likewise.
67671
67672 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
67673
67674         [BZ #14117]
67675         * sysdeps/i386/fpu_control.h: Removed.
67676         * sysdeps/x86_64/fpu_control.h: Moved to ...
67677         * sysdeps/x86/fpu_control.h: Here.
67678
67679         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
67680         (_FPU_SETCW): Likewise.
67681
67682 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
67683
67684         [BZ #14117]
67685         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
67686         * sysdeps/x86/fpu/bits/mathinline.h: This.
67687         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
67688
67689         [BZ #14050]
67690         [BZ #14117]
67691         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
67692         functions if __x86_64__ is defined.
67693
67694 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
67695
67696         * string/endian.h: Add !__ASSEMBLER__ condition for including
67697         conversion interfaces.
67698
67699 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
67700
67701         [BZ #14241]
67702         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
67703         of ABS(x) in calculating zero to negative powers other than odd
67704         integers.
67705         * math/libm-test.inc (pow_test): Add more tests.
67706
67707 2012-06-15  Andreas Jaeger  <aj@suse.de>
67708
67709         * manual/contrib.texi (Contributors): Update entry of Liubov
67710         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
67711         Machado Filho.
67712
67713 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
67714
67715         * string/string.h: Add __wur to GNU version of strerror_r.
67716
67717 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
67718
67719         [BZ #14229]
67720         * string/Makefile (tests): Add tst-strtok_r.
67721         * string/tst-strtok_r.c: New file.
67722         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
67723         RAX_LP/RDX_LP on SAVE_PTR.
67724
67725 2012-06-14  Roland McGrath  <roland@hack.frob.com>
67726
67727         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
67728
67729 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
67730
67731         * libm_test.inc (csqrt_test): Allow more spurious underflow
67732         exceptions.
67733         (j0_test): Likewise.
67734         (j1_test): Likewise.
67735         (y0_test): Likewise.
67736         (y1_test): Likewise.
67737
67738 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
67739
67740         * po/Makefile (libc.pot): Use UTF-8 charset.
67741
67742 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
67743
67744         [BZ #14210]
67745         Suppress sign-conversion warning from FD_SET.
67746         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
67747         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
67748         not unsigned long int.
67749         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
67750
67751 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
67752
67753         [BZ #14050]
67754         [BZ #14117]
67755         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
67756         __extern_always_inline instead of __extern_inline.
67757         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
67758         (__signbit): Likewise.
67759         (__signbitl): Support C++ namespace.
67760         (lrintf): New inline function.
67761         (lrint): Likewise.
67762         (llrintf): Likewise.
67763         (llrint): Likewise.
67764         (fmaxf): Likewise.
67765         (fmax): Likewise.
67766         (fminf): Likewise.
67767         (fmin): Likewise.
67768         (rint): Likewise.
67769         (rintf): Likewise.
67770         (ceil): Likewise.
67771         (ceilf): Likewise.
67772         (floor): Likewise.
67773         (floorf): Likewise.
67774         (nearbyint): Likewise.
67775         (nearbyintf): Likewise.
67776
67777 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
67778
67779         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
67780         non-default versions.
67781
67782 2012-06-11  Roland McGrath  <roland@hack.frob.com>
67783
67784         [BZ #14218]
67785         * manual/argp.texi (Argp): Reword argp_parse description slightly.
67786
67787 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
67788
67789         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
67790         (FE_UPWARD, FE_DOWNWARD): Don't define.
67791         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
67792         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
67793
67794         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
67795         reading it.
67796         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
67797         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
67798
67799 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67800
67801         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
67802         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
67803         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
67804         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
67805
67806 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
67807
67808         [BZ #14117]
67809         * sysdeps/i386/fpu/bits/fenv.h: Removed.
67810         * sysdeps/i386/fpu/Implies: New file.
67811         * sysdeps/x86_64/fpu/Implies: Likewise.
67812         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
67813         * sysdeps/x86/fpu/bits/fenv.h: This.
67814
67815         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
67816         __SSE_MATH__.
67817
67818 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
67819
67820         [BZ #14134]
67821         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
67822         character 0xffff that matches the last element of the
67823         conversion table.
67824
67825 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67826
67827         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
67828         fmodl commit.
67829
67830 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67831
67832         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
67833         values higher than 25.6283.
67834
67835 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67836
67837         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
67838         subnormal exponent extraction and add some __builtin_expect.
67839         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
67840         Fix for subnormal mantissa calculation.
67841
67842 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
67843
67844         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
67845         cpu2 is -1 and errno is not ENOSYS.
67846
67847 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
67848
67849         [BZ #14117]
67850         * sysdeps/i386/i486/bits/string.h: Renamed to ...
67851         * sysdeps/x86/bits/string.h: This.
67852         * sysdeps/x86_64/bits/string.h: Removed.
67853
67854         * sysdeps/i386/i486/bits/string.h: Define inline functions only
67855         if not compiling for x86-64, but compiling for >= i486.
67856
67857         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
67858         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
67859
67860         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
67861         New macro from Linux kernel 3.4.0.
67862         (FP_XSTATE_MAGIC2): Likewise.
67863         (FP_XSTATE_MAGIC2_SIZE): Likewise.
67864         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
67865         (struct _fpx_sw_bytes): New struct.
67866         (struct _xsave_hdr): Likewise.
67867         (struct _ymmh_state): Likewise.
67868         (struct _xstate): Likewise.
67869
67870         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
67871         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
67872         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
67873         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
67874         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
67875         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
67876
67877         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
67878         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
67879         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
67880         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
67881         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
67882         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
67883
67884 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
67885
67886         [BZ #13743]
67887         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
67888         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
67889         (sysdep_headers): Include sys/platform/ppc.h.
67890         * sysdeps/powerpc/test-gettimebase.c: Test for
67891         __ppc_get_timebase() to catch future ISA opcode/insn changes.
67892         * manual/Makefile (appendices): Include platform.texi.
67893         * manual/contrib.texi (Contributors): Update @node pointers.
67894         * manual/maint.texi (Maintenance): Likewise.
67895         (Platform): New node.
67896         * manual/platform.texi: New file.  Document the new features.
67897
67898 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67899             Jakub Jelinek  <jakub@redhat.com>
67900
67901         [BZ #14188]
67902         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
67903         where __builtin_expect is unavailable.
67904
67905 2012-06-03  David S. Miller  <davem@davemloft.net>
67906
67907         * stdlib/longlong.h: Updated from GCC.
67908
67909 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
67910
67911         [BZ #14042]
67912         * sysdeps/powerpc/powerpc32/mcount.c: New file.
67913         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
67914         __mcount_internal.
67915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
67916         (GLIBC_2.16): Likewise.
67917
67918 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67919
67920         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
67921
67922 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67923
67924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
67925         (default-abi): New variable.
67926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
67927         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
67928         variable.
67929         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
67930         Likewise.
67931         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
67932         Likewise.
67933         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
67934         Likewise.
67935
67936         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
67937         definition.  Document in comment.
67938
67939 2012-06-01  David S. Miller  <davem@davemloft.net>
67940
67941         * stdlib/longlong.h: Updated from GCC.
67942
67943 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67944
67945         [BZ #14117]
67946         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
67947         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
67948         sys/debugreg.h sys/io.h here.
67949         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
67950         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
67951         sys/io.h.
67952         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
67953         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
67954         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
67955         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
67956         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
67957         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
67958
67959         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
67960         Define only if __x86_64__ is defined.
67961
67962 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67963
67964         [BZ #14048]
67965         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
67966         Use int64_t for variable i.
67967         * math/libm-test.inc (fmod_test): Add more tests.
67968
67969         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
67970         z computation is not scheduled after fetestexcept.
67971         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
67972         Use math_force_eval instead of asm to ensure calculation scheduled
67973         before exception test.
67974         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
67975         Ensure a1 + u.d computation is not scheduled after fetestexcept.
67976
67977 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
67978
67979         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
67980         computation is not scheduled after fetestexcept.
67981
67982 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67983
67984         [BZ #14117]
67985         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
67986         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
67987
67988 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67989
67990         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
67991         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67992
67993 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67994
67995         [BZ #14117]
67996         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
67997         <bits/wordsize.h>.
67998         (__WCHAR_MIN): Support __WORDSIZE == 64.
67999         (__WCHAR_MAX): Likewise.
68000
68001         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
68002         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
68003
68004         [BZ #14183]
68005         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
68006         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
68007
68008         [BZ #14117]
68009         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
68010         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
68011
68012         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
68013         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
68014
68015         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
68016         Defined to 1 if __x86_64__ isn't defined.
68017         (_STAT_VER_LINUX_OLD): New.
68018         (st_atime): Remove duplicate.
68019         (st_mtime): Likewise.
68020         (st_ctime): Likewise.
68021
68022 2012-05-31  David S. Miller  <davem@davemloft.net>
68023
68024         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
68025         entries.
68026
68027 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
68028
68029         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
68030         gen-libm-test.pl.
68031
68032         [BZ #14132]
68033         * elf/dl-reloc.c: Include <_itoa.h>.
68034         (_dl_reloc_bad_type): Remove use of INTUSE.
68035         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
68036         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
68037         * stdio-common/psiginfo.c (psiginfo): Likewise.
68038         * stdio-common/psignal.c (psignal): Likewise.
68039         * string/strsignal.c (strsignal): Likewise.
68040         * include/signal.h (_sys_siglist): Declare hidden proto.
68041         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
68042         INTVARDEF with libc_hidden_data_def.
68043         * stdio-common/itoa-udigits.c: Likewise.
68044         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
68045         (_itoa_lower_digits_internal): Remove declaration.
68046         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
68047         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
68048         (_sys_sigabbrev_internal): Remove aliases.
68049         (_sys_siglist): Define hidden alias.
68050
68051 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
68052
68053         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68054         bits/sysctl.h.
68055
68056 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
68057
68058         [BZ #14117]
68059         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
68060         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
68061
68062         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
68063         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
68064         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
68065         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
68066         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
68067         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
68068
68069         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
68070         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
68071         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
68072
68073         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
68074         with __addr.
68075         (insw): Likewise.
68076         (insl): Likewise.
68077         (outsb): Likewise.
68078         (outsw): Likewise.
68079         (outsl): Likewise.
68080
68081         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
68082         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
68083         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
68084
68085         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
68086         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
68087         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
68088         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
68089         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
68090         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
68091
68092         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
68093         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
68094
68095         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
68096         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
68097
68098         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
68099         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
68100         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
68101
68102         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
68103         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
68104         to ...
68105         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
68106
68107         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
68108         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
68109         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
68110
68111         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
68112         for x86-64.
68113         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
68114
68115 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
68116
68117         * math/math.h (M_El): Use two more decimal places.
68118         (M_LOG2El): Likewise.
68119         (M_LOG10El): Likewise.
68120         (M_LN2l): Likewise.
68121         (M_LN10l): Likewise.
68122         (M_PIl): Likewise.
68123         (M_PI_2l): Likewise.
68124         (M_PI_4l): Likewise.
68125         (M_1_PIl): Likewise.
68126         (M_2_PIl): Likewise.
68127         (M_2_SQRTPIl): Likewise.
68128         (M_SQRT2l): Likewise.
68129         (M_SQRT1_2l): Likewise.
68130
68131 2012-05-31  David S. Miller  <davem@davemloft.net>
68132
68133         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
68134         values between float registers.
68135         * sysdeps/sparc/sparc64/memset.S: Likewise.
68136         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
68137
68138 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
68139
68140         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
68141         -D_FORTIFY_SOURCE=1.
68142         (CPPFLAGS-tst-longjmp_chk.c): Define.
68143         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
68144         (CPPFLAGS-tst-longjmp_chk2.c): Define.
68145         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
68146         CFLAGS-tst-wchar-h.c.
68147
68148 2012-05-31  Marek Polacek  <polacek@redhat.com>
68149
68150         [BZ #14132]
68151         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
68152         __endmntent_internal): Remove declaration.
68153         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
68154         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
68155         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
68156
68157 2012-05-30  David S. Miller  <davem@davemloft.net>
68158
68159         * sysdeps/sparc/sparc32/soft-fp/q_util.c
68160         (___Q_simulate_exceptions): Use real FP ops rather than writing
68161         into the %fsr.
68162         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
68163         Likewise.
68164
68165 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
68166
68167         [BZ #14117]
68168         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
68169         * sysdeps/x86/bits/xtitypes.h: This.
68170
68171         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
68172         * sysdeps/x86/bits/wordsize.h: This.
68173
68174         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
68175         * sysdeps/x86/bits/huge_vall.h: This.
68176
68177         * sysdeps/i386/bits/select.h: Removed.
68178         * sysdeps/x86_64/bits/select.h: Renamed to ...
68179         * sysdeps/x86/bits/select.h: This.
68180
68181         * sysdeps/i386/bits/setjmp.h: Removed.
68182         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
68183         * sysdeps/x86/bits/setjmp.h: This.
68184
68185         * sysdeps/i386/bits/mathdef.h: Removed.
68186         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
68187         * sysdeps/x86/bits/mathdef.h: This.
68188
68189 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
68190
68191         [BZ #14132]
68192         * include/sys/socket.h (__connect_internal)
68193         (__libc_sa_len_internal): Remove declaration.
68194         (__connect, __libc_sa_len): Declare hidden_proto.
68195         (SA_LEN): Remove use of INTUSE.
68196         * socket/connect.c: Add libc_hidden_def.
68197         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
68198         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
68199         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
68200         alias.
68201         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
68202         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
68203         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
68204         of adding _internal alias.
68205
68206 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
68207
68208         [BZ #14117]
68209         * sysdeps/i386/bits/link.h: Removed.
68210         * sysdeps/i386/bits/linkmap.h: Likewise.
68211         * sysdeps/x86_64/bits/link.h: Renamed to ...
68212         * sysdeps/x86/bits/link.h: This.
68213         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
68214         * sysdeps/x86/bits/linkmap.h: This.
68215
68216         * sysdeps/i386/bits/endian.h: Removed.
68217         * sysdeps/x86_64/bits/endian.h: Renamed to ...
68218         * sysdeps/x86/bits/endian.h: This.
68219
68220         * sysdeps/i386/bits/byteswap.h: Removed.
68221         * sysdeps/i386/bits/byteswap-16.h: Likewise.
68222         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
68223         * sysdeps/x86/bits/byteswap.h: This.
68224         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
68225         * sysdeps/x86/bits/byteswap-16.h: This.
68226         * sysdeps/i386/Implies: Add x86.
68227         * sysdeps/x86_64/Implies: Likewise.
68228
68229 2012-05-30  David S. Miller  <davem@davemloft.net>
68230
68231         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
68232         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
68233         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
68234         (FP_TRAPPING_EXCEPTIONS): Define.
68235         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
68236         (FP_TRAPPING_EXCEPTIONS): Define.
68237         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
68238         subnormals only when inexact has been signalled or underflow
68239         exceptions are enabled.
68240         (_FP_PACK_CANONICAL): Likewise.
68241
68242 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
68243
68244         [BZ #14183]
68245         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
68246         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
68247
68248 2012-05-30  Richard Henderson  <rth@twiddle.net>
68249
68250         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
68251         with #ifndef NOT_IN_libc.
68252
68253         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
68254         marked to avoid plt entry.
68255
68256 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
68257
68258         [BZ #14112]
68259         * Makeconfig (default-abi): New macro.
68260         (abi-includes): Likewise.
68261         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
68262         $(abi-$(default-abi)-lib-soname) for soname if defined.
68263         ($(common-objpfx)gnu/lib-names.stmp): Generate from
68264         abi-variants.
68265         * Makefile (installed-stubs): Likewise.
68266         * include/stubs-biarch.h: Removed.
68267         * scripts/lib-names.awk: Only handle one library at a time.
68268         * scripts/soversions.awk: Remove WORDSIZE support.
68269         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
68270         entries.
68271         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
68272         Removed.
68273         (syscall-list-default-condition): Likewise.
68274         (syscall-list-default-condition): Likewise.
68275         (syscall-list-includes): Likewise.
68276         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
68277         syscall-list-* with abi-*.  Handle undefined abi-variants.
68278         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
68279         * sysdeps/unix/sysv/linux/i386/Implies: New file.
68280         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
68281         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
68282         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
68283         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
68284         Removed.
68285         (syscall-list-32-options): Likewise.
68286         (syscall-list-32-condition): Likewise.
68287         (syscall-list-64-options): Likewise.
68288         (syscall-list-64-condition): Likewise.
68289         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
68290         macro.
68291         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
68292         Renamed to ...
68293         (abi-*): This.
68294         (abi-64-ld-soname): New macro.
68295         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
68296         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
68297         Renamed to ...
68298         (abi-*): This.
68299         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
68300         * sysdeps/x86_64/x32/shlib-versions: Likewise.
68301
68302 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
68303
68304         * sysdeps/unix/sysv/linux/kernel-features.h
68305         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
68306         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
68307         include <kernel-features.h>.
68308         [!__NR_ftruncate64]: Remove conditional code.
68309         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
68310         [__NR_ftruncate64]: Make code unconditional.
68311         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
68312         * sysdeps/unix/sysv/linux/truncate64.c: Do not
68313         include <kernel-features.h>.
68314         [!__NR_ftruncate64]: Remove conditional code.
68315         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
68316         [__NR_ftruncate64]: Make code unconditional.
68317         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
68318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
68319         include <kernel-features.h>.
68320         [!__NR_ftruncate64]: Remove conditional code.
68321         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
68322         [__NR_ftruncate64]: Make code unconditional.
68323         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
68324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
68325         include <kernel-features.h>.
68326         [!__NR_ftruncate64]: Remove conditional code.
68327         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
68328         [__NR_ftruncate64]: Make code unconditional.
68329         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
68330
68331         * configure.in (libc_cv_fpie): Weaken to a compile test using
68332         LIBC_TRY_CC_OPTION.
68333         * configure: Regenerated.
68334
68335 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68336
68337         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
68338         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
68339         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
68340         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
68341         Refreshed.
68342         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
68343         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
68344         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
68345         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
68346         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
68347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
68348         Refreshed.
68349
68350 2012-05-27  David S. Miller  <davem@davemloft.net>
68351
68352         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
68353         (___Q_zero): New.
68354         (__Q_simulate_exceptions): Return void.  Change to simulate
68355         exceptions by writing into the %fsr.
68356         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
68357         (__Qp_handle_exceptions): Likewise.
68358         (numbers): Delete.
68359         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
68360         __Qp_handle_exceptions.
68361         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
68362         __Qp_handle_exceptions.
68363         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
68364         as unused and give dummy FP_RND_NEAREST initializer.
68365         (FP_INHIBIT_RESULTS): Define.
68366         (___Q_simulate_exceptions): Update declaration.
68367         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
68368         formatting.
68369         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
68370         as unused and give dummy FP_RND_NEAREST initializer.
68371         (__Qp_handle_exceptions): Update declaration.
68372         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
68373         formatting.
68374
68375 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
68376
68377         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
68378         the temporary FPU control word.
68379         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
68380         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
68381         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
68382         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
68383         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
68384         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
68385         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
68386         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
68387         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
68388         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
68389         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
68390
68391 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68392
68393         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
68394         fields.
68395
68396 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
68397
68398         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
68399         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
68400         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
68401         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
68402         Likewise.
68403         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
68404         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
68405         Likewise.
68406
68407 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
68408
68409         * po/h.po: Update from translation team.
68410
68411 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
68412
68413         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
68414
68415         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
68416         handling of denormals.
68417         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
68418         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
68419         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
68420         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
68421         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
68422         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
68423         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
68424         Likewise.
68425
68426 2012-05-26  Marek Polacek  <polacek@redhat.com>
68427
68428         [BZ #14152]
68429         * math/libm-test.inc (fma_test): Don't always expect underflow
68430         exception.
68431
68432 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
68433
68434         [BZ #12416]
68435         * elf/tst-execstack.c: Include stackinfo.h.
68436         (do_test): Adjust test case to ensure that pthread_getattr_np
68437         behaviour remains the same after marking stack executable.
68438
68439 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
68440
68441         * sysdeps/unix/sysv/linux/kernel-features.h
68442         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
68443         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
68444         kernel-features.h.
68445         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
68446         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
68447         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
68448         kernel-features.h.
68449         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
68450         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
68451
68452 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
68453
68454         * configure.in: Define the default includes to being none.
68455         * configure: Regenerated.
68456
68457 2012-05-25  Roland McGrath  <roland@hack.frob.com>
68458
68459         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
68460         * sysdeps/x86_64/setjmp.S: Likewise.
68461         * sysdeps/i386/bsd-setjmp.S: Likewise.
68462         * sysdeps/i386/bsd-_setjmp.S: Likewise.
68463         * sysdeps/i386/setjmp.S: Likewise.
68464         * sysdeps/i386/__longjmp.S: Likewise.
68465         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
68466         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
68467
68468         * include/stap-probe.h: New file.
68469         * configure.in: Handle --enable-systemtap.
68470         * configure: Regenerated.
68471         * config.h.in (USE_STAP_PROBE): New #undef.
68472         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
68473         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
68474         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
68475
68476 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
68477
68478         [BZ #13717]
68479         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
68480         to 2.4.0 where earlier.
68481         * sysdeps/unix/sysv/linux/configure: Regenerated.
68482         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
68483         <kernel-features.h>.
68484         [__ASSUME_32BITUIDS]: Make code unconditional.
68485         [!__ASSUME_32BITUIDS]: Remove conditional code.
68486         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
68487         <kernel-features.h>.
68488         [__ASSUME_32BITUIDS]: Make code unconditional.
68489         [!__ASSUME_32BITUIDS]: Remove conditional code.
68490         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
68491         [__ASSUME_32BITUIDS]: Make code unconditional.
68492         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
68493         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
68494         <kernel-features.h>.
68495         [__ASSUME_32BITUIDS]: Make code unconditional.
68496         [!__ASSUME_32BITUIDS]: Remove conditional code.
68497         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
68498         <kernel-features.h>.
68499         [__ASSUME_32BITUIDS]: Make code unconditional.
68500         [!__ASSUME_32BITUIDS]: Remove conditional code.
68501         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
68502         <kernel-features.h>.
68503         [__ASSUME_32BITUIDS]: Make code unconditional.
68504         [!__ASSUME_32BITUIDS]: Remove conditional code.
68505         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
68506         <kernel-features.h>.
68507         [__ASSUME_32BITUIDS]: Make code unconditional.
68508         [!__ASSUME_32BITUIDS]: Remove conditional code.
68509         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
68510         <kernel-features.h>.
68511         [__ASSUME_32BITUIDS]: Make code unconditional.
68512         [!__ASSUME_32BITUIDS]: Remove conditional code.
68513         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
68514         <kernel-features.h>.
68515         [__ASSUME_32BITUIDS]: Make code unconditional.
68516         [!__ASSUME_32BITUIDS]: Remove conditional code.
68517         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
68518         <kernel-features.h>.
68519         [__ASSUME_32BITUIDS]: Make code unconditional.
68520         [!__ASSUME_32BITUIDS]: Remove conditional code.
68521         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
68522         <kernel-features.h>.
68523         [__ASSUME_32BITUIDS]: Make code unconditional.
68524         [!__ASSUME_32BITUIDS]: Remove conditional code.
68525         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
68526         <kernel-features.h>.
68527         [__ASSUME_32BITUIDS]: Make code unconditional.
68528         [!__ASSUME_32BITUIDS]: Remove conditional code.
68529         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
68530         <kernel-features.h>.
68531         [__ASSUME_32BITUIDS]: Make code unconditional.
68532         [!__ASSUME_32BITUIDS]: Remove conditional code.
68533         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
68534         <kernel-features.h>.
68535         [__NR_setresgid] (__setresgid): Do not declare.
68536         [__ASSUME_32BITUIDS]: Make code unconditional.
68537         [!__ASSUME_32BITUIDS]: Remove conditional code.
68538         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
68539         <kernel-features.h>.
68540         [__NR_setresuid] (__setresuid): Do not declare.
68541         [__ASSUME_32BITUIDS]: Make code unconditional.
68542         [!__ASSUME_32BITUIDS]: Remove conditional code.
68543         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
68544         <kernel-features.h>.
68545         [__ASSUME_32BITUIDS]: Make code unconditional.
68546         [!__ASSUME_32BITUIDS]: Remove conditional code.
68547         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
68548         <kernel-features.h>.
68549         [__ASSUME_32BITUIDS]: Make code unconditional.
68550         [!__ASSUME_32BITUIDS]: Remove conditional code.
68551         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
68552         <kernel-features.h>.
68553         [__ASSUME_32BITUIDS]: Make code unconditional.
68554         [!__ASSUME_32BITUIDS]: Remove conditional code.
68555         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
68556         <kernel-features.h>.
68557         [__ASSUME_32BITUIDS]: Make code unconditional.
68558         [!__ASSUME_32BITUIDS]: Remove conditional code.
68559         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
68560         <kernel-features.h>.
68561         [__ASSUME_32BITUIDS]: Make code unconditional.
68562         [!__ASSUME_32BITUIDS]: Remove conditional code.
68563         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
68564         <kernel-features.h>.
68565         [__ASSUME_32BITUIDS]: Make code unconditional.
68566         [!__ASSUME_32BITUIDS]: Remove conditional code.
68567         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
68568         <kernel-features.h>.
68569         [__ASSUME_32BITUIDS]: Make code unconditional.
68570         [!__ASSUME_32BITUIDS]: Remove conditional code.
68571         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
68572         <kernel-features.h>.
68573         [__ASSUME_32BITUIDS]: Make code unconditional.
68574         [!__ASSUME_32BITUIDS]: Remove conditional code.
68575         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
68576         <kernel-features.h>.
68577         [__ASSUME_32BITUIDS]: Make code unconditional.
68578         [!__ASSUME_32BITUIDS]: Remove conditional code.
68579         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
68580         <kernel-features.h>.
68581         [__ASSUME_32BITUIDS]: Make code unconditional.
68582         [!__ASSUME_32BITUIDS]: Remove conditional code.
68583         * sysdeps/unix/sysv/linux/kernel-features.h
68584         (__ASSUME_SETRESUID_SYSCALL): Remove.
68585         (__ASSUME_SETRESGID_SYSCALL): Likewise.
68586         (__ASSUME_32BITUIDS): Likewise.
68587         (__ASSUME_LDT_WORKS): Likewise.
68588         (__ASSUME_O_DIRECTORY): Likewise.
68589         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
68590         architecture but not kernel version.
68591         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
68592         (__ASSUME_MMAP2_SYSCALL): Likewise.
68593         (__ASSUME_STAT64_SYSCALL): Likewise.
68594         (__ASSUME_IPC64): Likewise.
68595         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
68596         <kernel-features.h>.
68597         [__ASSUME_32BITUIDS]: Make code unconditional.
68598         [!__ASSUME_32BITUIDS]: Remove conditional code.
68599         * sysdeps/unix/sysv/linux/opendir.c: Do not include
68600         <kernel-features.h>.
68601         [__ASSUME_O_DIRECTORY]: Make code unconditional.
68602         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
68603         132096]: Remove conditional code.
68604         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
68605         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
68606         <kernel-features.h>.
68607         [__ASSUME_32BITUIDS]: Make code unconditional.
68608         [!__ASSUME_32BITUIDS]: Remove conditional code.
68609         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
68610         <kernel-features.h>.
68611         [__ASSUME_32BITUIDS]: Make code unconditional.
68612         [!__ASSUME_32BITUIDS]: Remove conditional code.
68613         * sysdeps/unix/sysv/linux/setegid.c: Do not include
68614         <kernel-features.h>.
68615         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
68616         unconditional.
68617         (__setresgid): Do not declare.
68618         [__ASSUME_32BITUIDS]: Make code unconditional.
68619         [!__ASSUME_32BITUIDS]: Remove conditional code.
68620         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
68621         <kernel-features.h>.
68622         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
68623         unconditional.
68624         (__setresuid): Do not declare.
68625         [__ASSUME_32BITUIDS]: Make code unconditional.
68626         [!__ASSUME_32BITUIDS]: Remove conditional code.
68627         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
68628         <kernel-features.h>.
68629         [__ASSUME_32BITUIDS]: Make code unconditional.
68630         [!__ASSUME_32BITUIDS]: Remove conditional code.
68631         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
68632         <kernel-features.h>.
68633         [__ASSUME_32BITUIDS]: Make code unconditional.
68634         [!__ASSUME_32BITUIDS]: Remove conditional code.
68635
68636 2012-05-25  Richard Henderson  <rth@twiddle.net>
68637
68638         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
68639         dl_hwcap to ifunc resolver.
68640         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
68641         elf_ifunc_invoke.
68642         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
68643         dl_hwcap to ifunc resolver.
68644         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
68645
68646 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
68647
68648         [BZ #14153]
68649         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
68650         for |x| <= 2**-26, not 2**-57.
68651         * math/libm-test.inc (acos_test): Do not allow spurious underflow
68652         exception.
68653
68654 2012-05-24  Jeff Law  <law@redhat.com>
68655
68656         * stdio-common/Makefile (tests): Add bug25.
68657         * stdio-common/bug25.c: New test.
68658
68659 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
68660
68661         [BZ #13576]
68662         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
68663         multiple of MALLOC_ALIGNMENT in size.
68664         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
68665
68666 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
68667
68668         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
68669         Require >= 256.
68670         (FILENAME_MAX): Use macro-int-constant.
68671         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
68672         (_IOFBF): Use macro-int-constant.
68673         (_IOLBF): Likewise.
68674         (_IONBF): Likewise.
68675         (SEEK_CUR): Likewise.
68676         (SEEK_END): Likewise.
68677         (SEEK_SET): Likewise.
68678         (TMP_MAX): Likewise.
68679         (EOF): Use macro-int-constant.  Require < 0.
68680         (NULL): Use macro-constant.  Require == 0.
68681         (stdin): Require type to be FILE *.
68682         (stdout): Likewise.
68683         (stderr): Likewise.
68684         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
68685         macro-int-constant.
68686         (EXIT_SUCCESS): Likewise.
68687         (NULL): Use macro-constant.  Require == 0.
68688         (RAND_MAX): Use macro-int-constant.
68689         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
68690         [C99-based standards] (strtof): Require function.
68691         [C99-based standards] (strtold): Likewise.
68692         [C99-based standards] (strtoll): Likewise.
68693         [C99-based standards] (strtoull): Likewise.
68694         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
68695         [ISO || ISO99 || ISO11] (limits.h): Likewise.
68696         [ISO || ISO99 || ISO11] (math.h): Likewise.
68697         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
68698         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
68699         [ISO || ISO99 || ISO11] (*_t): Do not allow.
68700
68701 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
68702
68703         [BZ #14132]
68704         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
68705         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
68706         * intl/dgettext.c (DCGETTEXT): Likewise.
68707         * intl/gettext.c (DCGETTEXT): Likewise.
68708         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
68709         * posix/regex_internal.h (gettext): Likewise.
68710         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
68711         Remove declaration.
68712         * include/argz.h (__argz_count_internal)
68713         (__argz_stringify_internal): Remove declaration.
68714         (__argz_count, __argz_stringify): Declare hidden proto.
68715         * intl/dcgettext.c: Remove use of INTDEF.
68716         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
68717         * string/argz-stringify.c: Likewise.
68718         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
68719         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
68720         Declare hidden proto.
68721         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
68722         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
68723         Declare hidden proto.
68724         * include/stdio.h (__asprintf_internal): Don't declare.
68725         (__asprintf): Don't define as macro.  Declare hidden proto.
68726         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
68727         (__fsetlocking): Declare hidden proto.
68728         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
68729         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
68730         hidden proto.
68731         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
68732         (_IO_setlinebuf): Remove use of INTUSE.
68733         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
68734         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
68735         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
68736         Remove declaration.
68737         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
68738         (_IO_do_flush): Remove use of INTUSE.
68739         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
68740         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
68741         (_IO_adjust_column, _IO_least_wmarker)
68742         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
68743         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
68744         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
68745         (_IO_default_doallocate, _IO_wdefault_doallocate)
68746         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
68747         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
68748         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
68749         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
68750         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
68751         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
68752         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
68753         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
68754         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
68755         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
68756         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
68757         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
68758         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
68759         proto.
68760         (_IO_flush_all_internal, _IO_adjust_column_internal)
68761         (_IO_default_uflow_internal, _IO_default_finish_internal)
68762         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
68763         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
68764         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
68765         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
68766         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
68767         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
68768         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
68769         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
68770         (_IO_file_close_internal, _IO_file_close_it_internal)
68771         (_IO_file_underflow_internal, _IO_file_overflow_internal)
68772         (_IO_file_init_internal, _IO_file_attach_internal)
68773         (_IO_file_fopen_internal, _IO_file_read_internal)
68774         (_IO_file_sync_internal, _IO_file_seek_internal)
68775         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
68776         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
68777         (_IO_str_underflow_internal, _IO_str_overflow_internal)
68778         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
68779         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
68780         (_IO_list_all_internal, _IO_link_in_internal)
68781         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
68782         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
68783         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
68784         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
68785         (_IO_do_write_internal, _IO_padn_internal)
68786         (_IO_getline_info_internal, _IO_getline_internal)
68787         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
68788         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
68789         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
68790         (_IO_vfscanf_internal, _IO_vfprintf_internal)
68791         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
68792         (_IO_init_internal, _IO_un_link_internal): Don't declare.
68793         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
68794         with libc_hidden_ver, remove use of INTUSE.
68795         * libio/genops.c: Likewise.
68796         * libio/freopen.c: Likewise.
68797         * libio/freopen64.c: Likewise.
68798         * libio/iofclose.c: Likewise.
68799         * libio/iofdopen.c: Likewise.
68800         * libio/iofflush.c: Likewise.
68801         * libio/iofflush_u.c: Likewise.
68802         * libio/iofgets.c: Likewise.
68803         * libio/iofgets_u.c: Likewise.
68804         * libio/iofopen.c: Likewise.
68805         * libio/iofopncook.c: Likewise.
68806         * libio/iofread.c: Likewise.
68807         * libio/iofread_u.c: Likewise.
68808         * libio/ioftell.c: Likewise.
68809         * libio/iofwrite.c: Likewise.
68810         * libio/iogetline.c: Likewise.
68811         * libio/iogets.c: Likewise.
68812         * libio/iogetwline.c: Likewise.
68813         * libio/iopadn.c: Likewise.
68814         * libio/iopopen.c: Likewise.
68815         * libio/ioseekoff.c: Likewise.
68816         * libio/ioseekpos.c: Likewise.
68817         * libio/iosetbuffer.c: Likewise.
68818         * libio/iosetvbuf.c: Likewise.
68819         * libio/ioungetc.c: Likewise.
68820         * libio/ioungetwc.c: Likewise.
68821         * libio/iovdprintf.c: Likewise.
68822         * libio/iovsprintf.c: Likewise.
68823         * libio/iovsscanf.c: Likewise.
68824         * libio/memstream.c: Likewise.
68825         * libio/obprintf.c: Likewise.
68826         * libio/oldfileops.c: Likewise.
68827         * libio/oldiofclose.c: Likewise.
68828         * libio/oldiofdopen.c: Likewise.
68829         * libio/oldiofopen.c: Likewise.
68830         * libio/oldiopopen.c: Likewise.
68831         * libio/oldstdfiles.c: Likewise.
68832         * libio/putc.c: Likewise.
68833         * libio/setbuf.c: Likewise.
68834         * libio/setlinebuf.c: Likewise.
68835         * libio/stdfiles.c: Likewise.
68836         * libio/strops.c: Likewise.
68837         * libio/vasprintf.c: Likewise.
68838         * libio/vscanf.c: Likewise.
68839         * libio/vsnprintf.c: Likewise.
68840         * libio/vswprintf.c: Likewise.
68841         * libio/wfiledoalloc.c: Likewise.
68842         * libio/wfileops.c: Likewise.
68843         * libio/wgenops.c: Likewise.
68844         * libio/wmemstream.c: Likewise.
68845         * libio/wstrops.c: Likewise.
68846         * libio/__fpurge.c: Likewise.
68847         * libio/__fsetlocking.c: Likewise.
68848         * assert/assert.c: Likewise.
68849         * debug/fgets_chk.c: Likewise.
68850         * debug/fgets_u_chk.c: Likewise.
68851         * debug/fread_chk.c: Likewise.
68852         * debug/fread_u_chk.c: Likewise.
68853         * debug/gets_chk.c: Likewise.
68854         * debug/obprintf_chk.c: Likewise.
68855         * debug/vasprintf_chk.c: Likewise.
68856         * debug/vdprintf_chk.c: Likewise.
68857         * debug/vsnprintf_chk.c: Likewise.
68858         * debug/vsprintf_chk.c: Likewise.
68859         * malloc/mtrace.c: Likewise.
68860         * misc/error.c: Likewise.
68861         * misc/syslog.c: Likewise.
68862         * stdio-common/asprintf.c: Likewise.
68863         * stdio-common/fxprintf.c: Likewise.
68864         * stdio-common/getw.c: Likewise.
68865         * stdio-common/isoc99_fscanf.c: Likewise.
68866         * stdio-common/isoc99_scanf.c: Likewise.
68867         * stdio-common/isoc99_vfscanf.c: Likewise.
68868         * stdio-common/isoc99_vscanf.c: Likewise.
68869         * stdio-common/isoc99_vsscanf.c: Likewise.
68870         * stdio-common/printf-prs.c: Likewise.
68871         * stdio-common/printf_fp.c: Likewise.
68872         * stdio-common/printf_fphex.c: Likewise.
68873         * stdio-common/printf_size.c: Likewise.
68874         * stdio-common/putw.c: Likewise.
68875         * stdio-common/scanf.c: Likewise.
68876         * stdio-common/sprintf.c: Likewise.
68877         * stdio-common/tmpfile.c: Likewise.
68878         * stdio-common/vfprintf.c: Likewise.
68879         * stdio-common/vfscanf.c: Likewise.
68880         * stdlib/strfmon_l.c: Likewise.
68881         * sunrpc/openchild.c: Likewise.
68882         * sunrpc/xdr_stdio.c: Likewise.
68883         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
68884         * sysdeps/mach/hurd/tmpfile.c: Likewise.
68885
68886 2012-05-24  Roland McGrath  <roland@hack.frob.com>
68887
68888         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68889
68890         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
68891         in the third column, to generate for the shared library an IFUNC
68892         that uses _dl_vdso_vsym.
68893         * Makerules (COMPILE.c, compile-stdin.c): New variables.
68894         * Makeconfig (object-suffixes-noshared): New variable.
68895
68896         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
68897         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
68898         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
68899         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
68900
68901         [BZ #14132]
68902         * include/sys/time.h (__gettimeofday): Remove macro.
68903         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
68904         * time/gettimeofday.c (__gettimeofday): Remove #undef.
68905         Remove INTDEF.
68906         (__gettimeofday): Add libc_hidden_def.
68907         (gettimeofday): Add libc_hidden_weak.
68908         * sysdeps/mach/gettimeofday.c: Likewise.
68909         * sysdeps/posix/gettimeofday.c: Likewise.
68910         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
68911         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
68912         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
68913         (__gettimeofday_internal): Remove strong_alias.
68914         (__gettimeofday): Add libc_hidden_def.
68915         (gettimeofday): Add libc_hidden_weak.
68916         * sysdeps/unix/syscalls.list (gettimeofday):
68917         Remove __gettimeofday_internal alias.
68918
68919 2012-05-24  Daniel Jacobowitz  <drow@false.org>
68920             H.J. Lu  <hongjiu.lu@intel.com>
68921
68922         [BZ #12495]
68923         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
68924         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
68925         (largebin_index_32_big): New.
68926         (largebin_index): Use it for 16-byte alignment.
68927         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
68928         correction with front_misalign.
68929
68930 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
68931
68932         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
68933         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
68934         Likewise.
68935         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
68936         Likewise.
68937         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
68938         Likewise.
68939         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
68940         Likewise.
68941         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
68942         Likewise.
68943         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
68944         Likewise.
68945         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
68946         Likewise.
68947         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
68948         Likewise.
68949         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
68950         Likewise.
68951         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
68952         Likewise.
68953         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
68954         Likewise.
68955         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
68956         Likewise.
68957
68958         * scripts/data/c++-types-x32-linux-gnu.data: New file.
68959         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
68960
68961 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
68962
68963         [BZ #10846]
68964         [BZ #14036]
68965         * math/libm-test.inc (exp_test): Add test from bug 14036.
68966         (pow_test): Add test from bug 10846.
68967
68968         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
68969         and other flags.
68970         (special_function): Do not include flags in test name.
68971         (parse_args): Likewise.
68972         * sysdeps/i386/fpu/libm-test-ulps: Update.
68973         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68974         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
68975         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
68976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68977
68978         * math/gen-libm-test.pl (%beautify): Add entries for underflow
68979         exceptions.
68980         * math/libm-test.inc ("Philosophy"): Update comment about
68981         exception testing.
68982         (UNDERFLOW_EXCEPTION): New macro.
68983         (UNDERFLOW_EXCEPTION_OK): Likewise.
68984         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
68985         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
68986         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
68987         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
68988         (INVALID_EXCEPTION_OK): Update value.
68989         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
68990         (OVERFLOW_EXCEPTION_OK): Likewise.
68991         (IGNORE_ZERO_INF_SIGN): Likewise.
68992         (test_exceptions): Handle underflow exceptions.
68993         (acos_test): Update for underflow exception expectations.
68994         (cexp_test): Likewise.
68995         (clog_test): Likewise.
68996         (clog10_test): Likewise.
68997         (csqrt_test): Likewise.
68998         (ctan_test): Likewise.
68999         (ctanh_test): Likewise.
69000         (exp_test): Likewise.
69001         (exp10_test): Likewise.
69002         (exp2_test): Likewise.
69003         (expm1_test): Likewise.
69004         (fma_test): Likewise.
69005         (j0_test): Likewise.
69006         (jn_test): Likewise.
69007         (nexttoward_test): Likewise.
69008         (pow_test): Likewise.
69009         (scalbn_test): Likewise.
69010         (scalbln_test): Likewise.
69011         (tan_test): Likewise.
69012         (y1_test): Likewise.
69013         * sysdeps/i386/fpu/libm-test-ulps: Update.
69014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69015
69016 2012-05-23  David S. Miller  <davem@davemloft.net>
69017
69018         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
69019         (__libc_sigaction): Remove unused local variables.
69020
69021 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
69022
69023         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
69024
69025 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         mktime: avoid signed integer overflow
69028         * time/mktime.c (__mktime_internal): Do not mishandle the case
69029         where diff == INT_MIN.
69030
69031         mktime: simplify computation of average
69032         * time/mktime.c (ranged_convert): Use new time_t_avg function
69033         instead of rolling our own (probably-slower) code.
69034
69035         mktime: do not assume signed right shift propagates sign bit
69036         * time/mktime.c (isdst_differ): New static function.
69037         (__mktime_internal): No need to normalize tm_isdst now.
69038         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
69039         tm_isdst values.
69040
69041         mktime: merge another wrapv change from gnulib
69042         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
69043         from some compilers.
69044
69045         mktime: remove incorrect attempt at unusual arithmetics
69046         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
69047         The code didn't really work on such machines anyway.
69048         (TYPE_MINIMUM): Assume two's complement.
69049         (twos_complement_arithmetic): Verify that long_int and time_t
69050         are two's complement (or unsigned, in the latter case).
69051
69052         mktime: check signed shifts on long_int and time_t, too
69053         * time/mktime.c (SHR): Check that shifts work as desired
69054         on the types long_int and time_t too, as SHR is used on
69055         such types.
69056
69057         mktime: do not assume 'long' is wide enough
69058         * time/mktime.c (verify): Move decl up.
69059         (long_int): New type.
69060         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
69061         to remove assumption in the code that 'long' is wide enough to
69062         store year values.  This assumption is not true on x32 and on
69063         some non-glibc platforms.
69064
69065         mktime: merge wrapv change from gnulib
69066         * time/mktime.c (WRAPV): New macro.
69067         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
69068         (guess_time_tm, __mktime_internal): Do not assume that signed
69069         integer overflow wraps around; modern compilers generate code
69070         where this assumption is no longer valid.
69071
69072 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
69073
69074         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
69075         Replace "jmp L(pseudo_end)" with "ret".
69076         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
69077         Likewise.
69078
69079 2012-05-23  Andreas Jaeger  <aj@suse.de>
69080
69081         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
69082         * sysdeps/unix/sysv/linux/poll.c: Remove file.
69083
69084 2012-05-23  Andreas Jaeger  <aj@suse.de>
69085             Maximilian Attems  <max@stro.at>
69086
69087         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
69088         New macros.
69089
69090 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
69091
69092         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
69093         code so that pseudo_end is just ret and the stack pointer is
69094         correct also for static library in error case.
69095
69096 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
69097
69098         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
69099         move to syscalls.list.
69100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
69101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
69102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
69103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
69104
69105         * manual/install.texi (Running make install): Do not mention Linux
69106         kernel version for which pt_chown is not needed.
69107         (Linux): Do not mention problems with nscd with 2.0 kernels.
69108         * INSTALL: Regenerated.
69109
69110 2012-05-23  Andreas Jaeger  <aj@suse.de>
69111
69112         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
69113         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
69114         macro.
69115         * sysdeps/unix/sysv/linux/s390/bits/mman.h
69116         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
69117         * sysdeps/unix/sysv/linux/sh/bits/mman.h
69118         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
69119         * sysdeps/unix/sysv/linux/i386/bits/mman.h
69120         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
69121         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
69122         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
69123         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
69124         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
69125         * sysdeps/unix/sysv/linux/bits/in.h
69126         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
69127
69128 2012-05-22  Roland McGrath  <roland@hack.frob.com>
69129
69130         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
69131         (PREPARE_VERSION): Just use assert instead, it will be elided
69132         under [NDEBUG] anyway.
69133
69134 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
69135
69136         * sysdeps/unix/sysv/linux/Makefile: Include
69137         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
69138         (sysdep_routines): Remove sysctl.
69139         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
69140         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
69141         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
69142         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
69143         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
69144
69145 2012-05-22  Andreas Jaeger  <aj@suse.de>
69146
69147         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
69148         that pseudo_end is just ret and the stack pointer is correct also
69149         for static library in error case.
69150
69151 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
69152
69153         [BZ #14122]
69154         * nss/nsswitch.c (defconfig_entries): New variable.
69155         (__nss_database_lookup): Don't leak defconfig entries.
69156         (nss_parse_service_list): Don't leak on error paths.
69157         (free_database_entries): New function.
69158         (free_defconfig): New function.
69159         (free_mem): Move common code to free_database_entries.
69160
69161 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
69162
69163         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
69164         Add arch_prctl.
69165         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
69166
69167         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
69168         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
69169         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
69170         New macro.
69171         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
69172         (INTERNAL_SYSCALL_TYPES): Likewise.
69173         (LOAD_ARGS_TYPES_[1-6]): Likewise.
69174         (LOAD_REGS_TYPES_[1-6]): Likewise.
69175         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
69176         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
69177
69178 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69179
69180         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
69181         copysignl for GLIBC_2_0.
69182         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
69183         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
69184         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
69185         logbl for GLIBC_2_0.
69186         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
69187         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
69188
69189 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
69190
69191         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
69192         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
69193
69194         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
69195         Use "neg %eax".
69196
69197         * time/mktime.c: Update copyright years.
69198
69199 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         mktime: merge comment-quoting-style change from gnulib
69202         * time/mktime.c: Quote 'like this' in comments.
69203         The GNU coding standards suggest that we no longer quote `like this',
69204         as "`" and "'" are typically rendered asymmetrically nowadays.
69205         The typical gnulib style is to quote 'like this' when quoting
69206         code, and "like this" when quoting English.
69207
69208         * time/mktime.c (compile-command): Add "-I.".
69209
69210         mktime: merge mktime-internal.h change from gnulib
69211         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
69212
69213         mktime: merge time_r change from gnulib
69214         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
69215
69216         mktime: merge DEBUG change from gnulib
69217         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
69218         case system <time.h> has a #define.
69219
69220         mktime: merge <sys/types.h> change from gnulib
69221         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
69222         since <time.t> is now guaranteed to define time_t.
69223
69224         mktime: merge HAVE_CONFIG_H change from gnulib
69225         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
69226
69227 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
69228
69229         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
69230         Use "neg %eax".
69231
69232         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
69233         __rlim_t cast.
69234         (struct rusage): Use anonymous union to pad each field to
69235         __syscall_slong_t.
69236
69237 2012-05-21  David S. Miller  <davem@davemloft.net>
69238
69239         * Makefules (o-iterator): Remove .s cases.
69240         (compile-command.s): Delete.
69241         (COMPILE.s): Delete.
69242         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
69243
69244 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
69245
69246         * configure.in (libc_cv_predef_stack_protector): Only consider
69247         "foobar" and "__stack_chk_fail" lines in libc_undefs.
69248         * configure: Regenerated.
69249
69250 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
69251
69252         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
69253         New macro.  Use R*LP on int and pointer.
69254         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
69255         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
69256         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
69257         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
69258
69259         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
69260         [__WORDSIZE_TIME64_COMPAT32] instead of
69261         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
69262         (struct utmp): Likewise.
69263         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
69264         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
69265         Renamed to ...
69266         (__WORDSIZE_TIME64_COMPAT32): This.
69267         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
69268         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
69269         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
69270         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
69271         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
69272         (__WORDSIZE_TIME64_COMPAT32): New macro.
69273
69274 2012-05-21  Andreas Jaeger  <aj@suse.de>
69275
69276         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
69277         only if [SHARED]. Add prototype for __wcschr_ia32.
69278
69279 2012-05-21  Roland McGrath  <roland@hack.frob.com>
69280
69281         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
69282         of %rbp unmolested in the jmp_buf while mangling the low bits.
69283         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
69284         unmolested high bits of %rbp while demangling the low bits.
69285         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
69286
69287 2012-05-21  Andreas Jaeger  <aj@suse.de>
69288
69289         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
69290         * sunrpc/svc_simple.c: Use it for registerrpc.
69291         * sunrpc/xcrypt.c: Use it for passwd2des.
69292
69293         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
69294
69295 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
69296
69297         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
69298         Don't define if [__SYSCALL_WORDSIZE != 32].
69299         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
69300         New macro.
69301
69302 2012-05-21  Bruno Haible  <bruno@clisp.org>
69303             Andreas Jaeger  <aj@suse.de>
69304
69305         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
69306         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
69307         inptr and inend for must_buffer_ch.
69308         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
69309         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
69310         * stdio-common/Makefile (tests): Remove bug15.
69311         (bug15-ENV): Remove macro.
69312         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
69313         anymore.
69314
69315 2012-05-19  Andreas Jaeger  <aj@suse.de>
69316             Roland McGrath  <roland@hack.frob.com>
69317
69318         * manual/contrib.texi: Completely rewritten. It contains now an
69319         alphabetical list of contributors and their contributions.
69320
69321 2012-05-21  Richard Henderson  <rth@twiddle.net>
69322
69323         * misc/getauxval.c (__getauxval): Use unsigned long int.
69324         * misc/sys/auxv.h: Include <sys/cdefs.h>.
69325         (getauxval): Use unsigned long int.
69326
69327 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
69328
69329         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
69330
69331 2012-05-21  Roland McGrath  <roland@hack.frob.com>
69332
69333         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
69334         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
69335         __alignof__ (long double).
69336
69337 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69338
69339         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69340
69341 2012-05-20  Richard Henderson  <rth@twiddle.net>
69342
69343         * misc/getauxval.c: New file.
69344         * misc/sys/auxv.h: New file.
69345         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
69346         (routines): Add getauxval.
69347         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
69348         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
69349         * elf/dl-sysdep.c (_dl_auxv): Remove.
69350         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
69351         * elf/dl-support.c (_dl_auxv): New variable.
69352         (_dl_aux_init): Initialize it.
69353         * manual/startup.texi (Auxiliary Vector): New node.
69354         * sysdeps/generic/bits/hwcap.h: New file.
69355         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
69356         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
69357         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
69358         * sysdeps/sparc/sysdep.h: ... here.  Include it.
69359         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
69360         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
69361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69362         Update.
69363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
69364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
69365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
69366         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
69367         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
69368         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
69369         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
69370         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
69371
69372 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69373
69374         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69375
69376 2012-05-19  David S. Miller  <davem@davemloft.net>
69377
69378         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69379
69380 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
69381
69382         [BZ #14123]
69383         * math/s_ccosh.c: Include <float.h>
69384         (__ccosh): Avoid internal overflow calculating sinh and cosh
69385         values before multiplying by sin and cos values.
69386         * math/s_ccoshf.c: Likewise.
69387         * math/s_ccoshl.c: Likewise.
69388         * math/s_csin.c: Likewise.
69389         * math/s_csinf.c: Likewise.
69390         * math/s_csinl.c: Likewise.
69391         * math/s_csinh.c: Likewise.
69392         * math/s_csinhf.c: Likewise.
69393         * math/s_csinhl.c: Likewise.
69394         * math/libm-test.inc (ccos_test): Add more tests.
69395         (ccosh_test): Likewise.
69396         (csin_test): Likewise.
69397         (csinh_test): Likewise.
69398         * sysdeps/i386/fpu/libm-test-ulps: Update.
69399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69400
69401 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
69402
69403         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
69404         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
69405
69406         * sysdeps/x86_64/x32/_itoa.h: Add comment.
69407
69408 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
69409
69410         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
69411         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
69412         * sysdeps/powerpc/soft-fp/Versions: Likewise.
69413         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
69414         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
69415         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
69416         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
69417         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
69418         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
69419         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
69420         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
69421         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
69422         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
69423         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
69424         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
69425         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
69426         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
69427         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
69428         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
69429         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
69430         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
69431         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
69432         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
69433         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
69434         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
69435         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
69436         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
69437         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
69438         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
69439         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
69440         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
69441
69442 2012-05-18  Andreas Jaeger  <aj@suse.de>
69443
69444         * csu/.gitignore: Delete.
69445
69446 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
69447
69448         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
69449         (timex): Use __syscall_slong_t.
69450
69451 2012-05-18  Andreas Jaeger  <aj@suse.de>
69452             Carlos O'Donell  <carlos_odonell@mentor.com>
69453
69454         * manual/install.texi (Configuring and compiling): Update
69455         description about files modified in the source directory.
69456         * INSTALL: Regenerated.
69457
69458 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
69459
69460         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
69461         value.  Use "or" to set return value to -1.
69462         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
69463         negate return value.
69464
69465 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69466
69467         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
69468         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
69469         failure if the compiler has Graphite support disabled.
69470         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
69471         Likewise.
69472         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
69473         (CFLAGS-memmove.c): Likewise.
69474         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
69475         Likewise.
69476
69477 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
69478
69479         * sysdeps/x86_64/x32/_itoa.h: New file.
69480
69481         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
69482         getdents system call only if kernel and user dirents have the
69483         same d_ino and d_off.
69484
69485         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
69486         LLONG_MAX != LONG_MAX.
69487         (_itoa_word): Use _ITOA_WORD_TYPE on value.
69488         (_fitoa_word): Likewise.
69489
69490         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
69491         years.
69492         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
69493         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
69494         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
69495
69496         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
69497         include <bits/wordsize.h>.  Check __x86_64__ instead of
69498         __WORDSIZE.
69499         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
69500         if __x86_64__ is defined.  Use anonymous union on fpstate.
69501
69502         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
69503         anonymous union.
69504
69505 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
69506
69507         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
69508         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
69509         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
69510         Refer to _rtld_local_ro instead of _rtld_global_ro.
69511         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
69512         Likewise.
69513         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
69514         Likewise.
69515         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
69516         Likewise.
69517         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
69518         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
69519         of _rtld_global, and rtld_progname instead of _dl_argv[0].
69520
69521         [BZ #10882]
69522         * sysdeps/powerpc/powerpc32/dl-machine.c
69523         (__elf_machine_runtime_setup) [PROF]: Don't reference
69524         _dl_prof_resolve.
69525
69526 2012-05-18  Andreas Jaeger  <aj@suse.de>
69527
69528         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
69529         function only available for GCCs before 3.4 since GCC 3.4
69530         introduced a builtin.
69531         (lrint): Likewise.
69532         (llrintf): Likewise.
69533         (llrint): Likewise.
69534         (fmaxf): Likewise.
69535         (fmax): Likewise.
69536         (fminf): Likewise.
69537         (fmin): Likewise.
69538         (rint): Likewise.
69539         (rintf): Likewise.
69540         (nearbyint): Likewise.
69541         (nearbyintf): Likewise.
69542         (ceil): Likewise.
69543         (ceilf): Likewise.
69544         (floor): Likewise.
69545         (floorf): Likewise.
69546
69547 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
69548
69549         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
69550         on both fields and cast pointer to __syscall_ulong_t.
69551
69552         * bits/types.h (__fsword_t): New type.
69553         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
69554         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
69555         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69556         (__FSWORD_T_TYPE): Likewise.
69557         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69558         (__FSWORD_T_TYPE): Likewise.
69559         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69560         (__FSWORD_T_TYPE): Likewise.
69561         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
69562         (__FSWORD_T_TYPE): Likewise.
69563         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
69564         __SWORD_TYPE with __fsword_t.
69565         (statfs64): Likewise.
69566
69567 2012-05-17  David S. Miller  <davem@davemloft.net>
69568
69569         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
69570
69571 2012-05-17  Andreas Jaeger  <aj@suse.de>
69572
69573         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
69574         warning.
69575
69576 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
69577
69578         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
69579
69580 2012-05-17  Andreas Jaeger  <aj@suse.de>
69581
69582         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
69583         when it is used.
69584
69585 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
69586
69587         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
69588
69589 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
69590
69591         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
69592         * sysdeps/x86_64/tst-mallocalign1.c: New file.
69593
69594 2012-05-17  Andreas Jaeger  <aj@suse.de>
69595             Carlos O'Donell  <carlos_odonell@mentor.com>
69596
69597         [BZ #14059]
69598         * sysdeps/x86_64/multiarch/init-arch.h
69599         (bit_YMM_Usable): Rename to...
69600         (bit_AVX_Usable): ... this.
69601         (bit_FMA4_Usable): New macro.
69602         (bit_XMM_state): New macro.
69603         (bit_YMM_state): New macro.
69604         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
69605         [__ASSEMBLER__] (index_AVX_Usable): ... this.
69606         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
69607         (CPUID_OSXSAVE): New macro.
69608         (CPUID_AVX): New macro.
69609         (CPUID_FMA4): New macro.
69610         (index_YMM_Usable): Rename to...
69611         (index_AVX_Usable): ... this.
69612         (HAS_AVX): Use HAS_ARCH_FEATURE.
69613         (HAS_FMA4): Likewise.
69614         (HAS_YMM_USABLE): Remove.
69615         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
69616         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
69617         are present.
69618         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
69619         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
69620         * sysdeps/x86_64/multiarch/Makefile: Likewise.
69621         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
69622         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
69623
69624 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
69625
69626         * math/libm-test.c: Support platforms without multiple rounding modes.
69627         * math/bug-nextafter.c: Support platforms without FP exceptions.
69628         * math/bug-nexttoward.c: Likewise.
69629         * math/test-fenv.c: Likewise.
69630         * math/test-misc.c: Likewise.
69631         * stdlib/bug-getcontext.c: Likewise.
69632
69633 2012-05-17  Andreas Jaeger  <aj@suse.de>
69634
69635         * manual/examples/search.c (critter_cmp): Change signature to
69636         avoid warnings.
69637         * manual/string.texi (Collation Functions): Likewise.
69638
69639 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69640
69641         * bits/types.h: Fold copyright years.
69642         * bits/typesizes.h: Likewise.
69643         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
69644         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
69645         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
69646         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
69647         * time/time.h: Likewise.
69648
69649 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
69650
69651         [BZ #208]
69652         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
69653         in instead of returning them.  Return void.
69654         (__libc_mallinfo): Accumulate over all arenas.
69655         (__malloc_stats): Adjust for change in int_mallinfo interface.
69656
69657 2012-05-16  Roland McGrath  <roland@hack.frob.com>
69658
69659         [BZ #10375]
69660         * configure.in (NM): Add AC_CHECK_TOOL for it.
69661         (libc_extra_cflags): New substituted variable.
69662         Check for -fstack-protector being used implicitly.
69663         * configure: Regenerated.
69664         * config.make.in (config-extra-cflags): New variable,
69665         gets @libc_extra_cflags@.
69666         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
69667
69668         [BZ #10375]
69669         * configure.in: Check for _FORTIFY_SOURCE being predefined.
69670         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
69671         * configure: Regenerated.
69672         * config.make.in (CPPUNDEFS): New substituted variable.
69673         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
69674         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
69675         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
69676
69677 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69678
69679         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
69680         (mq_attr): Use __syscall_slong_t.
69681
69682 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69683
69684         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
69685         Check __x86_64__ instead of __WORDSIZE.
69686         (_STAT_VER_LINUX): Likewise.
69687         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
69688         __syscall_ulong_t and __syscall_slong_t.
69689         (stat64): Likewise.
69690
69691 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69692
69693         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
69694
69695 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69696
69697         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
69698
69699 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69700
69701         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
69702         __syscall_ulong_t.
69703
69704         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
69705         include <bits/wordsize.h>.  Check __x86_64__ instead of
69706         __WORDSIZE.
69707         (greg_t): Use "__extension__ long long int" if __x86_64__ is
69708         defined.
69709         (mcontext_t): Replace "unsigned long" with "unsigned long long".
69710
69711         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
69712         include <bits/wordsize.h>.  Check __x86_64__ instead of
69713         __WORDSIZE.
69714         (user_regs_struct): Use "__extension__ unsigned long long"
69715         instead of "unsigned long" if __x86_64__ is defined.
69716         (user): Likewise.  Pad after pointer field if __ILP32__ is
69717         defined.
69718
69719 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
69720
69721         * configure.in (makeinfo): Require version 4.5 or later.  Allow
69722         versions 5 to 9.
69723         * configure: Regenerated.
69724         * manual/install.texi (texinfo): Increase version requirement to
69725         4.5 or later.
69726         * INSTALL: Regenerated.
69727
69728         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
69729
69730 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
69731
69732         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
69733
69734         * sysdeps/x86_64/x32/ffs.c: New file.
69735
69736         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
69737         __syscall_ulong_t.
69738         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
69739         defined.  Use __syscall_ulong_t.
69740         (shminfo): Use __syscall_ulong_t.
69741         (shm_info): Likewise.
69742
69743         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
69744         __syscall_ulong_t.
69745
69746         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
69747         <bits/wordsize.h>.
69748         (msgqnum_t): Use __syscall_ulong_t.
69749         (msglen_t): Likewise.
69750         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
69751         __syscall_ulong_t.
69752
69753         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
69754         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
69755
69756         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
69757
69758         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
69759         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
69760
69761         * sysvipc/sys/msg.h (msgbuf): Replace long int with
69762         __syscall_slong_t.
69763
69764         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
69765         include <bits/wordsize.h>.  Check __x86_64__ instead of
69766         __WORDSIZE.
69767
69768         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
69769         "unsigned long long int" if __x86_64__ is defined.
69770         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
69771
69772         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
69773         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
69774         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
69775
69776         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
69777         <stdint.h>.
69778         (GET_PC): Cast to uintptr_t first.
69779         (GET_FRAME): Likewise.
69780         (GET_STACK): Likewise.
69781
69782         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
69783         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
69784         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
69785         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
69786         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
69787         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
69788         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
69789         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
69790         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
69791         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
69792         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
69793         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
69794         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
69795         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
69796         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
69797         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
69798         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
69799         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
69800         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
69801         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
69802         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
69803         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
69804         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
69805         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
69806         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
69807         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
69808         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
69809         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
69810         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
69811
69812 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
69813
69814         * Makerules (+depfiles): Also collect depfiles from .oS in
69815         $(extra-objs).
69816         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
69817         .oS, $(libnldbl-routines)).
69818
69819         * Makerules (native-compile-mkdep-flags): Define.
69820         * sunrpc/Makefile (extra-objs): Add $(addprefix
69821         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
69822         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
69823         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
69824         calling $(make-target-directory).
69825
69826 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69827
69828         * bits/types.h (__snseconds_t): Removed.
69829         * time/time.h (struct timespec): Replace __snseconds_t with
69830         __syscall_slong_t.
69831         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
69832         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
69833         Likewise.
69834         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69835         (__SNSECONDS_T_TYPE): Likewise.
69836         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69837         (__SNSECONDS_T_TYPE): Likewise.
69838         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69839         (__SNSECONDS_T_TYPE): Likewise.
69840
69841 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69842
69843         * sysdeps/mach/hurd/bits/typesizes.h
69844         (__SYSCALL_SLONG_TYPE): New macro.
69845         (__SYSCALL_ULONG_TYPE): Likewise.
69846
69847 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69848
69849         * bits/types.h (__syscall_slong_t): New type.
69850         (__syscall_ulong_t): Likewise.
69851
69852         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
69853         (__SYSCALL_ULONG_TYPE): Likewise.
69854         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69855         (__SYSCALL_SLONG_TYPE): Likewise.
69856         (__SYSCALL_ULONG_TYPE): Likewise.
69857         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69858         (__SYSCALL_SLONG_TYPE): Likewise.
69859         (__SYSCALL_ULONG_TYPE): Likewise.
69860         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69861         (__SYSCALL_SLONG_TYPE): Likewise.
69862         (__SYSCALL_ULONG_TYPE): Likewise.
69863
69864 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69865
69866         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
69867         Add sigaltstack-offsets.sym.
69868         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
69869         <sigaltstack-offsets.h>.
69870         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
69871         longjmp_msg pointer.
69872         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
69873         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
69874         signal stack.
69875         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
69876
69877 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
69878
69879         * elf/stackguard-macros.h: Remove file.
69880         * sysdeps/generic/stackguard-macros.h: New file.
69881         * sysdeps/i386/stackguard-macros.h: Likewise.
69882         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
69883         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
69884         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
69885         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
69886         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
69887         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
69888         * sysdeps/x86_64/stackguard-macros.h: Likewise.
69889         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
69890         <elf/stackguard-macros.h>.
69891
69892         [BZ #14109]
69893         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
69894         __aligned__ in attribute.
69895         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
69896         (gregset_t): Likewise.
69897
69898 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69899
69900         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
69901         * sysdeps/x86_64/64/Implies-after: Here.  New file.
69902         * sysdeps/x86_64/x32/Implies-after: New file.
69903
69904 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69905
69906         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
69907         and access return value for _dl_profile_fixup.  Use R10_LP to
69908         load frame size.
69909
69910 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69911
69912         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
69913
69914 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69915
69916         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
69917         * sysdeps/x86_64/x32/sysdep.h: New file.
69918
69919 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69920
69921         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
69922         * sysdeps/x86_64/setjmp.S: Likewise.
69923
69924 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69925
69926         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
69927         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
69928         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
69929         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
69930         remove unused global constant.
69931
69932 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
69933
69934         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
69935         include of <not-cancel.h>.
69936
69937 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69938
69939         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
69940
69941 2012-05-15  Jeff Law  <law@redhat.com>
69942             Andreas Jaeger  <aj@suse.de>
69943
69944         [BZ #13594]
69945         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
69946         out from...
69947         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
69948         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
69949         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
69950         code changing __hst_map_handle.map.
69951
69952 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69953
69954         * configure.in (sysnames): Look for Implies-before and Implies-after
69955         files.
69956         * configure: Regenerated.
69957
69958 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69959
69960         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
69961         8-byte data alignment with LP_SIZE alignment.
69962
69963 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69964
69965         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
69966         into R10_LP.
69967
69968 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69969
69970         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
69971
69972 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69973
69974         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
69975         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
69976         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
69977         Likewise.
69978         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
69979
69980 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69981
69982         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
69983         (stackinfo_sub_sp): Likewise.
69984
69985 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69986
69987         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
69988         RAX_LP.
69989
69990 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69991
69992         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
69993         into R*_LP.
69994
69995 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69996
69997         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
69998         sizes into R*_LP.
69999
70000 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
70001
70002         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
70003
70004 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
70005
70006         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
70007         into R11_LP and load __x86_64_shared_cache_size_half into
70008         R8_LP.
70009
70010 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
70011
70012         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
70013         R8_LP.
70014
70015 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70016
70017         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
70018         logb for POWER7.
70019         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
70020         logbf for POWER7.
70021         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
70022         logbl for POWER7.
70023         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
70024         powerpc32/power7/fpu/s_logb.c via #include.
70025         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
70026         powerpc32/power7/fpu/s_logbf.c via #include.
70027         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
70028         powerpc32/power7/fpu/s_logbl.c via #include.
70029
70030 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
70031
70032         * README.libm: Remove file.
70033
70034 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
70035
70036         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
70037         count for x32.  Use R*_LP and omit operand-size suffix.
70038
70039 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
70040
70041         * shlib-versions: Move x86_64-.*-linux.* entries to ...
70042         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
70043         * sysdeps/x86_64/x32/shlib-versions: New file.
70044
70045 2012-05-14  Roland McGrath  <roland@hack.frob.com>
70046
70047         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
70048         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
70049         Use _dl_fatal_printf instead.
70050
70051 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
70052
70053         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
70054         set if not set by the user.  Do not allow for being unset.
70055         * sysdeps/unix/sysv/linux/configure: Regenerated.
70056
70057 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
70058
70059         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
70060         the `q' suffix from lea and replace .quad with ASM_ADDR.
70061
70062 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
70063
70064         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
70065         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
70066         instead of $17.
70067         (PTR_DEMANGLE): Likewise.
70068
70069 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
70070
70071         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
70072         (LP_OP): Likewise.
70073         (ASM_ADDR): Likewise.
70074         (RAX_LP): Likewise.
70075         (RBP_LP): Likewise.
70076         (RBX_LP): Likewise.
70077         (RCX_LP): Likewise.
70078         (RDI_LP): Likewise.
70079         (RSI_LP): Likewise.
70080         (RSP_LP): Likewise.
70081         (R8_LP): Likewise.
70082         (R9_LP): Likewise.
70083         (R10_LP): Likewise.
70084         (R10_LP): Likewise.
70085         (R11_LP): Likewise.
70086         (R12_LP): Likewise.
70087         (R13_LP): Likewise.
70088         (R14_LP): Likewise.
70089         (R15_LP): Likewise.
70090
70091 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
70092
70093         * sysdeps/x86_64/x32/dl-machine.h: New file.
70094
70095 2012-05-14  Andreas Jaeger  <aj@suse.de>
70096
70097         * manual/Makefile (subdir): Remove export of subdir.
70098         (all): Remove target.
70099         (.PHONY): Remove all from list.
70100         (mkinstalldirs): Remove.
70101         (.PHONY): Remove installdirs from list.
70102         ($(inst_infodir)/libc.info): Use make-target-directory.
70103         (installdirs): Remove.
70104         (subdir_%): Remove.
70105         (glibc-targets): Remove.
70106         (lib): Remove.
70107         (stubs): Remove.
70108         ($(objpfx)stubs ../po/manual.pot): Remove.
70109         ($(objpfx)stamp%): Remove.
70110         (make-target-directory): Remove.
70111         (subdir_install): Remove.
70112         (routines): Remove.
70113         (aux): Remove.
70114         (sources): Remove.
70115         (objects): Remove.
70116         (headers): Remove.
70117
70118         [BZ #13750]
70119         * manual/.gitignore: Remove, it's not needed anymore.
70120         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
70121         all files in it.
70122         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
70123         directory.
70124         (texis): Renamed to $(objpfx)texis.
70125         (texis-path): New, contains path to generated files.
70126         (chapters.%): Use texis-path for complete path, add extra argument
70127         libc-texinfo.sh.
70128         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
70129         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
70130         (summary,texi, stamp-summary): Use complete path of
70131         files. Generate files in build dir.
70132         (dir-add.texi): Build in build dir.
70133         (libm-err.texi,stamp-libm-err): Likewise.
70134         (version.texi, stamp-version): Likewise.
70135         (.%c.texi): Likewise.
70136         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
70137         (mostlyclean): Remove target.
70138         (realclean): Remove target.
70139         (generated): Add new variable with contents from mostlyclean and
70140         realclean, remove entries duplicated in common-mostlyclean, add
70141         stamp-libm-err and stamp-version.
70142         (generated-dirs): Add libc directory.
70143         ($(inst_infodir)/libc.info): Install files from build dir.
70144
70145         * manual/install.texi (Configuring and compiling): Adjust since
70146         the info files are not part of the tar ball anymore.
70147
70148 2012-05-14  Andreas Jaeger  <aj@suse.de>
70149
70150         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
70151         variable.
70152
70153 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
70154
70155         [BZ #13717]
70156         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
70157         to 2.2.0 where earlier.
70158         * sysdeps/unix/sysv/linux/configure: Regenerated.
70159         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
70160         Remove conditional code.
70161         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
70162         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
70163         Remove conditional code.
70164         [!__NR_lchown]: Likewise.
70165         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
70166         [__NR_lchown]: Likewise.
70167         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
70168         comment referencing __ASSUME_LCHOWN_SYSCALL.
70169         * sysdeps/unix/sysv/linux/i386/sigaction.c
70170         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
70171         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
70172         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
70173         Remove conditional code.
70174         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
70175         (__protocol_available): Remove #if 0 code.
70176         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
70177         conditional code.
70178         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
70179         * sysdeps/unix/sysv/linux/kernel-features.h
70180         (__ASSUME_GETCWD_SYSCALL): Don't define.
70181         (__ASSUME_REALTIME_SIGNALS): Likewise.
70182         (__ASSUME_PREAD_SYSCALL): Likewise.
70183         (__ASSUME_PWRITE_SYSCALL): Likewise.
70184         (__ASSUME_POLL_SYSCALL): Likewise.
70185         (__ASSUME_LCHOWN_SYSCALL): Likewise.
70186         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
70187         non-SPARC.
70188         (__ASSUME_SIOCGIFNAME): Don't define.
70189         (__ASSUME_MSG_NOSIGNAL): Likewise.
70190         (__ASSUME_SENDFILE): Define unconditionally.
70191         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
70192         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
70193         conditional code.
70194         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
70195         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
70196         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
70197         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
70198         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
70199         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
70200         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
70201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
70202         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
70203         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
70204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
70205         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
70206         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
70207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
70208         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
70209         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
70210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
70211         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
70212         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
70213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
70214         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
70215         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
70216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
70217         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
70218         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
70219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
70220         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
70221         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
70222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
70223         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
70224         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
70225         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
70226         Remove conditional code.
70227         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
70228         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
70229         Remove conditional code.
70230         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
70231         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
70232         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
70233         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
70234         Remove conditional code.
70235         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
70236         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
70237         Remove conditional code.
70238         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
70239         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
70240         Remove conditional code.
70241         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
70242         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
70243         Remove conditional code.
70244         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
70245         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
70246         Remove conditional code.
70247         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
70248         * sysdeps/unix/sysv/linux/sh/pwrite64.c
70249         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
70250         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
70251         * sysdeps/unix/sysv/linux/sigaction.c
70252         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
70253         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
70254         * sysdeps/unix/sysv/linux/sigpending.c
70255         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
70256         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
70257         * sysdeps/unix/sysv/linux/sigprocmask.c
70258         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
70259         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
70260         * sysdeps/unix/sysv/linux/sigsuspend.c
70261         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
70262         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
70263         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
70264         (__libc_missing_rt_sigs): Remove.
70265         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
70266         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
70267         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
70268         Remove conditional code.
70269         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
70270         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
70271         return 1.
70272         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
70273         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
70274         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
70275         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
70276
70277 2012-05-14  Andreas Jaeger  <aj@suse.de>
70278
70279         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
70280         it's not used in glibc.
70281         (__coshm1): Likewise.
70282         (__acosh1p): Likewise.
70283         (__sgn): Likewise.
70284
70285         * manual/string.texi (Copying and Concatenation): Add missing
70286         variable in concat example.
70287         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
70288
70289 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
70290
70291         [BZ #14103]
70292         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
70293         __builtin_clzl with __builtin_clzll.
70294
70295 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
70296
70297         [BZ #14104]
70298         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
70299         libc_freeres_ptr.
70300
70301 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70302
70303         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
70304         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
70305         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
70306         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
70307
70308 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
70309
70310         * NEWS: Update ia64 info.
70311
70312 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
70313
70314         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
70315         used as bcopy.
70316
70317 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
70318
70319         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
70320         * sysdeps/unix/syscalls.list (dup3): Likewise.
70321         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
70322         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
70323
70324 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
70325
70326         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
70327         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
70328
70329 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
70330
70331         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
70332         thread pointer.
70333         (TLS_IE): Use mov/add instead of movq/addq to load thread
70334         pointer.
70335         (TLS_GD_PREFIX): New.
70336         (TLS_GD): Use it.
70337
70338 2012-05-11  David S. Miller  <davem@davemloft.net>
70339
70340         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
70341         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
70342         (_FPU_SETCW): Likewise.
70343
70344 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
70345
70346         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
70347         is 32-byte aligned.
70348
70349 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
70350
70351         [BZ #11837]
70352         * iconvdata/gb18030.c: Update tables.
70353         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
70354         characters specially.
70355         (BODY for TO_LOOP): Add encoding of missing ranges.
70356
70357 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
70358
70359         [BZ #13673]
70360         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
70361         * sysdeps/mach/hurd/dup3.c: Likewise.
70362         * sysdeps/mach/hurd/readlinkat.c: Likewise.
70363         * sysdeps/powerpc/memmove.c:: Likewise.
70364
70365 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
70366
70367         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
70368         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
70369
70370 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
70371
70372         * elf/elf.h (R_X86_64_RELATIVE64): New.
70373         (R_X86_64_NUM): Updated.
70374         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
70375         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
70376         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
70377         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
70378         tst-quad1pie tst-quad2pie
70379         (modules-names): Add tst-quadmod1 tst-quadmod2.
70380         ($(objpfx)tst-quad1): New dependency.
70381         ($(objpfx)tst-quad2): Likewise.
70382         ($(objpfx)tst-quad1pie): Likewise.
70383         ($(objpfx)tst-quad2pie): Likewise.
70384         * sysdeps/x86_64/tst-quad1.c: New file.
70385         * sysdeps/x86_64/tst-quad1pie.c: New file.
70386         * sysdeps/x86_64/tst-quad2.c: Likewise.
70387         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
70388         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
70389         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
70390         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
70391         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
70392
70393 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70394
70395         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
70396         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
70397         * streams/stropts.h (t_scalar_t): Define type.
70398
70399         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
70400         (_PATH_PRESERVE): Set to "/var/lib".
70401         (_PATH_RWHODIR): Set to "/var/spool/rwho".
70402
70403         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
70404         instead of int.
70405
70406         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
70407         if __dir_mkfile succeeded.
70408
70409         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
70410         checking for _hurd_dtablesize.  Unlock it right after having
70411         finished _hurd_dtable allocation.
70412
70413 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70414
70415         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
70416         * sysdeps/mach/hurd/configure: Regenerated.
70417         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
70418         special-casing to...
70419         * sysdeps/gnu/configure.in: ... this new file.
70420         * sysdeps/unix/sysv/linux/configure: Regenerated.
70421         * sysdeps/gnu/configure: New generated file.
70422
70423         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
70424         for Linux: use nsec instead of usec, as well as:
70425         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
70426         members of type struct timespec.
70427         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
70428         New macros.
70429         (struct stat64): Likewise.
70430         (_STATBUF_ST_NSEC): New macro.
70431         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
70432
70433         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
70434         __strtoul_internal rather than strtoul.
70435
70436 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
70437
70438         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
70439         and reject them.
70440
70441 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70442
70443         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
70444         which preserves existing values.
70445         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
70446
70447 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
70448
70449         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
70450         TIMEOUT values.  Return EINVAL for NFDS values either negative or
70451         greater than FD_SETSIZE.
70452
70453 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70454
70455         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
70456         allocated, call __vm_protect to finish enabling the existing space, and
70457         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
70458         allocate the remainder.
70459
70460 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
70461
70462         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
70463         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
70464
70465 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70466
70467         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
70468         sysdeps/mach/hurd/readlink.c.
70469
70470         * posix/tst-sysconf.c (posix_options): Only use
70471         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
70472         _POSIX_SYNCHRONIZED_IO when they are defined
70473         * sysdeps/mach/hurd/bits/posix_opt.h:
70474         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
70475         (_XOPEN_REALTIME): Undefine macro.
70476         (_XOPEN_REALTIME_THREADS): Undefine macro.
70477         (_XOPEN_SHM): Undefine macro.
70478         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
70479         macro to -1.
70480         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
70481         macro to -1.
70482         (_POSIX_ASYNC_IO): Undefine macro.
70483         (_POSIX_PRIORITIZED_IO): Undefine macro.
70484         (_POSIX_SPIN_LOCKS): Define macro to -1.
70485
70486         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
70487         SA_NODEFER, SA_RESETHAND.
70488         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
70489         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
70490         F_DUPFD_CLOEXEC.
70491
70492 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70493
70494         * elf/Makefile (pldd-modules): Define unconditionally.
70495
70496 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70497
70498         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
70499
70500 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70501
70502         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
70503         Return ENOENT when name is empty.
70504         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
70505
70506 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70507
70508         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
70509
70510         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
70511
70512 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70513
70514         Fix mlock in all cases except non-readable pages.
70515         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
70516         instead of VM_PROT_ALL as parameter to __vm_wire function.
70517
70518         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
70519         (__mkdir): When path is `/', just fail with EEXIST.
70520         * sysdeps/mach/hurd/mkdirat.c: Likewise.
70521
70522 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70523
70524         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
70525         <sys/uio.h> (for writev).
70526         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
70527         and <sys/param.h> (for MIN).
70528
70529 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
70530
70531         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
70532         REQUESTED_TIME.  Properly set the remaining time and return EINTR
70533         if interrupted.
70534
70535 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70536
70537         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
70538         Depend on against $(link-rpcuserlibs).
70539
70540 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70541
70542         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
70543         (__libc_stack_end): Do not use attribute_relro.
70544         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
70545         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
70546         to libthread-provided value.
70547         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
70548         attribute_relro.
70549
70550 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70551
70552         [BZ #3748]
70553         * bits/libc-lock.h (__libc_once_get): New macro.
70554         * sysdeps/mach/bits/libc-lock.h: Likewise.
70555         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
70556         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
70557         instead of using implementation details.
70558
70559         * libio/fileops.c: Unconditionally include <kernel-features.h>.
70560         * libio/freopen.c: Likewise.
70561         * libio/freopen64.c: Likewise.
70562         * misc/syslog.c: Likewise.
70563         * nscd/connections.c: Likewise.
70564         * nscd/netgroupcache.c: Likewise.
70565         * sysdeps/posix/getcwd.c: Likewise.
70566
70567 2012-05-10  Roland McGrath  <roland@hack.frob.com>
70568
70569         * math/w_ilogbf.c: Add #include <limits.h>.
70570
70571 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70572
70573         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
70574         path instead of returning without unlocking.
70575
70576         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
70577         immediate-write ioctls.
70578         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
70579
70580 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70581
70582         * sysdeps/mach/hurd/i386/init-first.c (init): Use
70583         __builtin_frame_address instead of making assumptions about the
70584         location of the return address relative to DATA.  Force early load of
70585         the return address.
70586         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
70587         __builtin_frame_address.
70588
70589         dup3 for GNU Hurd.
70590         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
70591         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
70592         implement dup3 and do some further code clean-ups.
70593         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
70594         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
70595
70596 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70597
70598         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
70599
70600         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
70601         HURD_CRITICAL_END around holding _hurd_dtable_lock.
70602         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
70603         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
70604         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
70605         d->port.lock.
70606
70607         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
70608         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
70609         when handler == SIG_ERR, not when handler != SIG_ERR.
70610
70611 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70612
70613         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
70614         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
70615         definitions.
70616
70617         accept4 for GNU Hurd.
70618         * include/sys/socket.h (__libc_accept4): New prototype.
70619         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
70620         to implement __libc_accept4.
70621         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
70622         __libc_accept4.
70623         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
70624
70625         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
70626         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
70627         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
70628         signal-defines.sym.
70629
70630 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70631
70632         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
70633
70634 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
70635
70636         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
70637         assertion on O_CLOEXEC flag.
70638         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
70639         * hurd/intern-fd.c: Likewise.
70640         * hurd/port2fd.c: Likewise.
70641
70642 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70643
70644         [BZ #3906]
70645         * bits/in.h (IPV6_PKTINFO): Define new macro.
70646         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
70647
70648 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70649
70650         [BZ #13954]
70651         [BZ #13955]
70652         [BZ #13956]
70653         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
70654         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
70655         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
70656         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
70657         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
70658         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
70659         * math/libm-test.inc (logb_test) : Additional logb tests.
70660
70661 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
70662             Andreas Jaeger  <aj@suse.de>
70663
70664         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
70665         * configure: Regenerated.
70666         * config.h.in (LINK_OBSOLETE_RPC): New macro.
70667         * config.make.in (link-obsolete-rpc): New substituted variable.
70668         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
70669         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
70670         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
70671         (shared-only-routines): Don't set it under [link-obsolete-rpc],
70672         so that libc.a contains the symbols.
70673         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
70674         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
70675         * sunrpc/auth_none.c: Likewise.
70676         * sunrpc/auth_unix.c: Likewise.
70677         * sunrpc/authdes_prot.c: Likewise.
70678         * sunrpc/authuxprot.c: Likewise.
70679         * sunrpc/clnt_gen.c: Likewise.
70680         * sunrpc/clnt_perr.c: Likewise.
70681         * sunrpc/clnt_raw.c: Likewise.
70682         * sunrpc/clnt_simp.c: Likewise.
70683         * sunrpc/clnt_tcp.c: Likewise.
70684         * sunrpc/clnt_udp.c: Likewise.
70685         * sunrpc/clnt_unix.c: Likewise.
70686         * sunrpc/des_crypt.c: Likewise.
70687         * sunrpc/des_soft.c: Likewise.
70688         * sunrpc/get_myaddr.c: Likewise.
70689         * sunrpc/key_call.c: Likewise.
70690         * sunrpc/key_prot.c: Likewise.
70691         * sunrpc/netname.c: Likewise.
70692         * sunrpc/pm_getmaps.c: Likewise.
70693         * sunrpc/pm_getport.c: Likewise.
70694         * sunrpc/pmap_clnt.c: Likewise.
70695         * sunrpc/pmap_prot.c: Likewise.
70696         * sunrpc/pmap_prot2.c: Likewise.
70697         * sunrpc/pmap_rmt.c: Likewise.
70698         * sunrpc/publickey.c: Likewise.
70699         * sunrpc/rpc_cmsg.c: Likewise.
70700         * sunrpc/rpc_common.c: Likewise.
70701         * sunrpc/rpc_dtable.c: Likewise.
70702         * sunrpc/rpc_prot.c: Likewise.
70703         * sunrpc/rpc_thread.c: Likewise.
70704         * sunrpc/rtime.c: Likewise.
70705         * sunrpc/svc.c: Likewise.
70706         * sunrpc/svc_auth.c: Likewise.
70707         * sunrpc/svc_raw.c: Likewise.
70708         * sunrpc/svc_run.c: Likewise.
70709         * sunrpc/svc_tcp.c: Likewise.
70710         * sunrpc/svc_udp.c: Likewise.
70711         * sunrpc/svc_unix.c: Likewise.
70712         * sunrpc/svcauth_des.c: Likewise.
70713         * sunrpc/xcrypt.c: Likewise.
70714         * sunrpc/xdr.c: Likewise.
70715         * sunrpc/xdr_array.c: Likewise.
70716         * sunrpc/xdr_float.c: Likewise.
70717         * sunrpc/xdr_intXX_t.c: Likewise.
70718         * sunrpc/xdr_mem.c: Likewise.
70719         * sunrpc/xdr_rec.c: Likewise.
70720         * sunrpc/xdr_ref.c: Likewise.
70721         * sunrpc/xdr_sizeof.c: Likewise.
70722         * sunrpc/xdr_stdio.c: Likewise.
70723
70724 2012-05-10  Roland McGrath  <roland@hack.frob.com>
70725
70726         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
70727         change.  Update copyright years.
70728
70729 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
70730
70731         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
70732
70733 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
70734             Joseph Myers  <joseph@codesourcery.com>
70735             Paul Pluzhnikov  <ppluzhnikov@google.com>
70736
70737         [BZ #14012]
70738         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
70739         requiring rpcgen.
70740         [cross-compiling] (extra-libs): Likewise.
70741         [cross-compiling] (extra-libs-others): Likewise.
70742         [cross-compiling] (librpcsvc-routines): Likewise.
70743         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
70744         [cross-compiling] (omit-deps): Likewise.
70745         (sunrpc-CPPFLAGS): New variable.
70746         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
70747         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
70748         (cross-rpcgen-objs): New variable.
70749         (extra-objs): Append $(cross-rpcgen-objs).
70750         ($(cross-rpcgen-objs)): New rule.
70751         ($(objpfx)cross-rpcgen): Likewise.
70752         (rpcgen-cmd): Define to use $(built-program-file).  Expand
70753         comment.
70754         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
70755         ($(objpfx)x%.stmp): Likewise.
70756         * sunrpc/proto.h [IS_IN_build] (_): Define.
70757         [IS_IN_build] (_libc_intl_domainname): Likewise.
70758
70759 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
70760
70761         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
70762         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
70763         and R_X86_64_TPOFF64.
70764
70765 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
70766
70767         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
70768         sysdeps/unix/sysv/syscalls.list.
70769         (stime): Likewise.
70770         (utime): Likewise.
70771         * sysdeps/unix/sysv/syscalls.list: Remove file.
70772
70773 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         [BZ #3440]
70776         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
70777         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
70778         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
70779         (__LC_IDENTIFICATION): Make these macros useful in #if
70780         expressions, as required by C99.
70781
70782 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
70783
70784         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
70785         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
70786         after this.
70787
70788 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
70789
70790         * stdlib/longlong.h: Updated from GCC.
70791
70792 2012-05-09  Andreas Jaeger  <aj@suse.de>
70793
70794         * nscd/nscd.c (run_modes): Make named enum, reorder so that
70795         default is first entry.
70796         (run_mode): Set type.
70797         (main): Remove informal message about syslog.
70798         (options): Fix typo.
70799
70800         [BZ #14053]
70801         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
70802         to asm.
70803         (lrint): Likewise.
70804         (llrintf): Likewise.
70805         (llrint): Likewise.
70806         (rint): Likewise.
70807         (rintf): Likewise.
70808         (nearbyint): Likewise.
70809         (nearbyintf): Likewise.
70810
70811 2012-05-09  Andreas Jaeger  <aj@suse.de>
70812             Pedro Alves  <palves@redhat.com>
70813
70814         * nscd/nscd.c (run_mode): Use enum.
70815         (main): Cleanup coding style issue.
70816
70817 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
70818             Andreas Jaeger  <aj@suse.de>
70819
70820         * nscd/nscd.c (go_background): Replaced with...
70821         (run_mode): ... this.
70822         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
70823         (options): Add -F --foreground.
70824         (main): Implement it.
70825         (parse_opt): Parse it.
70826
70827 2012-05-09  Andreas Jaeger  <aj@suse.de>
70828
70829         [BZ #14083]
70830         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
70831         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
70832         -Wconversion warning.
70833         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
70834         Likewise.
70835
70836 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
70837
70838         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
70839         == 0.
70840         (LC_ALL): Use macro-int-constant.
70841         (LC_COLLATE): Likewise.
70842         (LC_CTYPE): Likewise.
70843         (LC_MESSAGES): Likewise.
70844         (LC_MONETARY): Likewise.
70845         (LC_NUMERIC): Likewise.
70846         (LC_TIME): Likewise.
70847         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
70848         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70849         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70850         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
70851         Specify type.
70852         [C99-based standards] (float_t): Expect type.
70853         [C99-based standards] (double_t): Expect type.
70854         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
70855         type.
70856         [C99-based standards] (HUGE_VALL): Likewise.
70857         [C99-based standards] (INFINITY): Likewise.
70858         [C99-based standards] (NAN): Likewise.
70859         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
70860         [C99-based standards] (FP_NAN): Likewise.
70861         [C99-based standards] (FP_NORMAL): Likewise.
70862         [C99-based standards] (FP_SUBNORMAL): Likewise.
70863         [C99-based standards] (FP_ZERO): Likewise.
70864         [C99-based standards] (FP_FAST_FMA): Use
70865         optional-macro-int-constant.  Specify type.  Require == 1.
70866         [C99-based standards] (FP_FAST_FMAF): Likewise.
70867         [C99-based standards] (FP_FAST_FMAL): Likewise.
70868         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
70869         [C99-based standards] (FP_ILOGBNAN): Likewise.
70870         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
70871         Specify type.
70872         [C99-based standards] (MATH_ERREXCEPT): Likewise.
70873         [C99-based standards] (math_errhandling): Specify type.
70874         [ISO99 || ISO11] (signgam): Do not allow.
70875         [non-C99-based standards] (copysignf): Do not allow.
70876         [non-C99-based standards] (exp2f): Likewise.
70877         [non-C99-based standards] (log2f): Likewise.
70878         [non-C99-based standards] (modff): Allow.
70879         [non-C99-based standards] (erff): Do not allow.
70880         [non-C99-based standards] (erfcf): Likewise.
70881         [non-C99-based standards] (gammaf): Likewise.
70882         [non-C99-based standards] (hypotf): Likewise.
70883         [non-C99-based standards] (j0f): Likewise.
70884         [non-C99-based standards] (j1f): Likewise.
70885         [non-C99-based standards] (jnf): Likewise.
70886         [non-C99-based standards] (lgammaf): Likewise.
70887         [non-C99-based standards] (tgammaf): Likewise.
70888         [non-C99-based standards] (y0f): Likewise.
70889         [non-C99-based standards] (y1f): Likewise.
70890         [non-C99-based standards] (ynf): Likewise.
70891         [non-C99-based standards] (isnanf): Likewise.
70892         [non-C99-based standards] (acoshf): Likewise.
70893         [non-C99-based standards] (asinhf): Likewise.
70894         [non-C99-based standards] (atanhf): Likewise.
70895         [non-C99-based standards] (cbrtf): Likewise.
70896         [non-C99-based standards] (expm1f): Likewise.
70897         [non-C99-based standards] (ilogbf): Likewise.
70898         [non-C99-based standards] (log1pf): Likewise.
70899         [non-C99-based standards] (logbf): Likewise.
70900         [non-C99-based standards] (nextafterf): Likewise.
70901         [non-C99-based standards] (remainderf): Likewise.
70902         [non-C99-based standards] (rintf): Likewise.
70903         [non-C99-based standards] (scalbf): Likewise.
70904         [non-C99-based standards] (copysignl): Likewise.
70905         [non-C99-based standards] (exp2l): Likewise.
70906         [non-C99-based standards] (log2l): Likewise.
70907         [non-C99-based standards] (modfl): Allow.
70908         [non-C99-based standards] (erfl): Do not allow.
70909         [non-C99-based standards] (erfcl): Likewise.
70910         [non-C99-based standards] (gammal): Likewise.
70911         [non-C99-based standards] (hypotl): Likewise.
70912         [non-C99-based standards] (j0l): Likewise.
70913         [non-C99-based standards] (j1l): Likewise.
70914         [non-C99-based standards] (jnl): Likewise.
70915         [non-C99-based standards] (lgammal): Likewise.
70916         [non-C99-based standards] (tgammal): Likewise.
70917         [non-C99-based standards] (y0l): Likewise.
70918         [non-C99-based standards] (y1l): Likewise.
70919         [non-C99-based standards] (ynl): Likewise.
70920         [non-C99-based standards] (isnanl): Likewise.
70921         [non-C99-based standards] (acoshl): Likewise.
70922         [non-C99-based standards] (asinhl): Likewise.
70923         [non-C99-based standards] (atanhl): Likewise.
70924         [non-C99-based standards] (cbrtl): Likewise.
70925         [non-C99-based standards] (expm1l): Likewise.
70926         [non-C99-based standards] (ilogbl): Likewise.
70927         [non-C99-based standards] (log1pl): Likewise.
70928         [non-C99-based standards] (logbl): Likewise.
70929         [non-C99-based standards] (nextafterl): Likewise.
70930         [non-C99-based standards] (remainderl): Likewise.
70931         [non-C99-based standards] (rintl): Likewise.
70932         [non-C99-based standards] (scalbl): Likewise.
70933         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70934         [non-C99-based standards] (FP_*): Do not allow.
70935         [C99-based standards] (FP_*): Change to
70936         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70937         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70938         allow.
70939         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
70940         (SIG_ERR): Likewise.
70941         [X/Open-based standards] (SIG_HOLD): Likewise.
70942         (SIG_IGN): Likewise.
70943         (SIGABRT): Use macro-int-constant.  Specify type.  Require
70944         positive value.
70945         (SIGFPE): Likewise.
70946         (SIGILL): Likewise.
70947         (SIGINT): Likewise.
70948         (SIGSEGV): Likewise.
70949         (SIGTER): Likewise.
70950         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
70951         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
70952         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
70953         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
70954         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
70955         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
70956         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
70957         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
70958         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
70959         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
70960         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
70961         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
70962         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
70963         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
70964         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
70965         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
70966         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
70967         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
70968         [X/Open-based standards] (SIGTRAP): Likewise.
70969         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
70970         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
70971         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
70972         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
70973         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70974         allow.
70975
70976 2012-05-08  Ian Wienand  <ianw@vmware.com>
70977
70978         [BZ #14080]
70979         * time/tzset.c (__tzset_parse_tz): Update default rules for
70980         daylight time changes in the Energy Policy Act of 2005.
70981
70982 2012-05-09  Andreas Jaeger  <aj@suse.de>
70983
70984         [BZ #13983]
70985         * elf/ldconfig.c (parse_conf): Change string to make clear that
70986         ldconfig only issued a warning if ld.so.conf does not exist.
70987
70988 2012-05-08  David S. Miller  <davem@davemloft.net>
70989
70990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
70991         movxtod instead of popping the value on the stack.
70992
70993         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70994
70995 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
70996
70997         * config.h.in: Add HAVE_ARM_PCS_VFP.
70998
70999 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
71000
71001         [BZ #13979]
71002         * include/features.h: Warn if user requests __FORTIFY_SOURCE
71003         checking but the checks are disabled for any reason.
71004
71005 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
71006
71007         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
71008         and ELF64_R_TYPE with ELFW(R_TYPE).
71009
71010 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
71011
71012         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
71013         (ulimit): Likewise.
71014
71015         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
71016         (settimeofday): Likewise.
71017
71018 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
71019
71020         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
71021         a struct th_u2 inside the union, and move tu_block/tu_code into
71022         a new th_u3 union of tu_block/tu_code inside of that.  Move
71023         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
71024         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
71025         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
71026         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
71027         (th_stuff): Change to th_u1.tu_stuff.
71028         (th_data): Define.
71029         (th_msg): Change to th_u1.th_u2.tu_data.
71030
71031 2012-05-07  David S. Miller  <davem@davemloft.net>
71032
71033         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71034
71035         [BZ #14074]
71036         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
71037         (SETUP_PIC_REG): Use it.
71038         (SETUP_PIC_REG_LEAF): Use it.
71039
71040 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
71041
71042         [BZ #13885]
71043         [BZ #13923]
71044         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
71045         USE_AS_EXPM1L.
71046         (EXPL_FINITE): Likewise.
71047         (FLDLOG): Likewise.
71048         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
71049         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
71050         e_expl.S.
71051         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
71052         USE_AS_EXPM1L.
71053         (EXPL_FINITE): Likewise.
71054         (FLDLOG): Likewise.
71055         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
71056         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
71057         e_expl.S.
71058         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
71059         test of -max_value argument for long double.
71060         * sysdeps/i386/fpu/libm-test-ulps: Update.
71061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71062
71063 2012-05-06  David S. Miller  <davem@davemloft.net>
71064
71065         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
71066         quad soft-float symbols whose references which are compiler
71067         generated.
71068         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
71069
71070 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
71071
71072         [BZ #13884]
71073         [BZ #13914]
71074         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
71075         USE_AS_EXP10L.
71076         (EXPL_FINITE): Likewise.
71077         (FLDLOG): Likewise.
71078         (c0): Likewise.
71079         (c1): Likewise.
71080         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
71081         Adjust comments for base varying.
71082         (__expl_finite): Change alias to EXPL_FINITE.
71083         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
71084         e_expl.S.
71085         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
71086         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
71087         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
71088         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
71089         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
71090         USE_AS_EXP10L.
71091         (EXPL_FINITE): Likewise.
71092         (FLDLOG): Likewise.
71093         (c0): Likewise.
71094         (c1): Likewise.
71095         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
71096         Adjust comments for base varying.
71097         (__expl_finite): Change alias to EXPL_FINITE.
71098         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
71099         tests for bugs.
71100         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71101
71102         [BZ #14064]
71103         * math/libm-test.inc (check_float_internal): Correct ulp
71104         calculation for subnormal expected results.
71105
71106 2012-05-06  Andreas Jaeger  <aj@suse.de>
71107
71108         * Makeconfig (+math-flags): New, set to -frounding-math.
71109         (+cflags): Add +math-flags so that all of glibc gets compiled with
71110         it.
71111
71112         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
71113
71114 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
71115
71116         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
71117         Disable one test.
71118
71119         [BZ #13787]
71120         [BZ #13922]
71121         [BZ #14036]
71122         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
71123         (__ieee754_expl): Allow for and saturate large arguments.
71124         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
71125         (u_threshold): Likewise.
71126         (__exp): Call __ieee754_exp before checking for overflow and
71127         underflow.
71128         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
71129         (u_threshold): Likewise.
71130         (__expf): Call __ieee754_expf before checking for overflow and
71131         underflow.
71132         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
71133         (u_threshold): Likewise.
71134         (__expl): Call __ieee754_expl before checking for overflow and
71135         underflow.
71136         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
71137         (__ieee754_expl): Allow for and saturate large arguments.
71138         * math/libm-test.inc (exp_test): Add another test.  Do not allow
71139         missing overflow exception on overflow.
71140         (expm1_test): Do not allow missing overflow exception on overflow.
71141
71142         * sysdeps/i386/fpu/e_expl.c: Move to ...
71143         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
71144         rather than using inline asm.
71145         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
71146         * sysdeps/x86_64/fpu/e_expl.S: Copy from
71147         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
71148
71149         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
71150         (nice): Likewise.
71151         (poll): Likewise.
71152         (signal): Likewise.
71153         (time): Likewise.
71154         (times): Likewise.
71155
71156 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
71157
71158         * sysdeps/unix/syscalls.list (adjtime): Add entry from
71159         sysdeps/unix/common/syscalls.list.
71160         (fchmod): Likewise.
71161         (fchown): Likewise.
71162         (ftruncate): Likewise.
71163         (getrusage): Likewise.
71164         (gettimeofday): Likewise.
71165         (setpgid): Likewise.
71166         (setregid): Likewise.
71167         (setreuid): Likewise.
71168         (sigaction): Likewise.
71169         (truncate): Likewise.
71170         (vhangup): Likewise.
71171         * sysdeps/unix/common/syscalls.list: Remove file.
71172         * sysdeps/unix/bsd/Implies: Don't include unix/common.
71173         * sysdeps/unix/sysv/linux/Implies: Likewise.
71174
71175 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
71176
71177         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
71178         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
71179         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
71180         Moved to ...
71181         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
71182         Here.
71183         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
71184         to ...
71185         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
71186         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
71187         to ...
71188         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
71189         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
71190         to ...
71191         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
71192         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
71193         to ...
71194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
71195         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
71196         to ...
71197         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
71198         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
71199         to ...
71200         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
71201         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
71202         to ...
71203         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
71204         Here.
71205         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
71206         to ...
71207         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
71208         Here.
71209         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
71210         to ...
71211         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
71212         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
71213         Moved to ...
71214         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
71215         Here.
71216         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
71217         to ...
71218         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
71219
71220 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
71221
71222         * sysdeps/unix/common/bits/dirent.h: Remove file.
71223         * sysdeps/unix/common/bits/fcntl.h: Likewise.
71224
71225         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
71226         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
71227         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
71228         * sysdeps/unix/bsd/isatty.c: Likewise.
71229         * sysdeps/unix/bsd/tcdrain.c: Likewise.
71230         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
71231         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
71232
71233 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71234
71235         [BZ #13563]
71236         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
71237         long double comparison inaccuracies.
71238         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
71239         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
71240
71241 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
71242
71243         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
71244         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
71245
71246 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
71247
71248         [BZ #14049]
71249         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
71250         nonzero digits before rounding a hex value.
71251         * stdlib/tst-strtod.c (tests): Add another test.
71252
71253 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71254
71255         * sysdeps/s390/fpu/libm-test-ulps: Update.
71256
71257 2012-05-03  Andreas Jaeger  <aj@suse.de>
71258
71259         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
71260         does not get optimized out.
71261         (malloc_opt_barrier): New.
71262
71263 2012-05-03  Andreas Jaeger  <aj@suse.de>
71264             Roland McGrath  <roland@hack.frob.com>
71265
71266         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
71267         intermediate file deletion.
71268         (generated): Add .symlist files.
71269
71270 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
71271
71272         [BZ #13775]
71273         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
71274         Redirect under this condition.
71275         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
71276         [__USE_GNU] (__dprintf_chk): Not under this condition.
71277         [__USE_GNU] (__vdprintf_chk): Likewise.
71278         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
71279         under this condition.
71280         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
71281         [__USE_XOPEN2K8] (dprintf): Define under this condition.
71282         [__USE_XOPEN2K8] (vdprintf): Likewise.
71283         [__USE_GNU] (__dprintf_chk): Not under this condition.
71284         [__USE_GNU] (__vdprintf_chk): Likewise.
71285         [__USE_GNU] (dprintf): Likewise.
71286         [__USE_GNU] (vdprintf): Likewise.
71287
71288 2012-05-03  Roland McGrath  <roland@hack.frob.com>
71289
71290         * elf/Makefile (common-generated): Set this instead of generated for
71291         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
71292         $(all-built-dso)-derived lists.
71293
71294 2012-05-03  Andreas Jaeger  <aj@suse.de>
71295
71296         * sysdeps/i386/fpu/libm-test-ulps: Update.
71297
71298         * FAQ: Removed.
71299         * FAQ.in: Likewise.
71300         * scripts/gen-FAQ.pl: Likewise.
71301         * manual/install.texi (Installation): Point to online location of
71302         FAQ.
71303         * Makefile (files-for-dist): Remove FAQ.
71304         (FAQ): Remove.
71305
71306 2012-05-02  Allan McRae  <allan@archlinux.org>
71307
71308         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
71309         (LDFLAGS-reldepmod5.so): Likewise.
71310         (LDFLAGS-reldep6mod1.so): Likewise.
71311         (LDFLAGS-reldep6mod4.so): Likewise.
71312         (LDFLAGS-reldep8mod3.so): Likewise.
71313         (LDFLAGS-unload4mod1.so): Likewise.
71314         (LDFLAGS-unload4mod2.so): Likewise.
71315         (LDFLAGS-tst-initorder): Likewise.
71316         (LDFLAGS-tst-initordera2.so): Likewise.
71317         (LDFLAGS-tst-initordera3.so): Likewise.
71318         (LDFLAGS-tst-initordera4.so): Likewise.
71319         (LDFLAGS-tst-initorderb2.so): Likewise.
71320         (LDFLAGS-noload): Likewise.
71321         (LDFLAGS-next): Likewise.
71322         (LDFLAGS-order2mod1.so): Likewise.
71323         (LDFLAGS-order2mod2.so): Likewise.
71324         (LDFLAGS-tst-initorder2): Likewise.
71325         (LDFLAGS-tst-initorder2a.so): Likewise.
71326         (LDFLAGS-tst-initorder2b.so): Likewise.
71327         (LDFLAGS-tst-initorder2c.so): Likewise.
71328         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
71329
71330 2012-05-02  David S. Miller  <davem@davemloft.net>
71331
71332         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71333
71334 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
71335
71336         [BZ #14055]
71337         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
71338
71339 2012-05-02  Andreas Jaeger  <aj@suse.de>
71340
71341         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
71342         since we manipulate rounding mode.
71343         (CPPFLAGS-test-idouble.c): Likewise.
71344         (CPPFLAGS-test-ifloat.c): Likewise.
71345         (CFLAGS-test-ldouble.c): Likewise.
71346         (CFLAGS-test-double.c): Likewise.
71347         (CFLAGS-test-float.c): Likewise.
71348         (CFLAGS-test-misc.c): Likewise.
71349         (CFLAGS-test-test-fenv.c): Likewise.
71350
71351 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71352
71353         [BZ #2550]
71354         [BZ #2570]
71355         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
71356         comparisons to determine direction to adjust input.
71357
71358 2012-05-01  Roland McGrath  <roland@hack.frob.com>
71359
71360         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
71361         output to the target.
71362
71363         * scripts/localplt.awk: New file.
71364         * elf/Makefile ($(objpfx)check-localplt): Target removed.
71365         (check-localplt-CFLAGS): Variable removed.
71366         ($(all-built-dso:=.jmprel)): New static pattern rule.
71367         (generated): Add those targets.
71368         (localplt-built-dso): New variable.
71369         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
71370
71371         * elf/check-localplt.c: File removed.
71372
71373         * scripts/check-execstack.awk: New file.
71374         * elf/Makefile ($(objpfx)check-execstack): Target removed.
71375         (check-execstack-CFLAGS): Variable removed.
71376         ($(objpfx)check-execstack.h): Target removed.
71377         ($(objpfx)execstack-default): New target.
71378         (generated): Add that instead of check-execstack.h.
71379         ($(all-built-dso:=.phdr)): New static pattern rule.
71380         (generated): Add those targets.
71381         * elf/check-execstack.c: File removed.
71382
71383         * scripts/check-textrel.awk: New file.
71384         * elf/Makefile ($(objpfx)check-textrel): Target removed.
71385         (check-textrel-CFLAGS): Variable removed.
71386         (all-built-dso): Use := to define.o
71387         ($(all-built-dso:=.dyn)): New static pattern rule.
71388         (generated): Add those targets.
71389         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
71390         * config.make.in (READELF): New substituted variable.
71391         * elf/check-textrel.c: File removed.
71392
71393 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
71394
71395         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
71396         allow.
71397         * conform/data/ctype.h-data [C99-based standards] (isblank):
71398         Expect function.
71399         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
71400         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
71401         [ISO || ISO99 || ISO11] (*_t): Do not allow.
71402         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
71403         Specify type.  Require positive value.
71404         (EILSEQ): Likewise.
71405         (ERANGE): Likewise.
71406         [ISO || POSIX] (EILSEQ): Do not expect.
71407         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
71408         Specify type.  Require positive value.
71409         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
71410         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
71411         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
71412         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
71413         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
71414         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
71415         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
71416         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
71417         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
71418         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
71419         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
71420         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
71421         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
71422         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
71423         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
71424         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
71425         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
71426         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
71427         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
71428         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
71429         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
71430         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
71431         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
71432         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
71433         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
71434         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
71435         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
71436         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
71437         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
71438         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
71439         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
71440         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
71441         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
71442         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
71443         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
71444         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
71445         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
71446         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
71447         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
71448         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
71449         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
71450         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
71451         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
71452         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
71453         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
71454         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
71455         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
71456         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
71457         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
71458         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
71459         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
71460         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
71461         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
71462         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
71463         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
71464         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
71465         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
71466         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
71467         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
71468         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
71469         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
71470         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
71471         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
71472         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
71473         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
71474         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
71475         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
71476         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
71477         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
71478         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
71479         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
71480         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
71481         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
71482         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
71483         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
71484         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
71485         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
71486         Require >= 2.
71487         (FLT_ROUNDS): Expect as macro, not constant.
71488         (FLT_MANT_DIG): Use macro-int-constant.
71489         (DBL_MANT_DIG): Likewise.
71490         (LDBL_MANT_DIG): Likewise.
71491         (FLT_DIG): Likewise.
71492         (DBL_DIG): Likewise.
71493         (LDBL_DIG): Likewise.
71494         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
71495         (DBL_MIN_EXP): Likewise.
71496         (LDBL_MIN_EXP): Likewise.
71497         (FLT_MAX_EXP): Use macro-int-constant.
71498         (DBL_MAX_EXP): Likewise.
71499         (LDBL_MAX_EXP): Likewise.
71500         (FLT_MAX_10_EXP): Likewise.
71501         (DBL_MAX_10_EXP): Likewise.
71502         (LDBL_MAX_10_EXP): Likewise.
71503         (FLT_MAX): Use macro-constant.
71504         (DBL_MAX): Likewise.
71505         (LDBL_MAX): Likewise.
71506         (FLT_EPSILON): Use macro-constant.  Give upper bound.
71507         (DBL_EPSILON): Likewise.
71508         (LDBL_EPSILON): Likewise.
71509         (FLT_MIN): Likewise.
71510         (DBL_MIN): Likewise.
71511         (LDBL_MIN): Likewise.
71512         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
71513         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
71514         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
71515         [ISO11] (FLT_HAS_SUBNORM): Likewise.
71516         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
71517         [ISO11] (DBL_DECIMAL_DIG): Likewise.
71518         [ISO11] (FLT_DECIMAL_DIG): Likewise.
71519         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
71520         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
71521         [ISO11] (FLT_TRUE_MIN): Likewise.
71522         [ISO11] (LDBL_TRUE_MIN): Likewise.
71523         [ISO || ISO99 || ISO11] (*_t): Do not allow.
71524         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
71525         (SCHAR_MIN): Use macro-int-constant.  Specify type.
71526         (SCHAR_MAX): Likewise.
71527         (UCHAR_MAX): Likewise.
71528         (CHAR_MIN): Likewise.
71529         (CHAR_MAX): Likewise.
71530         (MB_LEN_MAX): Use macro-int-constant.
71531         (SHRT_MIN): Use macro-int-constant.  Specify type.
71532         (SHRT_MAX): Likewise.
71533         (USHRT_MAX): Likewise.
71534         (INT_MAX): Likewise.
71535         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
71536         bound negative.
71537         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
71538         bound with "U".
71539         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
71540         bound with "L".
71541         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
71542         bound negative.  Suffix upper bound with "L".
71543         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
71544         bound with "UL".
71545         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
71546         Specify type.
71547         [C99-based standards] (LLONG_MAX): Likewise.
71548         [C99-based standards] (ULLONG_MAX): Likewise.
71549         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
71550         == 0.
71551         [ISO11] (max_align_t): Require type.
71552         [ISO || ISO99 || ISO11] (*_t): Do not allow.
71553
71554         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
71555         from $CFLAGS, without defining away __attribute__ calls.
71556         (checknamespace): Use $CFLAGS_namespace.
71557
71558         * conform/conformtest.pl (@keywords): Only include C99 keywords
71559         for standards based on C99 or C11.
71560
71561         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
71562         Disable tests.
71563         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
71564         UNIX98]: Likewise.
71565
71566         * conform/conformtest.pl: Handle "macro-int-constant" and test for
71567         usability of symbols in #if.
71568
71569         * conform/conformtest.pl: If macro or constant types start
71570         "promoted:", expect the symbol to be of the following type
71571         promoted by the integer promotions.
71572
71573         * conform/conformtest.pl: Parse all "constant" and "macro" lines
71574         in one place.  Also handle "macro-constant".
71575
71576         * conform/conformtest.pl: Only accept expected macro values with
71577         "==".  Parse all "macro" lines in one place.
71578         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
71579
71580         * conform/conformtest.pl: Handle braced types on "constant" lines
71581         instead of handling "typed-constant".
71582         * conform/data/signal.h-data: Use "constant" instead of
71583         "typed-constant".
71584
71585         * conform/conformtest.pl: Handle "optional-" at start of lines in
71586         one place rather than duplicating several cases.  Handle each
71587         format of "macro" line with initial "optional-".
71588
71589         * conform/conformtest.pl: Only accept expected constant or
71590         optional-constant values with "==".  Parse all "constant" lines in
71591         one place.  Parse all "optional-constant" lines in one place.
71592         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
71593         * conform/data/fmtmsg.h-data: Likewise.
71594         * conform/data/netinet/in.h-data: Likewise.
71595         * conform/data/tar.h-data: Likewise.
71596         * conform/data/limits.h-data: Use "==" form on "constant" and
71597         "optional-constant" lines.
71598
71599         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
71600         Use -std=c99 for XOPEN2K.
71601         (@knownproblems): Remove.
71602         (newtoken): Don't check %isknown.
71603
71604         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
71605         Do not expect macro.
71606         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
71607         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
71608         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
71609         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
71610         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
71611         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
71612         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
71613         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
71614         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
71615         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
71616         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
71617         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
71618         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
71619         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
71620         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
71621         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
71622         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
71623         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
71624         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
71625         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
71626         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
71627         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
71628         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
71629         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
71630         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
71631         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
71632         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
71633         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
71634         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
71635         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
71636         [XPG3] (acosh): Likewise.
71637         [XPG3] (asinh): Likewise.
71638         [XPG3] (atanh): Likewise.
71639         [XPG3] (cbrt): Likewise.
71640         [XPG3] (expm1): Likewise.
71641         [XPG3] (ilogb): Likewise.
71642         [XPG3] (log1p): Likewise.
71643         [XPG3] (logb): Likewise.
71644         [XPG3] (nextafter): Likewise.
71645         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
71646         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
71647         [XPG3] (remainder): Likewise.
71648         [XPG3] (rint): Likewise.
71649         [XPG3 || XPG4 || UNIX98] (round): Likewise.
71650         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
71651         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
71652         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
71653         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
71654         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
71655         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
71656         [UNIX98 || XOPEN2K] (scalb): Expect.
71657         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
71658         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
71659         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
71660         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
71661         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
71662         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
71663         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
71664         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
71665         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
71666         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
71667         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
71668         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
71669         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
71670         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
71671         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
71672         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
71673         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
71674         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
71675         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
71676         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
71677         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
71678         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
71679         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
71680         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
71681         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
71682         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
71683         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
71684         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
71685         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
71686         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
71687         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
71688         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
71689         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
71690         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
71691         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
71692         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
71693         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
71694         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
71695         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
71696         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
71697         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
71698         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
71699         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
71700         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
71701         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
71702         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
71703         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
71704         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
71705         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
71706         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
71707         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
71708         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
71709         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
71710         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
71711         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
71712         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
71713         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
71714         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
71715         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
71716         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
71717         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
71718         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
71719         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
71720         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
71721         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
71722         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
71723         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
71724         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
71725         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
71726         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
71727         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
71728         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
71729         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
71730         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
71731         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
71732         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
71733         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
71734         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
71735         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
71736         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
71737         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
71738         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
71739         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
71740         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
71741         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
71742         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
71743         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
71744         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
71745         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
71746         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
71747         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
71748         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
71749         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
71750         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
71751         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
71752         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
71753         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
71754         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
71755         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
71756         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
71757         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
71758         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
71759         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
71760         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
71761         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
71762         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
71763         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
71764         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
71765         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
71766         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
71767         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
71768         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
71769         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
71770         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
71771         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
71772         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
71773         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
71774         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
71775         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
71776         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
71777         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
71778         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
71779         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
71780         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
71781         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
71782         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
71783         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
71784         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
71785         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
71786         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
71787         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
71788         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
71789         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
71790         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
71791         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
71792         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
71793         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
71794
71795         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
71796         _XOPEN_SOURCE_EXTENDED for XPG4.
71797
71798         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
71799
71800         * Makeconfig (localtime): Remove variable.
71801         (inst_localtime-file): Likewise.
71802
71803 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
71804
71805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
71806         Update.
71807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
71808         Update.
71809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
71810         Update.
71811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
71812         Update.
71813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
71814         Update.
71815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
71816         Update.
71817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
71818         Update.
71819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
71820         Update.
71821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
71822         Update.
71823
71824 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
71825
71826         [BZ #2550]
71827         [BZ #2570]
71828         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
71829         comparisons to determine direction to adjust input.
71830         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
71831         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
71832         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
71833         Likewise.
71834         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
71835         Likewise.
71836         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
71837         Likewise.
71838         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
71839         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
71840         Likewise.
71841         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
71842         Likewise.
71843         * math/libm-test.inc (nexttoward_test): Add more tests.
71844
71845 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
71846
71847         [BZ #14040]
71848         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
71849         in version GLIBC_2.1, not GLIBC_2.0.
71850         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
71851         Likewise.
71852
71853 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
71854
71855         [BZ #13942]
71856         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
71857         (1 - x) * (1 + x).
71858         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71859         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
71860         * math/libm-test.inc (acos_test): Add more tests.
71861         (asin_test): Likewise.
71862         * sysdeps/i386/fpu/libm-test-ulps: Update.
71863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71864
71865         [BZ #14034]
71866         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
71867         of square root.
71868         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
71869         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71870         * math/libm-test.inc (acos_test_tonearest): New function.
71871         (acos_test_towardzero): Likewise.
71872         (acos_test_downward): Likewise.
71873         (acos_test_upward): Likewise.
71874         (asin_test_tonearest): Likewise.
71875         (asin_test_towardzero): Likewise.
71876         (asin_test_downward): Likewise.
71877         (asin_test_upward): Likewise.
71878         (main): Call the new functions.
71879         * sysdeps/i386/fpu/libm-test-ulps: Update.
71880         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71881
71882         [BZ #13884]
71883         [BZ #13924]
71884         * math/e_exp10.c: Include <float.h>.
71885         (__ieee754_exp10): Handle underflow here rather than multiplying
71886         large negative argument by M_LN10.
71887         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
71888         of __ieee754_expf.
71889         * math/e_exp10l.c: Include <float.h>.
71890         (__ieee754_exp10l): Handle underflow here rather than multiplying
71891         large negative argument by M_LN10l.
71892         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
71893         spurious overflow exception on underflow.
71894
71895 2012-04-29  Marek Polacek  <polacek@redhat.com>
71896
71897         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
71898         (__fortify_function): New macro.
71899         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
71900         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
71901         __extern_always_inline.
71902         * libio/bits/stdio2.h: Likewise.
71903         * libio/bits/stdio.h: Likewise.
71904         * string/string.h: Likewise.
71905         * string/bits/string3.h: Likewise.
71906         * include/stdio.h: Likewise.
71907         * stdlib/bits/stdlib.h: Likewise.
71908         * stdlib/stdlib.h: Likewise.
71909         * rt/bits/mqueue2.h: Likewise.
71910         * rt/mqueue.h: Likewise.
71911         * posix/bits/unistd.h: Likewise.
71912         * posix/unistd.h: Likewise.
71913         * io/bits/poll2.h: Likewise.
71914         * io/bits/fcntl2.h: Likewise.
71915         * io/fcntl.h: Likewise.
71916         * io/sys/poll.h: Likewise.
71917         * misc/bits/syslog.h: Likewise.
71918         * misc/bits/syslog-ldbl.h: Likewise.
71919         * misc/sys/syslog.h: Likewise.
71920         * socket/bits/socket2.h: Likewise.
71921         * socket/sys/socket.h: Likewise.
71922         * debug/tst-chk1.c: Likewise.
71923         * wcsmbs/bits/wchar2.h: Likewise.
71924         * wcsmbs/bits/wchar-ldbl.h: Likewise.
71925         * wcsmbs/wchar.h: Likewise.
71926
71927 2012-04-29  Andreas Jaeger  <aj@suse.de>
71928
71929         * Makerules (tests): Remove enable-check-abi protection.
71930         (check-abi-warn): Remove.
71931         (check-abi-%): Remove check-abi-warn usage.
71932
71933         * configure.in: Remove check-abi configure option.
71934         * configure: Regenerated.
71935         * config.make.in (enable-check-abi): Remove.
71936
71937 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
71938
71939         [BZ #14033]
71940         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
71941         double functions to double *_finite functions.
71942
71943         [BZ #13941]
71944         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
71945         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
71946         LDBL_MIN_EXP.
71947         * stdio-common/Makefile (tests): Add tst-sprintf3.
71948         * stdio-common/tst-sprintf3.c: New file.
71949
71950         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
71951         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
71952
71953 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71954
71955         * conform/conformtest.pl: Remove duplicate typed-constant
71956         handling.
71957
71958 2012-04-28  David S. Miller  <davem@davemloft.net>
71959
71960         * Makerules (%.abilist): Add vpath on sysdep_dirs.
71961         (check-abi-%): Remove AWK script prerequisite and explicit
71962         abilist directory.
71963         (check-abi): Rewrite to just diff the symlist with the abilist.
71964         (config-tls, config-abi-config): Delete, no longer used.
71965         (update-abi-%): Remove AWK script and explicit abilist directory.
71966         (update-abi): Rewrite to simply compare and conditionally copy the
71967         symlist and the sysdep abilist file.  Remove update-abi-config
71968         checks.
71969         * abilist/ld.abilist: Remove.
71970         * abilist/libBrokenLocale.abilist: Remove.
71971         * abilist/libanl.abilist: Remove.
71972         * abilist/libcrypt.abilist: Remove.
71973         * abilist/libdl.abilist: Remove.
71974         * abilist/librt.abilist: Remove.
71975         * abilist/libthread_db.abilist: Remove.
71976         * abilist/libutil.abilist: Remove.
71977         * scripts/extract-abilist.awk: Remove.
71978         * scripts/merge-abilist.awk: Remove.
71979         * sysdeps/generic/libcidn.abilist: New file.
71980         * sysdeps/generic/libnss_compat.abilist: New file.
71981         * sysdeps/generic/libnss_db.abilist: New file.
71982         * sysdeps/generic/libnss_dns.abilist: New file.
71983         * sysdeps/generic/libnss_files.abilist: New file.
71984         * sysdeps/generic/libnss_hesiod.abilist: New file.
71985         * sysdeps/generic/libnss_nis.abilist: New file.
71986         * sysdeps/generic/libnss_nisplus.abilist: New file.
71987         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
71988         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
71989         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
71990         file.
71991         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
71992         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
71993         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
71994         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
71995         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
71996         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
71997         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
71998         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
71999         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
72000         file.
72001         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
72002         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
72003         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
72004         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
72005         file.
72006         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
72007         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
72008         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
72009         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
72010         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
72011         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
72012         file.
72013         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
72014         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
72015         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
72016         file.
72017         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
72018         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
72019         New file.
72020         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
72021         New file.
72022         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
72023         New file.
72024         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
72025         New file.
72026         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
72027         New file.
72028         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
72029         New file.
72030         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
72031         New file.
72032         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
72033         New file.
72034         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
72035         New file.
72036         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
72037         New file.
72038         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
72039         New file.
72040         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
72041         New file.
72042         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
72043         New file.
72044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
72045         file.
72046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
72047         New file.
72048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
72049         New file.
72050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
72051         file.
72052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
72053         New file.
72054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
72055         New file.
72056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
72057         file.
72058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
72059         New file.
72060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
72061         New file.
72062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
72063         New file.
72064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
72065         New file.
72066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
72067         New file.
72068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
72069         New file.
72070         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
72071         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
72072         file.
72073         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
72074         New file.
72075         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
72076         file.
72077         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
72078         file.
72079         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
72080         file.
72081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
72082         file.
72083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
72084         file.
72085         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
72086         New file.
72087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
72088         file.
72089         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
72090         file.
72091         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
72092         New file.
72093         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
72094         file.
72095         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
72096         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
72097         file.
72098         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
72099         New file.
72100         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
72101         file.
72102         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
72103         file.
72104         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
72105         file.
72106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
72107         file.
72108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
72109         file.
72110         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
72111         New file.
72112         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
72113         file.
72114         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
72115         file.
72116         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
72117         New file.
72118         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
72119         file.
72120         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
72121         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
72122         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
72123         file.
72124         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
72125         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
72126         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
72127         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
72128         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
72129         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
72130         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
72131         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
72132         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
72133         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
72134         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
72135         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
72136         file.
72137         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
72138         New file.
72139         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
72140         file.
72141         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
72142         file.
72143         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
72144         file.
72145         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
72146         file.
72147         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
72148         file.
72149         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
72150         New file.
72151         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
72152         New file.
72153         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
72154         file.
72155         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
72156         New file.
72157         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
72158         file.
72159         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
72160         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
72161         file.
72162         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
72163         New file.
72164         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
72165         file.
72166         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
72167         file.
72168         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
72169         file.
72170         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
72171         file.
72172         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
72173         file.
72174         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
72175         New file.
72176         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
72177         New file.
72178         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
72179         file.
72180         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
72181         New file.
72182         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
72183         file.
72184
72185 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
72186
72187         * conform/conformtest.pl: Fix typo in handling typed-constant from
72188         allow-header.
72189
72190 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
72191
72192         * README: Cut down references to pre-2.6 Linux kernels and
72193         Linuxthreads.  Update lists of configurations in libc and ports
72194         and sort alphabetically.  Say "or newer" with Linux kernel version
72195         requirements.
72196
72197         * config.h.in [IS_IN_build]: Allow compiling without optimization.
72198
72199 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
72200
72201         [BZ #887]
72202         * math/libm-test.inc (logb_test_downward): New test to expose
72203         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
72204         rounding mode.
72205
72206 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
72207
72208         [BZ #14027]
72209         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
72210         to be done.
72211         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
72212         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
72213
72214 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
72215
72216         * sysdeps/unix/i386/brk.S: Remove file.
72217         * sysdeps/unix/i386/dl-brk.S: Likewise.
72218         * sysdeps/unix/i386/pipe.S: Likewise.
72219         * sysdeps/unix/i386/sigreturn.S: Likewise.
72220         * sysdeps/unix/i386/syscall.S: Likewise.
72221         * sysdeps/unix/i386/vfork.S: Likewise.
72222         * sysdeps/unix/i386/wait.S: Likewise.
72223
72224         * sysdeps/unix/common/tcsendbrk.c: Move to ...
72225         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
72226
72227         * configure.in (arm*-none*): Do not allow without
72228         --enable-hacker-mode.
72229         (netbsd*): Remove case setting base_os.
72230         (386bsd*): Likewise.
72231         (freebsd*): Likewise.
72232         (bsdi*): Likewise.
72233         (osf*): Likewise.
72234         (sunos*): Likewise.
72235         (ultrix*): Likewise.
72236         (newsos*): Likewise.
72237         (dynix*): Likewise.
72238         (*bsd*): Likewise.
72239         (sysv*): Likewise.
72240         (isc*): Likewise.
72241         (esix*): Likewise.
72242         (sco*): Likewise.
72243         (minix*): Likewise.
72244         (irix4*): Likewise.
72245         (irix6*): Likewise.
72246         (solaris[2-9]*): Likewise.
72247         (none): Likewise.
72248         * configure: Regenerated.
72249
72250 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72251
72252         [BZ #11521]
72253         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
72254         overflow or cancellation in calculating denominator.
72255         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
72256         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
72257         down expression to avoid unexpected rounding in newer GCCs.
72258         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
72259
72260 2012-04-26  David S. Miller  <davem@davemloft.net>
72261
72262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
72263         long-double compat symbols.
72264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
72265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
72266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
72267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
72268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
72269         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
72270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
72271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
72272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
72273         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
72274         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
72275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
72276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
72277
72278 2012-04-25  David S. Miller  <davem@davemloft.net>
72279
72280         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
72281         HWCAP_* values only after the memory barriers have been defined.
72282         (atomic_full_barrier): Define.
72283         (atomic_read_barrier): Define.
72284         (atomic_write_barrier): Define.
72285
72286 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
72287
72288         * shlib-versions: Add libgcc_s version information.
72289         * sysdeps/generic/libgcc_s.h: Remove.
72290         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
72291         libgcc_s.h.
72292         * sysdeps/gnu/unwind-resume.c: Likewise.
72293         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
72294
72295 2012-04-25  David S. Miller  <davem@davemloft.net>
72296
72297         * sysdeps/unix/sparc/brk.S: Delete.
72298         * sysdeps/unix/sparc/dl-brk.S: Delete.
72299         * sysdeps/unix/sparc/pipe.S: Delete.
72300         * sysdeps/unix/sparc/sysdep.S: Delete.
72301         * sysdeps/unix/sparc/sysdep.h: Delete.
72302         * sysdeps/unix/sparc/vfork.S: Delete.
72303         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
72304         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
72305         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
72306         (ret_ERRVAL, r0, r1, MOVE): Define.
72307         (JUMPTARGET): Remove.
72308         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
72309         sysdeps/unix/sparc/sysdep.h
72310         (ENTRY, END): Remove.
72311         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72312
72313 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
72314
72315         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
72316         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
72317         -DIS_IN_build.
72318
72319         * timezone/README: Update upstream location and email address for
72320         tzcode and tzdata.
72321         * timezone/zdump.c: Update from tzcode 2012b.
72322         * timezone/zic.c: Likewise.
72323
72324         * configure.in (libc_cv_as_needed): Remove test.
72325         * configure: Regenerated.
72326         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
72327         conditional definition.
72328         [$(have-as-needed) != yes] (no-as-needed): Likewise.
72329         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
72330         * config.make.in (have-as-needed): Remove variable.
72331
72332 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
72333             Paul Pluzhnikov  <ppluzhnikov@google.com>
72334
72335         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
72336         strings correctly.
72337
72338 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
72339
72340         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
72341         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
72342         * sysdeps/sh/strlen.S: Likewise.
72343
72344 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
72345
72346         * sysdeps/unix/fork.S: Remove file.
72347         * sysdeps/unix/i386/fork.S: Likewise.
72348         * sysdeps/unix/sparc/fork.S: Likewise.
72349
72350         * sysdeps/unix/system.c: Remove file.
72351         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
72352
72353         * sysdeps/unix/getegid.S: Remove file.
72354         * sysdeps/unix/geteuid.S: Likewise.
72355
72356 2012-04-24  Roland McGrath  <roland@hack.frob.com>
72357
72358         * scripts/check-localplt.awk: New file.
72359         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
72360         of diff.
72361         * scripts/data/localplt-generic.data: Add a comment.
72362
72363         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
72364         NODE when __dir_mkfile failed.
72365         * sysdeps/mach/hurd/symlinkat.c: Likewise.
72366         Reported by Ludovic Courtès <ludo@gnu.org>.
72367
72368 2012-04-24  Andreas Jaeger  <aj@suse.de>
72369
72370         * Makerules (common-clean): Also remove gen-as-const-headers
72371         files.
72372
72373 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
72374
72375         * Makerules (native-compile): Do not change working directory for
72376         build.  Use $(OUTPUT_OPTION) in command.
72377         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
72378
72379 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72380
72381         [BZ #13886]
72382         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
72383         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
72384         * math/libm-test.inc (floor_test): Add more tests.
72385         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
72386
72387 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
72388
72389         * sysdeps/unix/getdents.c: Remove file.
72390         * sysdeps/unix/sysv/getdents.c: Likewise.
72391         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
72392
72393         * sysdeps/unix/syscalls.list (madvise): Add syscall from
72394         sysdeps/unix/mman/syscalls.list.
72395         (mmap): Likewise.
72396         (mprotect): Likewise.
72397         (msync): Likewise.
72398         (munmap): Likewise.
72399         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
72400         * sysdeps/unix/mman/syscalls.list: Remove.
72401         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
72402
72403         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
72404         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
72405         * configure: Regenerated.
72406         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
72407         $(libgcc_s_suffix).
72408         * config.make.in (libgcc_s_suffix): Remove variable.
72409
72410 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
72411
72412         * sysdeps/unix/sysv/gethostname.c: Move to ...
72413         * sysdeps/posix/gethostname.c: ... here.
72414
72415         * sysdeps/unix/execve.S: Remove file.
72416
72417         * sysdeps/unix/_exit.S: Remove file.
72418
72419 2012-04-23  Andreas Jaeger  <aj@suse.de>
72420
72421         [BZ #13739]
72422         * manual/Makefile: Remove make dist support, there's no
72423         need for a stand-alone documentation tar ball.
72424         (TEXI2DVI): Define always, it's not in Makeconfig.
72425         (dist): Removed.
72426         (tar-it): Removed.
72427         (edition): Removed.
72428         (glibc-doc-$(edition).tar): Removed
72429         (%.Z): Removed.
72430         (%.gz): Removed.
72431         (%.uu): Removed.
72432         (ETAGS): Remove, it's in Makeconfig.
72433         (move-if-change): Remove, it's in Makeconfig.
72434
72435 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
72436
72437         [BZ #13970]
72438         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
72439         (strtod, strtof, strtold, strtol, strtoul, strtoq)
72440         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
72441         (strtod_l, strtof_l, strtold_l): Remove __wur.
72442         It is not necessarily an error to ignore strtol's return value.
72443         One can reliably look at the stored endptr to decide whether
72444         the number had valid syntax.
72445
72446 2012-04-21  Andreas Jaeger  <aj@suse.de>
72447
72448         [BZ #13739]
72449         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
72450
72451 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
72452
72453         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
72454         * sysdeps/unix/sysv/Versions: Remove file.
72455
72456 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
72457
72458         [BZ #13927]
72459         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72460
72461 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
72462
72463         [BZ #7064]
72464         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
72465         version from __vm86.
72466
72467 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
72468
72469         * sysdeps/unix/common/lxstat.c: Remove file.
72470         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
72471
72472         * sysdeps/unix/sysv/Makefile: Remove file.
72473
72474         * sysdeps/unix/sysv/direct.h: Remove file.
72475
72476         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
72477         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
72478         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
72479         * sysdeps/unix/sysv/bits/signum.h: Likewise.
72480         * sysdeps/unix/sysv/bits/stat.h: Likewise.
72481         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
72482         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
72483
72484         * sysdeps/unix/sysv/setrlimit.c: Remove file.
72485
72486         * sysdeps/unix/xmknod.c: Remove file.
72487         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
72488
72489         * sysdeps/unix/sysv/settimeofday.c: Remove file.
72490
72491         * sysdeps/unix/sysv/i386/time.S: Remove file.
72492
72493         * sysdeps/unix/fxstat.c: Remove file.
72494         * sysdeps/unix/xstat.c: Likewise.
72495         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
72496
72497         * sysdeps/unix/sysv/sigaction.c: Remove file.
72498
72499         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
72500         (sysdep_headers): Remove variable.
72501         [termio.h not in sysdep_headers] (generated): Likewise.
72502         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
72503         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
72504         * sysdeps/unix/sysv/tcdrain.c: Likewise.
72505         * sysdeps/unix/sysv/tcflow.c: Likewise.
72506         * sysdeps/unix/sysv/tcflush.c: Likewise.
72507         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
72508         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
72509         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
72510         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
72511         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
72512
72513         * sysdeps/unix/siglist.c: Remove file.
72514
72515         * sysdeps/unix/getppid.S: Remove file.
72516
72517         * sysdeps/unix/mkdir.c: Remove file.
72518         * sysdeps/unix/rmdir.c: Likewise.
72519
72520 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
72521
72522         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
72523         ERR_MAX value.
72524         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
72525         errlist-compat value.
72526
72527 2012-04-18  David S. Miller  <davem@davemloft.net>
72528
72529         * sysdeps/generic/memcopy.h (reg_char): Delete.
72530         * debug/strcat_chk.c: Use char, not reg_char.
72531         * debug/strcpy_chk.c: Likewise.
72532         * debug/strncat_chk.c: Likewise.
72533         * debug/strncpy_chk.c: Likewise.
72534         * string/memchr.c: Likewise.
72535         * string/memrchr.c: Likewise.
72536         * string/rawmemchr.c: Likewise.
72537         * string/strcat.c: Likewise.
72538         * string/strchr.c: Likewise.
72539         * string/strchrnul.c: Likewise.
72540         * string/strcmp.c: Likewise.
72541         * string/strcpy.c: Likewise.
72542         * string/strncat.c: Likewise.
72543         * string/strncmp.c: Likewise.
72544         * string/strncpy.c: Likewise.
72545
72546 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
72547
72548         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
72549         __builtin_memcopy is called when src and dest ranges are known to not
72550         overlap.
72551
72552 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
72553
72554         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
72555         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
72556         fwd_align_merge macro call.
72557         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
72558         bwd_align_merge macro call.
72559         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
72560
72561 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
72562
72563         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
72564         bwd_align_merge macros.
72565         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
72566         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
72567         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
72568
72569 2012-04-18  David S. Miller  <davem@davemloft.net>
72570
72571         * sysdeps/sparc/sparc64/memcopy.h: Delete.
72572
72573 2012-04-18  Andreas Jaeger  <aj@suse.de>
72574
72575         [BZ# 6794]
72576         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
72577         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
72578         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
72579
72580         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
72581         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
72582         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
72583
72584         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
72585         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
72586         Adjust for changed ldbl-128 files.
72587
72588         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
72589         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
72590         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
72591
72592 2012-04-17  David S. Miller  <davem@davemloft.net>
72593
72594         * sysdeps/sparc/sparc32/memcopy.h: Delete.
72595
72596 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
72597
72598         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
72599         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
72600         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
72601         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
72602         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
72603         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
72604
72605 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72606
72607         [BZ #6794]
72608         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
72609         * math/libm-test.inc: Add ilogb errno and exception tests.
72610         * math/w_ilogb.c: New file: ilogb wrapper.
72611         * math/w_ilogbf.c: New file: ilogbf wrapper.
72612         * math/w_ilogbl.c: New file: ilogbl wrapper.
72613         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
72614         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
72615         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
72616         exception being thrown with 0.0 as argument.
72617         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
72618         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
72619         exception being thrown with 0.0 as argument.
72620         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
72621         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
72622         exception being thrown with 0.0 as argument.
72623         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
72624         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
72625         exception being thrown with 0.0 as argument.
72626         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
72627         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
72628         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
72629         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
72630         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
72631         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
72632         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
72633         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
72634         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
72635
72636 2012-04-17  Petr Baudis  <pasky@ucw.cz>
72637
72638         * include/sys/uio.h: Change __vector to __iovec to avoid clash
72639         with altivec.
72640
72641 2012-04-16  Marek Polacek  <polacek@redhat.com>
72642
72643         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
72644
72645 2012-04-16  Marek Polacek  <polacek@redhat.com>
72646
72647         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
72648         operands of fdivp instruction.
72649
72650 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
72651
72652         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
72653         * elf/tst-auditmod3b.c: Likewise.
72654         * elf/tst-auditmod4b.c: Likewise.
72655         * elf/tst-auditmod5b.c: Likewise.
72656         * elf/tst-auditmod6b.c: Likewise.
72657         * elf/tst-auditmod6c.c: Likewise.
72658         * elf/tst-auditmod7b.c: Likewise.
72659         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
72660         * sysdeps/x86_64/preconfigure.in: Likewise.
72661         * sysdeps/x86_64/preconfigure: Regenerated.
72662
72663 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
72664
72665         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
72666         __ILP32__.
72667
72668 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
72669
72670         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
72671         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
72672
72673 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
72674
72675         [BZ #13973]
72676         * locale/iso-639.def: Fix gl language name. Spotted by
72677         Yaron Shahrabani.
72678
72679 2012-04-12  Roland McGrath  <roland@hack.frob.com>
72680
72681         [BZ #2074]
72682         * libio/libio.h (__io_write_fn): Update comment.
72683
72684 2012-04-12  Petr Baudis  <pasky@ucw.cz>
72685
72686         [BZ #2074]
72687         * stdio.texi (Hook Functions): The user provided writer function
72688         is not allowed to return -1.
72689
72690 2012-04-11  David S. Miller  <davem@davemloft.net>
72691
72692         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72693
72694 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
72695
72696         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
72697         Add a leading slash to rtkaio.
72698
72699 2012-04-11  Jim Meyering  <meyering@redhat.com>
72700
72701         [BZ #11959]
72702         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
72703         It is not necessarily an error to ignore fwrite's return
72704         value.  One can reliably use ferror to test for errors after
72705         the fact.
72706
72707 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
72708
72709         * bits/types.h (__snseconds_t): New type.
72710         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
72711
72712         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
72713         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
72714         (__SNSECONDS_T_TYPE): Likewise.
72715         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
72716         (__SNSECONDS_T_TYPE): Likewise.
72717         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72718         (__SNSECONDS_T_TYPE): Likewise.
72719
72720 2012-04-10  Andreas Jaeger  <aj@suse.de>
72721
72722         [BZ #2636]
72723         * manual/time.texi (Processor Time): Return type of times is
72724         elapsed real time since an arbitrary point in the past.
72725         (CPU Time): Move CLK_TCK from here...
72726         (Processor Time): ...to here.  Correct description.
72727         * manual/conf.texi (Constants for Sysconf): Correct description of
72728         _SC_CLK_TCK.
72729
72730 2012-04-10  David S. Miller  <davem@davemloft.net>
72731
72732         [BZ #13967]
72733         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
72734         where the is a gap between DT_REL(A) and DT_JMPREL.
72735
72736 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
72737
72738         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
72739         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
72740         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
72741
72742 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
72743
72744         * elf/dl-support.c (_dl_inhibit_cache): New variable.
72745         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
72746         (dl_main): Handle --inhibit-cache.
72747         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
72748         _dl_inhibit_cache.
72749         * elf/dl-load.c (_dl_map_object): Use it.
72750         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
72751
72752 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
72753
72754         [BZ #13872]
72755         * sysdeps/i386/fpu/e_powl.S (p78): New object.
72756         (__ieee754_powl): Saturate large exponents rather than testing for
72757         overflow of y*log2(x).
72758         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72759         * math/libm-test.inc (pow_test): Do not permit spurious overflow
72760         exceptions.
72761
72762         [BZ #11521]
72763         * math/s_ctan.c: Include <float.h>.
72764         (__ctan): Avoid internal overflow or cancellation in calculating
72765         denominator.
72766         * math/s_ctanf.c: Likewise.
72767         * math/s_ctanl.c: Likewise.
72768         * math/s_ctanh.c: Likewise.
72769         * math/s_ctanhf.c: Likewise.
72770         * math/s_ctanhl.c: Likewise.
72771         * math/libm-test.inc (ctan_test): Add more tests.
72772         (ctanh_test): Likewise.
72773         * sysdeps/i386/fpu/libm-test-ulps: Update.
72774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72775
72776 2012-04-09  Andreas Jaeger  <aj@suse.de>
72777
72778         [BZ #6894]
72779         * manual/filesys.texi (Directory Entries): Mention that d_namlen
72780         is an optional BSD extension.
72781
72782         [BZ #10254]
72783         * manual/stdio.texi (Opening Streams): Document additional fopen
72784         parameters.
72785
72786 2012-04-09  Roland McGrath  <roland@hack.frob.com>
72787
72788         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
72789         %eax without telling the compiler.
72790
72791 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
72792
72793         [BZ # 13963]
72794         * manual/install.texi: Use sourceware.org.
72795
72796 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
72797
72798         [BZ #13873]
72799         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
72800         (__ieee754_pow): Generate overflow and underflow using huge*huge
72801         and tiny*tiny rather than just returning constant infinity or zero
72802         for large exponents.
72803         * math/libm-test.inc (pow_test): Require overflow exceptions for
72804         applicable cases of large exponents.
72805
72806         [BZ #706]
72807         * sysdeps/i386/fpu/e_pow.S (p10): New object.
72808         (__ieee754_pow): Use iterative multiplication algorithm only for
72809         integer exponents with absolute value below 1024.  Check for odd
72810         integer exponents when using algorithm for real exponents.
72811         * math/libm-test.inc (pow_test): Add more tests.
72812         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72813
72814 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
72815
72816         [BZ #13705]
72817         * math/libm-test.inc (exp_test): Do not allow overflow exception
72818         on underflow test.
72819
72820 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
72821
72822         [BZ #13705]
72823         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
72824         instead of __kernel_standard_f.
72825
72826 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
72827
72828         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
72829         * sysdeps/x86_64/memset_chk.S: Likewise.
72830
72831 2012-04-08  Andreas Jaeger  <aj@suse.de>
72832
72833         [BZ #10153]
72834         * manual/startup.texi (Environment Access): Describe return value
72835         for putenv and setenv.
72836
72837         [BZ #6895]
72838         * manual/filesys.texi (Directory Entries): Add description for
72839         DT_LNK.
72840
72841         [BZ #6890]
72842         * manual/filesys.texi (Directory Entries): Clarify that it's file
72843         system not operating system in the description of DT_UNKNOWN.
72844
72845         [BZ #6578]
72846         * manual/syslog.texi (closelog): Fix reference, it's openlog.
72847
72848 2012-04-08  Stephen Compall  <s11@member.fsf.org>
72849
72850         [BZ #6649]
72851         * manual/llio.texi (Opening and Closing Files): Add cross
72852         reference to explain mode argument.
72853
72854 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
72855
72856         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
72857         * sysdeps/x86_64/memset_chk.S: Likewise.
72858
72859 2012-04-07  David S. Miller  <davem@davemloft.net>
72860
72861         * elf/elf.h (R_SPARC_WDISP10): Define.
72862         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
72863         R_SPARC_SIZE32.
72864         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
72865         R_SPARC_SIZE64 and R_SPARC_H34.
72866
72867 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
72868
72869         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
72870         conditions and remove no longer applicable assertion.
72871
72872 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72873
72874         * bits/byteswap.h: Include <features.h>.
72875         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
72876         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
72877
72878 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72879
72880         * bits/byteswap.h (__bswap_16): Removed.
72881         Include <bits/byteswap-16.h> to get __bswap_16.
72882         * sysdeps/i386/bits/byteswap.h: Likewise.
72883         * sysdeps/s390/bits/byteswap.h: Likewise.
72884         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72885         * bits/byteswap-16.h: New file.
72886         * sysdeps/i386/bits/byteswap-16.h: Likewise.
72887         * sysdeps/s390/bits/byteswap-16.h: Likewise.
72888         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
72889         * string/Makefile (headers): Add bits/byteswap-16.h.
72890
72891 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
72892
72893         [BZ #13895]
72894         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
72895         extra indirection.
72896         * nss/Makefile (tests-static, tests): Add tst-nss-static.
72897         * nss/tst-nss-static.c: New.
72898
72899 2012-04-06  Robert Millan  <rmh@gnu.org>
72900
72901         [BZ #6486]
72902         * manual/llio.texi (File Position Primitive): lseek
72903         refers to WHENCE when it really means OFFSET.
72904
72905 2012-04-06  Andreas Jaeger  <aj@suse.de>
72906
72907         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
72908         strncmp declarations.
72909
72910         * abilist/libc.abilist: Add __poll and __ppoll.
72911
72912 2012-04-05  David S. Miller  <davem@davemloft.net>
72913
72914         * scripts/check-local-headers.sh: Accept a host triplet in the
72915         path matched by the exclude regexp.
72916
72917         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
72918         definition.
72919         * sysdeps/powerpc/powerpc32/dl-machine.h
72920         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
72921         * sysdeps/s390/s390-32/dl-machine.h
72922         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72923         * sysdeps/sparc/sparc32/dl-machine.h
72924         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72925         * sysdeps/sparc/sparc64/dl-machine.h
72926         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72927
72928         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
72929         lazy binding.
72930         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
72931         undefined symbol errors.
72932
72933         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
72934         DT_NEEDED entries.
72935
72936 2012-04-05  Michael Matz  <matz@suse.de>
72937
72938         [BZ #13592]
72939         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
72940
72941 2012-04-05  Andreas Jaeger  <aj@suse.de>
72942
72943         [BZ #13908]
72944         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
72945         comment.
72946
72947 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72948
72949         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
72950         which ROUND is no valid rounding mode.
72951
72952 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72953
72954         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
72955         read again.
72956         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
72957
72958 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72959
72960         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
72961         an exception using FPU order intentionally.
72962
72963 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72964
72965         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
72966         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
72967         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
72968         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
72969
72970 2012-04-05  Simon Josefsson  <simon@josefsson.org>
72971
72972         [BZ #12340]
72973         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
72974         EINVAL when BUFLEN is too smal.
72975
72976 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
72977
72978         [BZ #13553]
72979         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
72980         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
72981
72982 2012-04-03  Andreas Jaeger  <aj@suse.de>
72983
72984         [BZ #13938]
72985         * manual/setjmp.texi (System V contexts): Fix sentence.
72986
72987         [BZ #13926]
72988         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
72989         New macro for this case.
72990         [!__GNUC__] (__bswap_64): New inline function for this case.
72991         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72992         * bits/byteswap.h: Likewise.
72993         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
72994         ull, guard with __GLIBC_HAVE_LONG_LONG.
72995
72996         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
72997         __GLIBC_HAVE_LONG_LONG.
72998
72999         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
73000         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
73001
73002 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
73003
73004         [BZ #13691]
73005         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
73006         inptr and inend, rather than using last_ch.
73007
73008 2012-04-02  David S. Miller  <davem@davemloft.net>
73009
73010         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
73011         * stdio-common/printf-parse.h (read_int): Change return type to
73012         'int', return -1 on INT_MAX overflow.
73013         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
73014         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
73015         overflows INT_MAX.  Check for overflow of in-format-string precision
73016         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
73017         SIZE_MAX not INT_MAX for integer overflow test.
73018         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
73019         skip the construct in the format string but do not record anything.
73020         * stdio-common/bug22.c: Adjust to test both width/prevision
73021         INT_MAX overflow as well as total length INT_MAX overflow.  Check
73022         explicitly for proper errno values.
73023
73024 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
73025
73026         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
73027         CHAR_MAX.
73028         * string/test-strcmp.c [! WIDE]: Likewise.
73029         * time/tst-mktime2.c: Likewise for INT_MAX.
73030         * string/test-string.h: #include <sys/param.h> for MIN.
73031
73032         * csu/init-first.c (__libc_init_first): Call __ctype_init.
73033         * sysdeps/i386/init-first.c (init): Likewise.
73034         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
73035         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
73036         * sysdeps/sh/init-first.c (init): Likewise.
73037
73038 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
73039
73040         * po/ru.po: Update from translation team.
73041         * po/vi.po: Likewise.
73042
73043 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
73044
73045         * resolv/nss_dns/dns-host.c: Merge copyright years.
73046
73047 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73048
73049         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
73050         Optimize memcpy with prefetch if
73051         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
73052         src, dst pointers have unequal 16 byte alignments.
73053
73054 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
73055
73056         [BZ #13928]
73057         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
73058         from a CNAME entry and return the minimum ttl for the query.
73059         (gaih_getanswer_slice): Likewise.
73060
73061 2012-03-30  Jeff Law  <law@redhat.com>
73062
73063         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
73064         due to long keys.
73065         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
73066         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
73067
73068         * resolv/nss_dns/dns-host.c: Update copyright year.
73069
73070 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
73071
73072         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
73073         requests to save a system call.  Fix check that all bytes are sent.
73074
73075         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
73076         comments for sendmmsg.
73077
73078 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
73079
73080         [BZ #13691]
73081         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
73082         with only 1 character between 0x0041 and 0x01b0.
73083         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
73084         * wcsmbs/tst-mbsnrtowcs.c: New file.
73085
73086 2012-03-29  David S. Miller  <davem@davemloft.net>
73087
73088         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
73089         small copies by hand.
73090
73091 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
73092
73093         [BZ #13761]
73094         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
73095         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
73096         group memberships.
73097
73098 2012-03-28  David S. Miller  <davem@davemloft.net>
73099
73100         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
73101         that branches into memcpy.
73102         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
73103         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
73104         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
73105         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
73106         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
73107         bits.
73108         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
73109         implementation too.
73110         * sysdeps/sparc/mempcpy.S: New file.
73111
73112         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
73113         the IFUNC routine in the libc case.
73114         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
73115
73116         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
73117         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
73118         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
73119         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
73120         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
73121         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
73122         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
73123         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
73124
73125         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
73126         loop to 256 bytes instead of 64 bytes and fix test signedness.
73127
73128         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
73129         * sysdeps/sparc/sparc32/Makefile: rather than here...
73130         * sysdeps/sparc/sparc64/Makefile: and here.
73131
73132 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
73133
73134         * malloc/mallocbug.c: Avoid warnings about unused variables.
73135
73136 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
73137
73138         [BZ #13760]
73139         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
73140         in the right place. Discard and retry query if response is
73141         larger than input buffer size.
73142
73143 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
73144
73145         [BZ #369]
73146         [BZ #2678]
73147         [BZ #3866]
73148         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
73149         x for large integer exponent.
73150         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
73151         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
73152         sign of result as needed afterwards.
73153         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
73154         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
73155         result for underflowing pow the same as for overflow.
73156         (__kernel_standard_l): Handle powl overflow and underflow here
73157         rather than calling __kernel_standard.
73158         * math/libm-test.inc (pow_test): Add more tests.
73159
73160         [BZ #3868]
73161         [BZ #13879]
73162         [BZ #13910]
73163         [BZ #13911]
73164         [BZ #13912]
73165         [BZ #13913]
73166         [BZ #13915]
73167         [BZ #13916]
73168         [BZ #13917]
73169         [BZ #13918]
73170         [BZ #13919]
73171         [BZ #13920]
73172         [BZ #13921]
73173         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
73174         * sysdeps/ieee754/k_standard.c: Include <float.h>.
73175         (__kernel_standard_l): New function.
73176         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
73177         __kernel_standard.
73178         * math/w_acosl.c (__acosl): Likewise.
73179         * math/w_asinl.c (__asinl): Likewise.
73180         * math/w_atan2l.c (__atan2l): Likewise.
73181         * math/w_atanhl.c (__atanhl): Likewise.
73182         * math/w_coshl.c (__coshl): Likewise.
73183         * math/w_exp10l.c (__exp10l): Likewise.
73184         * math/w_exp2l.c (__exp2l): Likewise.
73185         * math/w_fmodl.c (__fmodl): Likewise.
73186         * math/w_hypotl.c (__hypotl): Likewise.
73187         * math/w_j0l.c (__j0l, __y0l): Likewise.
73188         * math/w_j1l.c (__j1l, __y1l): Likewise.
73189         * math/w_jnl.c (__jnl, __ynl): Likewise.
73190         * math/w_lgammal.c (__lgammal): Likewise.
73191         * math/w_log10l.c (__log10l): Likewise.
73192         * math/w_log2l.c (__log2l): Likewise.
73193         * math/w_logl.c (__logl): Likewise.
73194         * math/w_powl.c (__powl): Likewise.
73195         * math/w_remainderl.c (__remainderl): Likewise.
73196         * math/w_scalbl.c (sysv_scalbl): Likewise.
73197         * math/w_sinhl.c (__sinhl): Likewise.
73198         * math/w_sqrtl.c (__sqrtl): Likewise.
73199         * math/w_tgammal.c (__tgammal): Likewise.
73200         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
73201         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
73202         * math/libm-test.inc (acos_test): Add more tests.
73203         (acosh_test): Likewise.
73204         (asin_test): Likewise.
73205         (atanh_test): Likewise.
73206         (exp_test): Likewise.
73207         (exp10_test): Likewise.
73208         (exp2_test): Likewise.
73209         (expm1_test): Likewise.
73210         (lgamma_test): Likewise.
73211         (log_test): Likewise.
73212         (log10_test): Likewise.
73213         (log1p_test): Likewise.
73214         (log2_test): Likewise.
73215         (pow_test): Do not allow some spurious overflow exceptions.
73216         (sqrt_test): Add more tests.
73217         (tgamma_test): Likewise.
73218         (y0_test): Likewise.
73219         (y1_test): Likewise.
73220         (yn_test): Likewise.
73221
73222 2012-03-27  Anton Blanchard  <anton@samba.org>
73223
73224         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
73225         MAP_HUGETLB.
73226         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
73227         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
73228         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
73229
73230 2012-03-27  David S. Miller  <davem@davemloft.net>
73231
73232         * conform/Makefile: Run run-conformtest.sh using $(BASH).
73233
73234         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
73235         have-as-vis3 check.
73236
73237 2012-03-27  Andreas Jaeger  <aj@suse.de>
73238
73239         * sysdeps/x86_64/elf/configure.in: Moved to ...
73240         * sysdeps/x86_64/configure.in: ... here.
73241         * sysdeps/x86_64/elf/start.S: Moved to ...
73242         * sysdeps/x86_64/start.S: ... here.
73243         * sysdeps/x86_64/elf/configure: Delete.
73244
73245         * sysdeps/x86_64/configure.in: Merge contents from
73246         sysdeps/i386/configure.in (without i686 check).
73247
73248         * sysdeps/i386/elf/Versions: Merge into ...
73249         * sysdeps/i386/Versions: ... this.
73250         * sysdeps/i386/elf/Versions: Delete file.
73251         * sysdeps/i386/elf/start.S: Moved to ...
73252         * sysdeps/i386/start.S: ...here.
73253         * sysdeps/i386/elf/configure.in: Merge into...
73254         * sysdeps/i386/configure.in: ...here.
73255         * sysdeps/i386/elf/configure.in: Delete file.
73256         * sysdeps/i386/elf/configure: Delete file.
73257
73258         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
73259         * debug/backtracesyms.c: ... here.
73260         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
73261         * debug/backtracesymsfd.c: ... here.
73262         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
73263         * sysdeps/generic/ifunc-sel.h: ... here.
73264
73265         * sysdeps/unix/i386/start.c: Delete file.
73266         * sysdeps/unix/sparc/start.c: Delete file.
73267         * sysdeps/unix/start.c: Delete file.
73268
73269         * sysdeps/sh/elf/configure.in: Moved to ...
73270         * sysdeps/sh/configure.in: ... here.
73271         * sysdeps/sh/elf/start.S: Moved to ...
73272         * sysdeps/sh/start.S: ... here.
73273         * sysdeps/sh/elf/configure: Delete file.
73274
73275         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
73276         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
73277         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
73278         * sysdeps/powerpc/powerpc64/entry.h: ... here.
73279         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
73280         * sysdeps/powerpc/powerpc64/start.S: here.
73281         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
73282         * sysdeps/powerpc/powerpc64/Makefile: ... this.
73283         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
73284         * sysdeps/powerpc/powerpc64/configure.in: ... this.
73285         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
73286
73287         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
73288         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
73289         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
73290         * sysdeps/powerpc/powerpc32/start.S: ... here.
73291         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
73292         * sysdeps/powerpc/powerpc32/configure.in: ... this.
73293         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
73294
73295         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
73296         * sysdeps/powerpc/ifunc-sel.h: ... here.
73297         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
73298         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
73299
73300         * sysdeps/sparc/elf/configure.in: Moved to ...
73301         * sysdeps/sparc/configure.in: ... here.
73302         * sysdeps/sparc/elf/configure: Delete file.
73303         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
73304         * sysdeps/sparc/sparc32/start.S: ... here.
73305         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
73306         * sysdeps/sparc/sparc64/start.S: ... here.
73307         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
73308         * sysdeps/sparc/sparc32/Makefile: ... this.
73309         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
73310         * sysdeps/sparc/sparc64/Makefile: ... this.
73311
73312         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
73313         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
73314         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
73315         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
73316         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
73317         * sysdeps/s390/s390-32/setjmp.S: ... here.
73318         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
73319         * sysdeps/s390/s390-32/configure.in: ... here.
73320         * sysdeps/s390/s390-32/elf/configure: Delete file.
73321         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
73322         * sysdeps/s390/s390-32/start.S: ... here.
73323
73324         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
73325         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
73326         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
73327         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
73328         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
73329         * sysdeps/s390/s390-64/setjmp.S: ... here.
73330         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
73331         * sysdeps/s390/s390-64/configure.in: ... here
73332         * sysdeps/s390/s390-64/elf/configure: Delete file.
73333         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
73334         * sysdeps/s390/s390-64/start.S: ... here.
73335         * sysdeps/s390/s390-64/elf/configure: Delete.
73336
73337         * configure.in: Remove support for elf directories in sysdeps.
73338
73339         * configure: Regenerated.
73340         * sysdeps/i386/configure: Regenerated.
73341         * sysdeps/powerpc/powerpc32/configure: Regenerated.
73342         * sysdeps/powerpc/powerpc64/configure: Regenerated.
73343         * sysdeps/s390/s390-32/configure: Regenerated.
73344         * sysdeps/s390/s390-64/configure: Regenerated.
73345         * sysdeps/sh/configure: Regenerated.
73346         * sysdeps/sparc/configure: Regenerated.
73347         * sysdeps/x86_64/configure: Regenerated.
73348
73349 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
73350
73351         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73352
73353         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
73354         denormal result into account.
73355
73356 2012-03-25  Roland McGrath  <roland@hack.frob.com>
73357
73358         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
73359         Reported by Allan McRae <allan@archlinux.org>.
73360
73361 2012-03-23  Jeff Law  <law@redhat.com>
73362
73363         * nss/getnssent.c (__nss_getent): Fix typo.
73364
73365 2012-03-23  David S. Miller  <davem@davemloft.net>
73366
73367         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73368
73369 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
73370
73371         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
73372         to pad to uint64_t for each field.
73373         (dl_tls_index): Replace unsigned long with uint64_t.
73374
73375 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
73376         Paul Pluzhnikov  <ppluzhnikov@google.com>
73377
73378         [BZ #6528]
73379         * grp/Makefile (otherlibs): Don't set it.
73380         * inet/Makefile (otherlibs): Likewise.
73381         * login/Makefile (otherlibs): Likewise.
73382         * nscd/Makefile (otherlibs): Likewise.
73383         * posix/Makefile (otherlibs): Likewise.
73384         * pwd/Makefile (otherlibs): Likewise.
73385         * rt/Makefile (otherlibs): Likewise.
73386         * sunrpc/Makefile (otherlibs): Likewise.
73387         * nss/Makefile (otherlibs): Likewise.
73388         Add libnss_files to routines and static-only-routines.
73389         ($(objpfx)getent): Remove rule.
73390         * resolv/Makefile: Add libnss_dns and libresolv to routines and
73391         static-only-routines.
73392
73393 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
73394
73395         [BZ #13892]
73396         * math/s_cexp.c: Include <float.h>.
73397         (__cexp): Handle exp result overflowing not necessarily
73398         overflowing both real and imaginary parts of result.
73399         * math/s_cexpf.c: Likewise.
73400         * math/s_cexpl.c: Likewise.
73401         * math/libm-test.inc (cexp_test): Add more tests.
73402         * sysdeps/i386/fpu/libm-test-ulps: Update.
73403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73404
73405 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
73406
73407         * include/link.h (ELFW): New macro.
73408         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
73409         Replace ELF64_R_TYPE with ELFW(R_TYPE).
73410
73411 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
73412
73413         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
73414         with uint64_t.
73415
73416 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
73417
73418         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
73419         declaration.
73420         (struct La_x32_retval): Likewise.
73421
73422 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
73423
73424         * sysdeps/x86_64/preconfigure.in: New file.
73425         * sysdeps/x86_64/preconfigure: New generated file.
73426
73427 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
73428
73429         [BZ #13824]
73430         * math/e_exp2l.c: Include <float.h>.
73431         (__ieee754_exp2l): Handle overflow and underflow cases
73432         separately.  Only pass fractional part of argument to
73433         __ieee754_expl.
73434         * math/libm-test.inc (exp2_test): Add more tests.
73435
73436         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
73437         negating x to take absolute value.
73438         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
73439         Likewise.
73440         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
73441         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
73442         Likewise.
73443         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
73444         computing low part if x was negated.
73445         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
73446
73447 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
73448
73449         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
73450         la_x32_gnu_pltexit.
73451         (pltexit): Cast int_retval to ptrdiff_t.
73452         * elf/tst-auditmod3b.c: Likewise.
73453         * elf/tst-auditmod4b.c: Likewise.
73454         * elf/tst-auditmod5b.c: Likewise.
73455         * elf/tst-auditmod6b.c: Likewise.
73456         * elf/tst-auditmod6c.c: Likewise.
73457         * elf/tst-auditmod7b.c: Likewise.
73458
73459         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
73460         and x32_gnu_pltexit.
73461
73462         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
73463         __ELF_NATIVE_CLASS.
73464         (La_x32_regs): New macro.
73465         (La_x32_retval): Likewise.
73466         (la_x32_gnu_pltenter): New function prototype.
73467         (la_x32_gnu_pltexit): Likewise.
73468
73469 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
73470
73471         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
73472         exponent.
73473
73474         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73475
73476         * configure.in (libc_cv_cc_nofma): Check for option to disable
73477         generation of FMA instructions.
73478         * configure: Regenerate.
73479         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
73480         * sysdeps/ieee754/dbl-64/Makefile: New file.
73481         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
73482         Remove brandred-fma4.
73483         (CFLAGS-brandred-fma4.c): Remove.
73484         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
73485         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
73486         define.
73487         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
73488         define.
73489
73490 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
73491
73492         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
73493         LLONG_MAX != LONG_MAX.
73494         (_itoa_word): Use _ITOA_WORD_TYPE on value.
73495         (_fitoa_word): Likewise.
73496         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
73497         LLONG_MAX != LONG_MAX.
73498         * stdio-common/_itowa.h: Include <_itoa.h>.
73499         (_itowa_word): Use _ITOA_WORD_TYPE on value.
73500         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
73501         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
73502         only if not defined.
73503         (_ITOA_WORD_TYPE): Likewise.
73504         (_itoa_word): Use _ITOA_WORD_TYPE on value.
73505         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
73506
73507 2012-03-21  David S. Miller  <davem@davemloft.net>
73508
73509         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73510
73511 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
73512
73513         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
73514         of x86_64 when setting libc_cv_slibdir, libdir and
73515         libc_cv_localedir.
73516         * sysdeps/unix/sysv/linux/configure: Regenerated.
73517
73518 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
73519
73520         * manual/lang.texi (Old Varargs): Remove section.
73521         (How Variadic): Update menu.
73522         (va_start): Do not mention varargs.h.
73523
73524 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
73525             Joseph Myers  <joseph@codesourcery.com>
73526
73527         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
73528         link test.
73529         * configure: Regenerated.
73530
73531 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
73532
73533         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
73534         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
73535         conformtest.pl
73536
73537 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
73538
73539         * NOTES: Remove.
73540         * Makefile (files-for-dist): Remove NOTES.
73541         (NOTES): Remove rule.
73542         * README: Don't refer to NOTES.
73543         * manual/creature.texi: Don't include macros.texi.
73544         * manual/intro.texi (creature.texi): Remove comment referring to
73545         NOTES.
73546
73547         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
73548         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
73549         * configure: Regenerated.
73550         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
73551         LIBC_TRY_CC_OPTION.
73552         (libc_cv_as_i686): Likewise.
73553         (libc_cv_cc_avx): Likewise.
73554         (libc_cv_cc_sse2avx): Likewise.
73555         (libc_cv_cc_fma4): Likewise.
73556         (libc_cv_cc_novzeroupper): Likewise.
73557         * sysdeps/i386/configure: Regenerated.
73558
73559         [BZ #13883]
73560         * sysdeps/i386/fpu/s_cexp.S: Remove.
73561         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
73562         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
73563         * math/libm-test.inc (cexp_test): Add more tests.
73564         * sysdeps/i386/fpu/libm-test-ulps: Update.
73565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73566
73567 2012-03-21  Allan McRae  <allan@archlinux.org>
73568
73569         * timezone/Makefile: Do not install iso3166.tab and zone.tab
73570
73571 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
73572
73573         [BZ #13871]
73574         * math/w_exp2.c: Do not include <float.h>.
73575         (o_threshold, u_threshold): Remove.
73576         (__exp2): Calculate result before checking finiteness and calling
73577         __kernel_standard.
73578         * math/w_exp2f.c: Likewise.
73579         * math/w_exp2l.c: Likewise.
73580         * math/libm-test.inc (exp2_test): Require overflow exception for
73581         1e6 input.
73582
73583         [BZ #3866]
73584         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
73585         range of signed 64-bit integers before using fistpll.  Remove
73586         checks for whether integers fit in mantissa bits.
73587         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
73588         the range of signed 32-bit integers before using fistpl.  Remove
73589         checks for whether integers fit in mantissa bits.
73590         * sysdeps/i386/fpu/e_powl.S (p64): New object.
73591         (__ieee754_powl): Test for y outside the range of signed 64-bit
73592         integers before using fistpll.  Reduce 64-bit values to 63-bit
73593         ones as needed.
73594         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
73595         divide-by-zero is raised for zero to large negative powers.
73596         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
73597         (__ieee754_powl): Test for y outside the range of signed 64-bit
73598         integers before using fistpll.  Reduce 64-bit values to 63-bit
73599         ones as needed.
73600         * math/libm-test.inc (pow_test): Add more tests.
73601
73602 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
73603
73604         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
73605         <stdio-common/_itoa.h>.
73606         * debug/segfault.c: Likewise.
73607         * elf/dl-cache.c: Likewise.
73608         * elf/dl-minimal.c: Likewise.
73609         * elf/dl-misc.c: Likewise.
73610         * elf/dl-sysdep.c: Likewise.
73611         * elf/dl-version.c: Likewise.
73612         * elf/rtld.c: Likewise.
73613         * hurd/hurdsock.c: Likewise.
73614         * hurd/lookup-retry.c: Likewise.
73615         * malloc/malloc.c: Likewise.
73616         * malloc/mtrace.c: Likewise.
73617         * nscd/nscd_getgr_r.c: Likewise.
73618         * nscd/nscd_getpw_r.c: Likewise.
73619         * nscd/nscd_getserv_r.c: Likewise.
73620         * posix/getopt_init.c: Likewise.
73621         * posix/wordexp.c: Likewise.
73622         * stdio-common/_itoa.c: Likewise.
73623         * stdio-common/printf_fphex.c: Likewise.
73624         * stdio-common/vfprintf.c: Likewise.
73625         * string/_strerror.c: Likewise.
73626         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
73627         * sysdeps/i386/i686/hp-timing.h: Likewise.
73628         * sysdeps/mach/_strerror.c: Likewise.
73629         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
73630         * sysdeps/mach/hurd/sethostid.c: Likewise.
73631         * sysdeps/mach/hurd/xmknodat.c: Likewise.
73632         * sysdeps/mach/xpg-strerror.c: Likewise.
73633         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
73634         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
73635         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
73636         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
73637         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
73638         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
73639         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
73640         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
73641         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
73642         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
73643         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
73644         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
73645         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
73646         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
73647         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
73648         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
73649         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
73650         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
73651         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
73652         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
73653         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
73654
73655         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
73656
73657         * stdio-common/_itoa.h: Moved to ...
73658         * sysdeps/generic/_itoa.h: Here.
73659
73660         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
73661
73662         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
73663         instead of "_itoa.h" and "_itowa.h".
73664         * stdio-common/vfprintf.: Likewise.
73665
73666 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
73667
73668         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
73669         <bits/wordsize.h>.
73670         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
73671         (__signbit): Likwise.
73672         (llrintf): Likwise.
73673         (llrint): Likwise.
73674
73675 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
73676
73677         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
73678         __WORDSIZE != 64.
73679
73680 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
73681
73682         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
73683         OVERFLOW_EXCEPTION_OK.
73684         * math/libm-test.inc ("Philosophy"): Update comment about
73685         exception testing.
73686         (OVERFLOW_EXCEPTION): Define.
73687         (OVERFLOW_EXCEPTION_OK): Likewise.
73688         (INVALID_EXCEPTION_OK): Renumber.
73689         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
73690         (IGNORE_ZERO_INF_SIGN): Likewise.
73691         (test_exceptions): Handle FE_OVERFLOW.
73692         (exp10_test): Expect overflow exceptions.
73693         (exp2_test): Likewise.
73694         (expm1_test): Likewise.
73695         (nextafter_test): Likewise.
73696         (pow_test): Likewise.
73697         (scalbn_test): Likewise.
73698         (scalbln_test): Likewise.
73699
73700 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73701
73702         * sysdeps/x86_64/bits/atomic.h
73703         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
73704         64bit integer.
73705         (atomic_exchange_acq): Likewise.
73706         (__arch_exchange_and_add_body): Likewise.
73707         (__arch_add_body): Likewise.
73708         (atomic_add_negative): Likewise.
73709         (atomic_add_zero): Likewise.
73710
73711 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73712
73713         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
73714         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
73715
73716 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73717
73718         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
73719         Check __x86_64__ instead of __WORDSIZE.
73720
73721 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73722
73723         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
73724
73725 2012-03-19  David S. Miller  <davem@davemloft.net>
73726
73727         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73728
73729         * sysdeps/sparc/fpu/fenv_private.h: New file.
73730         * sysdeps/sparc/fpu/math_private.h: Use it.
73731         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
73732         Remove.
73733         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
73734         (libc_feholdexcept_setroundl): Remove.
73735         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
73736         Remove.
73737         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
73738         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
73739
73740 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73741
73742         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
73743         int64_t instead of long int.
73744         (INSERT_WORDS64): Likwise.
73745
73746 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
73747
73748         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
73749         _Unwind_GetCFA return to _Unwind_Ptr first.
73750
73751 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
73752
73753         [BZ #13629]
73754         * math/s_clog.c: Include <float.h>.
73755         (__clog): Scale large or subnormal inputs.
73756         * math/s_clogf.c: Likewise.
73757         * math/s_clogl.c: Likewise.
73758         * math/s_clog10.c: Include <float.h>.
73759         (M_LOG10_2): Define.
73760         (__clog10): Scale large or subnormal inputs.
73761         * math/s_clog10f.c: Likewise.
73762         * math/s_clog10l.c: Likewise.
73763         * math/libm-test.inc (clog_test): Add more tests.
73764         (clog10_test): Likewise.
73765         * sysdeps/i386/fpu/libm-test-ulps: Update.
73766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73767
73768         [BZ #11451]
73769         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
73770         x and y.
73771         * math/libm-test.inc (atan2_test): Add another test.
73772
73773         * Makerules (common-objdir-compile): Remove.
73774         * sysdeps/unix/Makefile (config-generated): Do not add
73775         $(unix-generated) to variable.
73776         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
73777         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
73778         Remove rule.
73779         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
73780         Likewise.
73781         [generic bits/local_lim.h] (before-compile): Do not append to
73782         variable.
73783         [generic bits/local_lim.h] (common-generated): Likewise.
73784         [generic sys/param.h] (before-compile): Do not append to variable.
73785         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
73786         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
73787         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
73788         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
73789         include.
73790         [generic sys/param.h] (sys/param.h-includes): Remove variable.
73791         [generic sys/param.h] (sys/param.h-includes): Remove rule.
73792         [generic sys/param.h] ($(addprefix
73793         $(common-objpfx),$(sys/param.h-includes))): Likewise.
73794         [generic sys/param.h] (common-generated): Do not append to
73795         variable.
73796         [generic sys/param.h] (sysdep_headers): Likewise.
73797         [generic bits/errno.h] (before-compile): Do not append to
73798         variable.
73799         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
73800         rule.
73801         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
73802         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
73803         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
73804         [generic bits/errno.h] (common-generated): Do not append to
73805         variable.
73806         [generic bits/ioctls.h] (before-compile): Do not append to
73807         variable.
73808         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
73809         rule.
73810         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
73811         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
73812         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
73813         rule.
73814         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
73815         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
73816         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
73817         [generic bits/ioctls.h] (common-generated): Do not append to
73818         variable.
73819         [generic sys/syscall.h] (syscall.h): Remove variable.
73820         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
73821         rule.
73822         [generic sys/syscall.h] (before-compile): Do not append to
73823         variable.
73824         [generic sys/syscall.h] (common-generated): Likewise.
73825         * sysdeps/unix/errnos-tmpl.c: Remove file.
73826         * sysdeps/unix/errnos.awk: Likewise.
73827         * sysdeps/unix/ioctls-tmpl.c: Likewise.
73828         * sysdeps/unix/ioctls.awk: Likewise.
73829         * sysdeps/unix/mk-local_lim.c: Likewise.
73830         * sysdeps/unix/snarf-ioctls: Likewise.
73831
73832 2012-03-19  Richard Henderson  <rth@twiddle.net>
73833
73834         * sysdeps/i386/fpu/fenv_private.h: New file.
73835         * sysdeps/i386/fpu/math_private.h: Use it.
73836         (math_opt_barrier, math_force_eval): Remove.
73837         (libc_feholdexcept_setround_53bit): Remove.
73838         (libc_feupdateenv_53bit): Remove.
73839         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73840         (math_opt_barrier, math_force_eval): Remove.
73841         (libc_feholdexcept): Remove.
73842         (libc_feholdexcept_setround): Remove.
73843         (libc_fetestexcept, libc_fesetenv): Remove.
73844         (libc_feupdateenv_test): Remove.
73845         (libc_feupdateenv, libc_feholdsetround): Remove.
73846         (libc_feresetround): Remove.
73847
73848         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
73849         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
73850
73851         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
73852         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
73853         (libc_feupdateenv_testl): New.
73854         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
73855         (libc_feupdateenv_testf): New.
73856         (libc_feupdateenv): Use libc_feupdateenv_test.
73857         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
73858         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
73859
73860         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
73861         (libc_feholdsetroundf, libc_feholdsetroundl): New.
73862         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
73863         (libc_feresetround_noex): New.
73864         (libc_feresetround_noexf): New.
73865         (libc_feresetround_noexl): New.
73866         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
73867         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
73868         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
73869         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
73870         SET_RESTORE_ROUND.
73871         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
73872         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
73873         (__cos): Likewise.
73874         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
73875         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
73876         SET_RESTORE_ROUND_NOEX.
73877         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
73878         SET_RESTORE_ROUND_NOEXF.
73879         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
73880         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
73881         (libc_feholdsetroundf): New.
73882         (libc_feresetround, libc_feresetroundf): New.
73883
73884         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
73885         (libc_feholdexcept_setround_53bit): Convert from macro to function.
73886         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
73887
73888         * sysdeps/generic/math_private.h: Include <fenv.h>.
73889         (default_libc_feholdexcept): New.
73890         (default_libc_feholdexcept_setround): New.
73891         (default_libc_fesetenv, default_libc_feupdateenv): New.
73892         (libc_feholdexcept): Only define if undefined.
73893         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
73894         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
73895         (libc_feholdexcept_setroundl): Likewise.
73896         (libc_feholdexcept_setround_53bit): Likewise.
73897         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
73898         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
73899         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
73900         (libc_feupdateenv_53bit): Likewise.
73901         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
73902         (libc_feholdexcept): Convert from macro to inline function.
73903         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
73904         (libc_fesetenv, libc_feupdateenv): Likewise.
73905
73906         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
73907         not previously defined.
73908         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
73909         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
73910         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
73911         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
73912         * sysdeps/ieee754/flt-32/math_private.h: New file.
73913         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
73914         math_private.h below SET_FLOAT_WORD.
73915         (__isnan, __isinf_ns, __finite): Remove.
73916         (__isnanf, __isinf_nsf, __finitef): Remove.
73917
73918 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
73919
73920         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73921
73922 2012-03-17  David S. Miller  <davem@davemloft.net>
73923
73924         [BZ #6471]
73925         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
73926         for 2.16.
73927
73928 2012-03-16  David S. Miller  <davem@davemloft.net>
73929
73930         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
73931         warnings.
73932
73933         [BZ #6471]
73934         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
73935         properly.
73936         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
73937         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
73938         sysdep_routines when subdir is sysvipc.
73939         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
73940         __getshmlba helper.
73941
73942         * sysdeps/sparc/fpu/libm-test/ulps: Update.
73943
73944 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73945
73946         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
73947         [__LP64__].
73948
73949 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73950
73951         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
73952         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
73953         (__lround): Renamed to ...
73954         (__llround): This.  Replace long int with long long int.
73955         Define lround functions as aliases of llround functions.
73956         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
73957
73958 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73959
73960         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
73961         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
73962         adresses to uintptr_t.  Replace "long int" and "unsigned long
73963         int" with "greg_t" on va_arg.
73964
73965 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73966
73967         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
73968         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
73969
73970         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
73971         Move e_machine check before EI_CLASS check.  Handle x32
73972         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
73973         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
73974         SKIP_EM_IA_64 and include
73975         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
73976
73977         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
73978         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
73979         (add_system_dir): New macro.
73980
73981         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
73982         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
73983
73984 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73985
73986         [BZ #2551]
73987         [BZ #2552]
73988         [BZ #2553]
73989         [BZ #2554]
73990         [BZ #2562]
73991         [BZ #2563]
73992         [BZ #2565]
73993         [BZ #2566]
73994         [BZ #2576]
73995         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
73996         (y0): Likewise.
73997         * math/w_j0f.c (j0f): Likewise.
73998         (y0f): Likewise.
73999         * math/w_j0l.c (__j0l): Likewise.
74000         (__y0l): Likewise.
74001         * math/w_j1.c (j1): Likewise.
74002         (y1): Likewise.
74003         * math/w_j1f.c (j1f): Likewise.
74004         (y1f): Likewise.
74005         * math/w_j1l.c (__j1l): Likewise.
74006         (__y1l): Likewise.
74007         * math/w_jn.c (jn): Likewise.
74008         (yn): Likewise.
74009         * math/w_jnf.c (jnf): Likewise.
74010         (ynf): Likewise.
74011         * math/w_jnl.c (__jnl): Likewise.
74012         (__ynl): Likewise.
74013         * math/libm-test.inc (j0_test): Add more tests.
74014         (j1_test): Likewise.
74015         (jn_test): Likewise.  Add trailing semicolon to existing test.
74016         (y0_test): Likewise.
74017         (y1_test): Likewise.
74018         * sysdeps/i386/fpu/libm-test-ulps: Update.
74019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74020
74021         [BZ #13851]
74022         [BZ #13854]
74023         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
74024         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
74025         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
74026         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
74027         (__tanl): Set errno for infinite argument.
74028         * sysdeps/i386/fpu/mptan.c: Remove.
74029         * sysdeps/i386/fpu/s_tan.S: Likewise.
74030         * sysdeps/i386/fpu/s_tanl.S: Likewise.
74031         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
74032         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
74033         * math/libm-test.inc (tan_test): Add more tests and enable more
74034         tests for double and long double.
74035         * sysdeps/i386/fpu/libm-test-ulps: Update.
74036         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74037
74038 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
74039
74040         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
74041         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
74042
74043 2012-03-16  Roland McGrath  <roland@hack.frob.com>
74044
74045         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
74046         * configure.in: Use it for both main tree and add-ons.
74047         * configure: Regenerated.
74048
74049 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
74050
74051         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
74052
74053 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
74054
74055         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
74056         in comment.
74057
74058         [BZ #13851]
74059         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
74060         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
74061         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
74062         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
74063         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
74064         infinite argument.
74065         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
74066         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
74067         != 0 for prec == 2.
74068         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
74069         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
74070         * sysdeps/i386/fpu/s_cosl.S: Likewise.
74071         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
74072         * sysdeps/i386/fpu/s_sinl.S: Likewise.
74073         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
74074         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
74075         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
74076         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
74077         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
74078         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
74079         * math/libm-test.inc (cos_test): Add more tests and enable more
74080         tests for long double.
74081         (sin_test): Likewise.
74082         (sincos_test): Likewise.
74083         * sysdeps/i386/fpu/libm-test-ulps: Update.
74084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74085
74086 2012-03-16  David S. Miller  <davem@davemloft.net>
74087
74088         * sysdeps/sparc/fpu/math_private.h: New file.
74089
74090 2012-03-15  David S. Miller  <davem@davemloft.net>
74091
74092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
74093         file.
74094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
74095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
74096         file.
74097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
74098         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
74099         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
74100         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
74101         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
74102         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
74103         sysdep routines.
74104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
74105
74106         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
74107         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
74108
74109         * sysdeps/sparc/sparc-ifunc.h: New file.
74110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
74111         sparc-ifunc.h
74112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
74113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
74114         Likewise.
74115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
74116         Likewise.
74117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
74118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
74119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
74120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
74121         Likewise.
74122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
74123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
74124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
74125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
74126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
74127         Likewise.
74128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
74129         Likewise.
74130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
74131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
74132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
74133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
74134         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
74135         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
74136         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
74137         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
74138         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
74139         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
74140         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
74141         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
74142         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
74143         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
74144         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
74145         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
74146         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
74147         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
74148         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
74149         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
74150         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
74151         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
74152         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
74153         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
74154
74155 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
74156
74157         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
74158         scaling.
74159         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74160
74161 2012-03-15  Andreas Jaeger  <aj@suse.de>
74162
74163         [BZ #13852]
74164         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
74165         ieee754/flt-32 implementation for sin, cos and sincos.
74166         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
74167         * sysdeps/i386/fpu/s_cosf.S: Likewise.
74168         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
74169         * sysdeps/i386/fpu/s_sinf.S: Likewise.
74170         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
74171         ieee754/flt-32 implementation for tan.
74172
74173         * math/libm-test.inc (cos_test): Enable some large input tests for
74174         float as well
74175         (sin_test): Likewise.
74176         (sincos_test): Likewise.
74177         (tan_test): Add tests for large input.
74178
74179         * sysdeps/i386/fpu/libm-test-ulps: Update.
74180
74181 2012-03-15  Andreas Jaeger  <aj@suse.de>
74182
74183         [BZ #13658]
74184         * math/libm-test.inc (cos_test): Add more test cases.
74185         (sin_test): Likewise.
74186         (sincos_test): Likewise.
74187
74188 2012-03-15  Andreas Jaeger  <aj@suse.de>
74189
74190         [BZ #13837]
74191         * math/libm-test.inc (cos_test): Add a test case for large input
74192         value.
74193         (sin_test): Likewise.
74194         (sincos_test): Likewise.
74195
74196 2012-03-15  Andreas Jaeger  <aj@suse.de>
74197             Joseph Myers  <joseph@codesourcery.com>
74198
74199         [BZ #13658]
74200         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
74201         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
74202         * sysdeps/i386/fpu/branred.c: Likewise.
74203         * sysdeps/i386/fpu/dosincos.c: Likewise.
74204         * sysdeps/i386/fpu/mpa.c: Likewise.
74205         * sysdeps/i386/fpu/s_cos.S: Likewise.
74206         * sysdeps/i386/fpu/s_sin.S: Likewise.
74207         * sysdeps/i386/fpu/s_sincos.S: Likewise.
74208         * sysdeps/i386/fpu/sincos32.c: Likewise.
74209
74210         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
74211         Define.
74212         (libc_feupdateenv_53bit): Define.
74213         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
74214         Define.
74215         (libc_feupdateenv_53bit): Define.
74216
74217         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
74218         53 bit (without extend i386 double precision).
74219
74220         * math/libm-test.inc (sincos_test): Add tests for large input.
74221         (sin): Likewise.
74222         (cos): Likewise.
74223
74224         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
74225
74226 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
74227
74228         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74229
74230 2012-03-15  David S. Miller  <davem@davemloft.net>
74231
74232         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
74233         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
74234         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
74235         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
74236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
74237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
74238         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
74239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
74240         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
74241         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
74242         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
74243         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
74244         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
74245         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
74246         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
74247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
74248         file.
74249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
74250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
74251         file.
74252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
74253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
74254         file.
74255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
74256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
74257         file.
74258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
74259         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
74260         fmin/fmax sysdep routines.
74261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
74262
74263 2012-03-14  David S. Miller  <davem@davemloft.net>
74264
74265         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
74266         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
74267         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
74268         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
74269         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
74270         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
74271         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
74272         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
74273         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
74274         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
74275         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
74276         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
74277         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
74278         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
74279         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
74280         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
74281         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
74282         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
74283         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
74284         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
74285         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
74286         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
74287         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
74288         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
74289         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
74290         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
74291         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
74292         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
74293         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
74294         routines.
74295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
74296         file.
74297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
74298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
74299         file.
74300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
74301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
74302         file.
74303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
74304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
74305         file.
74306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
74307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
74308         file.
74309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
74310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
74311         file.
74312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
74313         file.
74314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
74315         file.
74316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
74317         file.
74318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
74319         New file.
74320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
74321         file.
74322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
74323         file.
74324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
74325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
74326         file.
74327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
74328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
74329         file.
74330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
74331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
74332         file.
74333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
74334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
74335         VIS3 routines.
74336
74337         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
74338         New file.
74339
74340         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74341
74342         * sysdeps/sparc/configure.in: New file.
74343         * sysdeps/sparc/configure: Generate.
74344         * configure.in (libc_cv_sparc_as_vis3): Substitute.
74345         * configure: Regenerate.
74346         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
74347         * config.make.in (have-as-vis3): New.
74348         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
74349         available use -Av9d instead of -Av9a.
74350         * sysdeps/sparc/sparc64/Makefile: Likewise.
74351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
74352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
74353         New file.
74354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
74355         file.
74356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
74357         New file.
74358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
74359         file.
74360         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
74361         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
74362         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
74363         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
74364         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
74365
74366         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
74367         fzeros/fnegs to load 0x80000000 into a float register instead of
74368         using the stack.
74369         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
74370
74371 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
74372
74373         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74374         bits/syscall.h.
74375         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
74376         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
74377         ($(inst_includedir)/bits/syscall.h): Remove rule.
74378         ($(objpfx)bits/syscall.d): Include instead of
74379         $(objpfx)syscall-list.d.
74380         (generated): Change syscall-list.h and syscall-list.d to
74381         bits/syscall.h and bits/syscall.d.
74382
74383 2012-03-14  Roland McGrath  <roland@hack.frob.com>
74384
74385         [BZ #13846]
74386         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
74387
74388 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
74389
74390         [BZ #13841]
74391         * math/s_csqrt.c: Include <float.h>.
74392         (__csqrt): Scale large or subnormal inputs.
74393         * math/s_csqrtf.c: Likewise.
74394         * math/s_csqrtl.c: Likewise.
74395         * math/libm-test.inc (csqrt_test): Add more tests.
74396         * sysdeps/i386/fpu/libm-test-ulps: Update.
74397         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74398
74399         [BZ #13840]
74400         * math/libm-test.inc (hypot_test): Add more tests.
74401
74402 2012-03-13  David S. Miller  <davem@davemloft.net>
74403
74404         [BZ #13840]
74405         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
74406         double-precision for the calculation instead of scaling.
74407
74408 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
74409
74410         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
74411         manipulate bits before adding and subtracting TWO52[sx].
74412         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
74413         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
74414         Likewise.
74415         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
74416
74417 2012-03-13  David S. Miller  <davem@davemloft.net>
74418
74419         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
74420         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
74421         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
74422         rtld-global-offsets.h
74423         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
74424
74425         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
74426         large parameters.
74427
74428         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
74429
74430         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
74431         'err' in the ifdef scope in which it is actually used.
74432
74433         * nss/nss_db/db-init.c: Include string.h
74434
74435 2012-03-12  David S. Miller  <davem@davemloft.net>
74436
74437         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74438         masking out of the most significant byte of random value used.
74439         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74440         Fix coding style in previous change.
74441
74442         * sysdeps/unix/sysv/linux/kernel-features.h
74443         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
74444         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
74445         expression.
74446         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
74447         later.
74448
74449 2012-03-11  David S. Miller  <davem@davemloft.net>
74450
74451         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
74452         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
74453         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
74454         for 'resultvar' otherwise things get truncated on 64-bit.
74455
74456         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74457         Fix masking out of the most significant byte of random value used.
74458
74459         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74460
74461 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
74462
74463         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74464
74465 2012-03-09  David S. Miller  <davem@davemloft.net>
74466
74467         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
74468         variables with appropriate CPP guards.
74469         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
74470         from the frame pointer, not the stack pointer.  Correct layout
74471         comments.  Fix test on resulting framesize and the management of
74472         the outregs buffer for pltexit.  Preserve floating point return
74473         values across _dl_call_pltexit call.
74474         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
74475         framesize and the management of the outregs buffer for pltexit.
74476         Preserve floating point return values across _dl_call_pltexit
74477         call.
74478         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
74479         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
74480         (la_sparc64_gnu_pltexit): New functions.
74481         (print_exit): Fix format string for return register value.
74482
74483 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
74484
74485         * sunrpc/Makefile (others): Add rpcgen.
74486         ($(objpfx)rpcgen): Remove special build rule and dependency on
74487         libc.
74488         * sunrpc/rpcgen.c: New file.
74489
74490 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         [BZ #13673]
74493         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
74494         * stdio-common/bug-vfprintf-nargs.c: Likewise.
74495         * sysdeps/i386/crti.S: Likewise.
74496         * sysdeps/i386/crtn.S: Likewise.
74497         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
74498         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
74499         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
74500         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
74501         * sysdeps/sh/crti.S: Likewise.
74502         * sysdeps/sh/crtn.S: Likewise.
74503         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
74504
74505         [BZ #13673]
74506         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
74507         with URL.
74508         * locale/programs/locfile-kw.gperf: Likewise.
74509         * locale/programs/charmap-kw.h: Regenerated.
74510         * locale/programs/locfile-kw.h: Likewise.
74511
74512         [BZ #13673]
74513         * intl/plural.y: Replace FSF snail mail address with URL.
74514         * intl/plural.c: Regenerated.
74515
74516 2012-03-09  Richard Henderson  <rth@twiddle.net>
74517
74518         * include/math_private.h: Remove file.
74519         * math/math_private.h: Move file ...
74520         * sysdeps/generic/math_private.h: ... here.
74521
74522         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
74523         * sysdeps/powerpc/fpu/math_private.h: Likewise.
74524         * sysdeps/x86_64/fpu/math_private.h: Likewise.
74525
74526         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
74527         and <math_private.h>.
74528         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
74529         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
74530         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
74531         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
74532         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
74533         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
74534         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
74535         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
74536         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
74537         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
74538         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
74539         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
74540         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
74541         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
74542         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
74543         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
74544         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
74545         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
74546         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
74547         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
74548         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
74549         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
74550         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
74551         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
74552         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
74553         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
74554         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
74555         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
74556         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
74557         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
74558         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
74559         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
74560         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
74561         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
74562         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
74563         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
74564         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
74565         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
74566         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
74567         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
74568         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
74569         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
74570         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
74571         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
74572         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
74573         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
74574         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
74575         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
74576         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
74577         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
74578         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
74579         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
74580         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
74581         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
74582         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
74583         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
74584         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
74585         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
74586         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
74587         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
74588         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
74589         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
74590         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
74591         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
74592         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
74593         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
74594         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
74595         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
74596         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
74597         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
74598         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
74599         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
74600         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
74601         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
74602         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
74603         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
74604         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
74605         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
74606         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
74607         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
74608         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
74609         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
74610         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
74611         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
74612         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
74613         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
74614         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
74615         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
74616         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
74617         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
74618         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
74619         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
74620         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
74621         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
74622         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
74623         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
74624         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
74625         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
74626         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
74627         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
74628         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
74629         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
74630         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
74631         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
74632         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
74633         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
74634         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
74635         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
74636         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
74637         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
74638         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
74639         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
74640         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
74641         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
74642         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
74643         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
74644         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
74645         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
74646         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
74647         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
74648         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
74649         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
74650         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
74651         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
74652         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
74653         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
74654         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
74655         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
74656         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
74657         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
74658         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
74659         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
74660         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
74661         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
74662         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
74663         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
74664         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
74665         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
74666         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
74667         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
74668         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
74669         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
74670         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
74671         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
74672         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
74673         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
74674         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
74675         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
74676         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
74677         * sysdeps/ieee754/k_standard.c: Likewise.
74678         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
74679         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
74680         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
74681         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
74682         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
74683         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
74684         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
74685         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
74686         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
74687         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
74688         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
74689         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
74690         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
74691         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
74692         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
74693         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
74694         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
74695         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
74696         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
74697         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
74698         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
74699         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
74700         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
74701         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
74702         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
74703         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
74704         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
74705         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
74706         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
74707         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
74708         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
74709         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
74710         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
74711         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
74712         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
74713         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
74714         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
74715         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
74716         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
74717         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
74718         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
74719         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
74720         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
74721         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
74722         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
74723         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
74724         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
74725         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
74726         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
74727         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
74728         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
74729         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
74730         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
74731         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
74732         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
74733         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
74734         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
74735         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
74736         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
74737         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
74738         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
74739         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
74740         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
74741         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
74742         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
74743         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
74744         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
74745         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
74746         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
74747         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
74748         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
74749         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
74750         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
74751         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
74752         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
74753         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
74754         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
74755         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
74756         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
74757         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
74758         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
74759         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
74760         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
74761         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
74762         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
74763         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
74764         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
74765         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
74766         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
74767         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
74768         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
74769         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
74770         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
74771         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
74772         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
74773         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
74774         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
74775         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
74776         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
74777         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
74778         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
74779         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
74780         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
74781         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
74782         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
74783         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
74784         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
74785         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
74786         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
74787         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
74788         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
74789         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
74790         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
74791         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
74792         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
74793         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
74794         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
74795         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
74796         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
74797         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
74798         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
74799         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
74800         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
74801         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
74802         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
74803         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
74804         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
74805         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
74806         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
74807         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
74808         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
74809         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
74810         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
74811         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
74812         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
74813         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
74814         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
74815         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
74816         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
74817         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
74818         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
74819         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
74820         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
74821         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
74822         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
74823         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
74824         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
74825         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
74826         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
74827         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
74828         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
74829         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
74830         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
74831         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
74832         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
74833         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
74834         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
74835         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
74836         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
74837         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
74838         * sysdeps/ieee754/s_lib_version.c: Likewise.
74839         * sysdeps/ieee754/s_matherr.c: Likewise.
74840         * sysdeps/ieee754/s_signgam.c: Likewise.
74841         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
74842         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
74843         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
74844         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
74845         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
74846         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74847         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
74848         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
74849         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
74850         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
74851         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
74852         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
74853         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
74854         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
74855         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
74856         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
74857         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
74858         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
74859         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
74860         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
74861         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
74862
74863 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74864
74865         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
74866         * sunrpc/rpc_main.c: Likewise.
74867         * sunrpc/rpc_svcout.c: Likewise.
74868
74869 2012-03-09  David S. Miller  <davem@davemloft.net>
74870
74871         * include/math_private.h: New file.
74872
74873 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74874
74875         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
74876         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
74877         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
74878         from <bits/socket_type.h>.
74879         (enum __socket_type): Don't define here.
74880         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
74881         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74882         bits/socket_type.h.
74883
74884         [BZ #13566]
74885         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
74886         checking __USE_GNU.
74887
74888         * Makerules ($(inst_includedir)/%.h): New rule.
74889         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
74890         (install-others): Remove variable setting.
74891         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
74892
74893 2012-03-08  Richard Henderson  <rth@twiddle.net>
74894
74895         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
74896         from macro to inline function; merge with the
74897         !__LIBC_INTERNAL_MATH_INLINES version.
74898         (__ieee754_sqrtf): Likewise.
74899
74900         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
74901         to inline function.
74902         (__rintf, __floor, __floorf): Likewise.
74903
74904         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
74905         macro to inline function.
74906         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
74907
74908         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
74909         not <math/math_private.h>.
74910
74911 2012-03-08  David S. Miller  <davem@davemloft.net>
74912
74913         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
74914         copyright year.
74915         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
74916
74917 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
74918
74919         * resolv/gai_misc.c (handle_requests): Fix struct timespec
74920         normalization.
74921         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
74922         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
74923
74924 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
74925
74926         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
74927         be defined individually, they must be defined as a block.  Define
74928         S for printing a string instead of hidint the different by using a
74929         macro for adding the 'l'.
74930         * stdio-common/tst-fphex-wide.c: Adjust.
74931
74932 2012-03-07  Marek Polacek  <polacek@redhat.com>
74933
74934         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
74935
74936 2012-03-08  Marek Polacek  <polacek@redhat.com>
74937
74938         [BZ #13806]
74939         * stdio-common/Makefile (tests): Add tst-fphex-wide.
74940         * stdio-common/tst-fphex.c: Define a few macros to make the
74941         test reusable.  Use them.
74942         * stdio-common/tst-fphex-wide.c: New file.
74943
74944 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
74945
74946         [BZ #6911]
74947         * manual/macros.texi (gnusystems): New macro.
74948         (nongnusystems): Likewise.
74949         (gnulinuxhurdsystems): Likewise.
74950         (gnuhurdsystems): Likewise..
74951         (gnulinuxsystems): Likewise.
74952         * manual/charset.texi: Use new macros or @theglibc{} to refer to
74953         variants of the GNU system, not "GNU system".
74954         * manual/conf.texi: Likewise.
74955         * manual/errno.texi: Likewise.  Update example of errno macro
74956         expansion.
74957         * manual/filesys.texi: Likewise.
74958         (getumask): Document as specific to GNU/Hurd.
74959         * manual/install.texi: Likewise.  Reword some references to
74960         GNU/Linux.
74961         * manual/intro.texi: Likewise.
74962         * manual/io.texi: Likewise.
74963         (File Name Portability): Detail which constraints are inapplicable
74964         to all GNU systems and which are only inapplicable to GNU/Hurd.
74965         * manual/job.texi: Likewise.
74966         * manual/llio.texi: Likewise.
74967         (O_NOCTTY): Document as present on GNU/Linux.
74968         * manual/maint.texi: Likewise.
74969         * manual/memory.texi: Likewise.
74970         * manual/pattern.texi: Likewise.
74971         * manual/pipe.texi: Likewise.
74972         * manual/process.texi: Likewise.
74973         * manual/resource.texi: Likewise.
74974         (RUSAGE_CHILDREN): Remove statement about specifying a particular
74975         child on GNU/Hurd.
74976         * manual/setjmp.texi: Likewise.
74977         * manual/signal.texi: Likewise.
74978         * manual/startup.texi: Likewise.
74979         * manual/stdio.texi: Likewise.
74980         * manual/terminal.texi: Likewise.
74981         (ONLCR): Document as POSIX.
74982         (OXTABS): Document availability on GNU/Linux as XTABS.
74983         (ONOEOT): Document availability separately from other bits.
74984         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
74985         * manual/time.texi: Likewise.
74986         * manual/users.texi: Likewise.
74987         * INSTALL: Regenerated.
74988         * sysdeps/gnu/errlist.c: Regenerated.
74989
74990         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
74991         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
74992         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
74993         puts.
74994         * configure: Regenerated.
74995
74996 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
74997
74998         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
74999         default includes instead of AC_HEADER_CHECK.
75000         * sysdeps/i386/configure: Regenerated.
75001
75002         [BZ #10716]
75003         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
75004         * math/s_cacoshf.c (__cacoshf): Likewise.
75005         * math/s_cacoshl.c (__cacoshl): Likewise.
75006         * math/s_casinh.c (__casinh): Set signs of result from argument.
75007         * math/s_casinhf.c (__casinhf): Likewise.
75008         * math/s_casinhl.c (__casinhl): Likewise.
75009         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
75010         (casinh_test): Add more tests.
75011         * sysdeps/i386/fpu/libm-test-ulps: Update.
75012         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75013
75014 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
75015
75016         * po/zh_TW.po: Update from translation team.
75017
75018         * login/Makefile (distribute): Remove variable.
75019         * catgets/Makefile: Likewise.
75020         * mach/Makefile: Likewise.
75021         * malloc/Makefile: Likewise.
75022         * misc/Makefile: Likewise.
75023         * iconv/Makefile: Likewise.
75024         * nscd/Makefile: Likewise.
75025         * hurd/Makefile: Likewise.
75026         * manual/Makefile: Likewise.
75027         * locale/Makefile: Likewise.
75028         * intl/Makefile: Likewise.
75029         * conform/Makefile: Likewise.
75030         * nss/Makefile: Likewise.
75031         * time/Makefile: Likewise.
75032         * soft-fp/Makefile: Likewise.
75033         * dirent/Makefile: Likewise.
75034         * gmon/Makefile: Likewise.
75035         * po/Makefile: Likewise.
75036         * rt/Makefile: Likewise.
75037         * socket/Makefile: Likewise.
75038         * math/Makefile: Likewise.
75039         * signal/Makefile: Likewise.
75040         * debug/Makefile: Likewise.
75041         * elf/Makefile: Likewise.
75042         * timezone/Makefile: Likewise.
75043         * stdlib/Makefile: Likewise.
75044         * iconvdata/Makefile: Likewise.
75045         * sunrpc/Makefile: Likewise.
75046         * io/Makefile: Likewise.
75047         * argp/Makefile: Likewise.
75048         * inet/Makefile: Likewise.
75049         * hesiod/Makefile: Likewise.
75050         * grp/Makefile: Likewise.
75051         * csu/Makefile: Likewise.
75052         * wctype/Makefile: Likewise.
75053         * crypt/Makefile: Likewise.
75054         * libio/Makefile: Likewise.
75055         * string/Makefile: Likewise.
75056         * nis/Makefile: Likewise.
75057         * resolv/Makefile: Likewise.
75058         * stdio-common/Makefile: Likewise.
75059         * wcsmbs/Makefile: Likewise.
75060         * dlfcn/Makefile: Likewise.
75061         * posix/Makefile: Likewise.
75062
75063         [BZ #6959]
75064         * timezone/Makefile: Don't install timezone files, just the programs
75065         and scripts.
75066
75067 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
75068
75069         * nss/databases.def: Add missing gshadow entry.
75070
75071         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
75072
75073 2012-03-06  Marek Polacek  <polacek@redhat.com>
75074
75075         [BZ #13726]
75076         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
75077         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
75078         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
75079         * stdio-common/tst-long-dbl-fphex.c: New file.
75080
75081 2012-03-06  David S. Miller  <davem@davemloft.net>
75082
75083         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
75084         (set_obp_int): New function.
75085         (get_obp_int): New function.
75086         (__get_clockfreq_via_dev_openprom): Likewise.
75087         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
75088         Avoid unused variable warnings on 'val' and use builtin_expect.
75089         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
75090         __builtin_expect.
75091         (INLINE_CLONE_SYSCALL): Likewise.
75092
75093 2012-03-05  David S. Miller  <davem@davemloft.net>
75094
75095         * sysdeps/sparc/fpu/libm-test-ulps: Update.
75096
75097 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
75098
75099         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75100
75101         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
75102         only for |x| >= 40.
75103         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
75104
75105 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
75106
75107         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
75108         Replace gettimeofday with __vdso_gettimeofday.
75109
75110         * sysdeps/unix/sysv/linux/x86_64/init-first.c
75111         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
75112         __vdso_clock_gettime and __vdso_getcpu.
75113
75114         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
75115         time with __vdso_time.
75116
75117 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
75118
75119         * manual/lang.texi (size_t): Note types to which size_t may be
75120         equivalent with the GNU C Library, but do not describe when
75121         differences between them are significant.
75122
75123 2012-03-05  Andreas Jaeger  <aj@suse.de>
75124
75125         * sysdeps/i386/fpu/libm-test-ulps: Update.
75126
75127 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
75128
75129         [BZ #3976]
75130         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
75131         (__ieee754_pow): Save and restore rounding mode and use
75132         round-to-nearest for main computations.
75133         * math/libm-test.inc (pow_test_tonearest): New function.
75134         (pow_test_towardzero): Likewise.
75135         (pow_test_downward): Likewise.
75136         (pow_test_upward): Likewise.
75137         (main): Call the new functions.
75138         * sysdeps/i386/fpu/libm-test-ulps: Update.
75139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75140
75141         [BZ #3976]
75142         * math/libm-test.inc (cosh_test_tonearest): New function.
75143         (cosh_test_towardzero): Likewise.
75144         (cosh_test_downward): Likewise.
75145         (cosh_test_upward): Likewise.
75146         (sinh_test_tonearest): Likewise.
75147         (sinh_test_towardzero): Likewise.
75148         (sinh_test_downward): Likewise.
75149         (sinh_test_upward): Likewise.
75150         (main): Call the new functions.
75151         * sysdeps/i386/fpu/libm-test-ulps: Update.
75152         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75153
75154 2012-03-05  Tom de Vries  <tom@codesourcery.com>
75155
75156         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
75157         default stack guard is set in last bytes.
75158         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
75159
75160 2012-03-05  Kees Cook  <keescook@chromium.org>
75161
75162         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
75163
75164         [BZ #13656]
75165         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
75166         possibly allocate from heap instead of stack.
75167         * stdio-common/bug-vfprintf-nargs.c: New file.
75168         * stdio-common/Makefile (tests): Add nargs overflow test.
75169
75170 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
75171
75172         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75173
75174 2012-03-03  Marek Polacek  <polacek@redhat.com>
75175
75176         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
75177         * math/math_private.h: Likewise.
75178         * stdlib/tst-strtod.c: Likewise.
75179         * sysdeps/i386/i486/bits/atomic.h: Likewise.
75180         * sysdeps/x86_64/bits/atomic.h: Likewise.
75181
75182 2012-03-02  David S. Miller  <davem@davemloft.net>
75183
75184         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
75185         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
75186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
75187         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
75188         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
75189         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
75190         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
75191         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
75192
75193 2012-03-02  Roland McGrath  <roland@hack.frob.com>
75194
75195         [BZ #13792]
75196         * manual/examples/README: New file, says the example source files
75197         can be used under GPL>=2.
75198         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
75199         line containing just "*/".
75200         * manual/examples/add.c: Add copyright header (GPL>=2).
75201         * manual/examples/argp-ex1.c: Likewise.
75202         * manual/examples/argp-ex2.c: Likewise.
75203         * manual/examples/argp-ex3.c: Likewise.
75204         * manual/examples/argp-ex4.c: Likewise.
75205         * manual/examples/atexit.c: Likewise.
75206         * manual/examples/db.c: Likewise.
75207         * manual/examples/dir.c: Likewise.
75208         * manual/examples/dir2.c: Likewise.
75209         * manual/examples/execinfo.c: Likewise.
75210         * manual/examples/filecli.c: Likewise.
75211         * manual/examples/filesrv.c: Likewise.
75212         * manual/examples/fmtmsgexpl.c: Likewise.
75213         * manual/examples/genpass.c: Likewise.
75214         * manual/examples/inetcli.c: Likewise.
75215         * manual/examples/inetsrv.c: Likewise.
75216         * manual/examples/isockad.c: Likewise.
75217         * manual/examples/longopt.c: Likewise.
75218         * manual/examples/memopen.c: Likewise.
75219         * manual/examples/memstrm.c: Likewise.
75220         * manual/examples/mkfsock.c: Likewise.
75221         * manual/examples/mkisock.c: Likewise.
75222         * manual/examples/mygetpass.c: Likewise.
75223         * manual/examples/pipe.c: Likewise.
75224         * manual/examples/popen.c: Likewise.
75225         * manual/examples/rprintf.c: Likewise.
75226         * manual/examples/search.c: Likewise.
75227         * manual/examples/select.c: Likewise.
75228         * manual/examples/setjmp.c: Likewise.
75229         * manual/examples/sigh1.c: Likewise.
75230         * manual/examples/sigusr.c: Likewise.
75231         * manual/examples/stpcpy.c: Likewise.
75232         * manual/examples/strdupa.c: Likewise.
75233         * manual/examples/strftim.c: Likewise.
75234         * manual/examples/strncat.c: Likewise.
75235         * manual/examples/subopt.c: Likewise.
75236         * manual/examples/swapcontext.c: Likewise.
75237         * manual/examples/termios.c: Likewise.
75238         * manual/examples/testopt.c: Likewise.
75239         * manual/examples/testpass.c: Likewise.
75240         * manual/examples/timeval_subtract.c: Likewise.
75241
75242         [BZ #13792]
75243         * manual/time.texi (Elapsed Time): Move timeval_subtract example
75244         function to ...
75245         * manual/timeval_subtract.c.texi: ... here, new file.
75246
75247 2012-03-02  David S. Miller  <davem@davemloft.net>
75248
75249         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
75250
75251 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
75252
75253         [BZ #3976]
75254         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
75255         (__sin): Save and restore rounding mode and use round-to-nearest
75256         for all computations.
75257         (__cos): Save and restore rounding mode and use round-to-nearest
75258         for all computations.
75259         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
75260         <fenv.h>.
75261         (tan): Save and restore rounding mode and use round-to-nearest for
75262         all computations.
75263         * math/libm-test.inc (cos_test_tonearest): New function.
75264         (cos_test_towardzero): Likewise.
75265         (cos_test_downward): Likewise.
75266         (cos_test_upward): Likewise.
75267         (sin_test_tonearest): Likewise.
75268         (sin_test_towardzero): Likewise.
75269         (sin_test_downward): Likewise.
75270         (sin_test_upward): Likewise.
75271         (tan_test_tonearest): Likewise.
75272         (tan_test_towardzero): Likewise.
75273         (tan_test_downward): Likewise.
75274         (tan_test_upward): Likewise.
75275         (main): Call the new functions.
75276         * sysdeps/i386/fpu/libm-test-ulps: Update.
75277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75278
75279         [BZ #10135]
75280         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
75281         small n, then large n, before computing and testing k+n.
75282         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
75283         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
75284         Likewise.
75285         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
75286         Likewise.
75287         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
75288         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
75289         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
75290         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
75291         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
75292         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
75293         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
75294         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
75295         * math/libm-test.inc (scalbn_test): Add more tests.
75296         (scalbln_test): Likewise.
75297
75298         * manual/filesys.texi (mode_t): Describe constraints on size and
75299         signedness, not exact equivalence to a particular type.
75300         (ino_t): Likewise.
75301         (ino64_t): Likewise.
75302         (dev_t): Likewise.
75303         (nlink_t): Likewise.
75304         (blkcnt_t): Likewise.
75305         (blkcnt64_t): Likewise.
75306         * manual/llio.texi (off_t): Likewise.
75307
75308         [BZ #3976]
75309         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
75310         (__ieee754_exp): Save and restore rounding mode and use
75311         round-to-nearest for all computations.
75312         * math/libm-test.inc (exp_test_tonearest): New function.
75313         (exp_test_towardzero): Likewise.
75314         (exp_test_downward): Likewise.
75315         (exp_test_upward): Likewise.
75316         (main): Call the new functions.
75317         * sysdeps/i386/fpu/libm-test-ulps: Update.
75318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75319
75320 2012-03-01  Chris Demetriou  <cgd@google.com>
75321
75322         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
75323         have predictable order.
75324
75325 2012-03-01  David S. Miller  <davem@davemloft.net>
75326
75327         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
75328
75329         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
75330         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
75331         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
75332         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
75333
75334         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
75335         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
75336         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
75337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
75338         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
75339         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
75340         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
75341         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
75342         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
75343
75344         * sysdeps/sparc/fpu/libm-test-ulps: Update.
75345
75346         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
75347         * sysdeps/sparc/fpu/libm-test-ulps: to here.
75348         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
75349
75350         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
75351         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
75352         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
75353         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
75354         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
75355         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
75356         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
75357         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
75358         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
75359         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
75360         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
75361         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75362         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
75363         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
75364         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
75365         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
75366         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
75367         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
75368         * sysdeps/sparc/elf/configure: Regenerated.
75369
75370 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
75371
75372         * configure.in (AS, LD): Require binutils 2.20 or later.
75373         * configure: Regenerated.
75374         * manual/install.texi (Tools for Compilation): Give binutils 2.20
75375         as required minimum version.
75376         * INSTALL: Regenerated.
75377
75378         [BZ #2541]
75379         [BZ #4108]
75380         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
75381         before squaring exponent.
75382         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
75383         bottom long double and 27 bits of top long double before squaring
75384         exponent.
75385         * math/libm-test.inc (erfc_test): Add more tests.
75386         * sysdeps/i386/fpu/libm-test-ulps: Update.
75387         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75389
75390 2012-03-01  Kai Tietz  <ktietz@redhat.com>
75391
75392         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
75393         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
75394         containing bit-fields.
75395         * soft-fp/extended.h (_FP_UNION_E): Likewise.
75396         * soft-fp/single.h (_FP_UNION_S): Likewise.
75397         * soft-fp/double.h (_FP_UNION_D): Likewise.
75398
75399 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
75400
75401         [BZ #13786]
75402         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
75403         not include ../strcmp.S.
75404         [USE_AS_STRNCASECMP_L]: Likewise.
75405         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
75406         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
75407         * sysdeps/i386/i686/multiarch/strncase_l-c.c
75408         (__strncasecmp_l_ia32): Define as alias to
75409         __strncasecmp_l_nonascii.
75410
75411         [BZ #5794]
75412         * math/libm-test.inc (expm1_test): Add test for bug 5794.
75413         * sysdeps/i386/fpu/libm-test-ulps: Update.
75414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75415
75416         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
75417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75418
75419 2012-02-29  Jeff Law  <law@redhat.com>
75420
75421         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
75422         out of bounds read.
75423
75424 2012-02-29  Marek Polacek  <polacek@redhat.com>
75425
75426         [BZ #13706]
75427         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
75428         * elf/Makefile: Add rules to run tst-unused-dep.out.
75429
75430 2012-02-28  David S. Miller  <davem@davemloft.net>
75431
75432         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
75433         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
75434         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
75435         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
75436         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
75437         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
75438
75439 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
75440
75441         * math/libm-test.inc (llround_test): Move one test from
75442         lround_test.  Use TEST_f_L in moved test.
75443         (lround_test): Move misplaced test to llround_test.  Add testcase
75444         from bug 2561.
75445
75446 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
75447
75448         * sysdeps/x86_64/fpu/e_expf.S: New file.
75449         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
75450
75451 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
75452
75453         [BZ #13637]
75454         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
75455         of remain_len that may cause incomplete multi-byte character and
75456         false match.
75457         * posix/bug-regex33.c: New file.
75458         * posix/Makefile (tests): Add bug-regex33.
75459
75460 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
75461
75462         * manual/macros.texi: New file.
75463         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
75464         * manual/libc.texinfo: Include macros.texi.
75465         * manual/creatute.texi: Likewise.
75466         * manual/install.texi: Likewise.
75467         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
75468         @glibcadj{} in references to the GNU C Library.
75469         * manual/charset.texi: Likewise.
75470         * manual/conf.texi: Likewise.
75471         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
75472         when not using those macros.
75473         * manual/creature.texi: Likewise.
75474         * manual/crypt.texi: Likewise.
75475         * manual/errno.texi: Likewise.
75476         * manual/filesys.texi: Likewise.
75477         * manual/header.texi: Likewise.
75478         * manual/install.texi: Likewise.
75479         * manual/intro.texi: Likewise.
75480         * manual/io.texi: Likewise.
75481         * manual/job.texi: Likewise.
75482         * manual/lang.texi: Likewise.
75483         * manual/libc.texiinfo: Likewise.
75484         * manual/llio.texi: Likewise.
75485         * manual/locale.texi: Likewise.
75486         * manual/maint.texi: Likewise.
75487         * manual/math.texi: Likewise.
75488         * manual/memory.texi: Likewise.
75489         * manual/message.texi: Likewise.
75490         * manual/nss.texi: Likewise.
75491         * manual/pattern.texi: Likewise.
75492         * manual/process.texi: Likewise.
75493         * manual/resource.texi: Likewise.
75494         * manual/search.texi: Likewise.
75495         * manual/setjmp.texi: Likewise.
75496         * manual/signal.texi: Likewise.
75497         * manual/socket.texi: Likewise.
75498         * manual/startup.texi: Likewise.
75499         * manual/stdio.texi: Likewise.
75500         * manual/string.texi: Likewise.
75501         * manual/sysinfo.texi: Likewise.
75502         * manual/syslog.texi: Likewise.
75503         * manual/terminal.texi: Likewise.
75504         * manual/time.texi: Likewise.
75505         * manual/users.texi: Likewise.
75506         * INSTALL: Regenerated.
75507         * NOTES: Regenerated.
75508         * sysdeps/gnu/errlist.c: Regenerated.
75509
75510 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
75511
75512         * include/dirent.h: Include <dirstream.h> before
75513         <dirent/dirent.h>.
75514
75515 2012-02-28  David S. Miller  <davem@davemloft.net>
75516
75517         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
75518         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
75519         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
75520         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
75521
75522 2012-02-27  David S. Miller  <davem@davemloft.net>
75523
75524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
75525         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
75526         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
75527         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
75528
75529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
75530         frame pointer instead of stack pointer relative arg slot.
75531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
75532         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
75533         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
75534
75535 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
75536
75537         [BZ #3992]
75538         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
75539
75540 2012-02-27  David S. Miller  <davem@davemloft.net>
75541
75542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
75543         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
75544         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
75545         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
75546         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
75547         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
75548         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
75549         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
75550
75551 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
75552
75553         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
75554         later.  Allow versions 5-9.
75555         * configure: Regenerated.
75556         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
75557         required minimum version and 4.6 as recommended version.  Do not
75558         mention bugs in GCC 2.7 and 2.8.
75559         * INSTALL: Regenerated.
75560
75561 2012-02-27  David S. Miller  <davem@davemloft.net>
75562
75563         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
75564         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
75565         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
75566         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
75567         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
75568         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
75569         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
75570         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
75571
75572         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
75573         manipulate bits before adding and subtracting TWO112[sx].
75574         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
75575
75576 2012-02-27  Roland McGrath  <roland@hack.frob.com>
75577
75578         [BZ #13775]
75579         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
75580         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
75581         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
75582         being in POSIX, because they are in 1003.1-2008.
75583
75584         * rt/tst-aio.c: Include <fcntl.h>.
75585         * rt/tst-aio7.c: Likewise.
75586         * rt/tst-aio64.c: Likewise.
75587
75588         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
75589
75590 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
75591
75592         * manual/install.texi (--with-headers): Describe headers as
75593         interface headers, not private headers.
75594         (Specific advice for GNU/Linux systems): Describe use of headers
75595         from "make headers_install", not private headers from older
75596         kernels.
75597         * INSTALL: Regenerated.
75598         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
75599         Change to 2.6.19.
75600         * sysdeps/unix/sysv/linux/configure: Regenerated.
75601
75602         * manual/llio.texi (fclean): Remove documentation.
75603
75604         * manual/Makefile (libc-texi-generated): New variable.  Include
75605         version.texi.
75606         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
75607         $(libc-texi-generated), not duplicated list of files.
75608         (version.texi, stamp-version): New rules.
75609         (realclean): Remove $(libc-texi-generated), not individual files
75610         from that list.  Do not remove dir-add.texinfo.
75611         * manual/libc.texinfo: Comment out uses of edition numbers and
75612         references to printed manual.  Remove last-updated dates.
75613         (EDITION): Comment out.
75614         (ISBN): Likewise.
75615         (VERSION, UPDATED): Remove.
75616         (version.texi): Include.
75617
75618 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
75619
75620         * sysdeps/posix/spawni.c: Include <signal.h>.
75621         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
75622         * sysdeps/pthread/aio_fsync.c: Likewise.
75623
75624 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
75625
75626         * conform/Makefile (tests): Run only when not cross-compiling and
75627         when fast-check is not defined.
75628
75629         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
75630         * conform/data/limits.h-data: Fixes for POSIX2008.
75631         * conform/run-conformtest.sh: Run all tests.
75632         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
75633         headers.
75634         * include/bits/dlfcn.h: Likewise.
75635         * include/langinfo.h: Likewise.
75636         * include/monetary.h: Likewise.
75637         * include/sys/poll.h: Likewise.
75638
75639         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
75640         for __USE_GNU.
75641         * posix/spawn.h: Define __need_sigset_t.
75642         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
75643         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
75644         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
75645         to get sigevent_t only.
75646         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
75647         only for __USE_GNU.
75648         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75649         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
75650         process_vm_writev only for __USE_GNU.
75651         * termios/termios.h: Declare tcgetsid also for POSIX2008.
75652
75653         * conform/Makefile: For now ignore errors from run-conformtest.
75654         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
75655         POSIX to avoid namespace pollution.  Don't prepend headers.
75656         * conform/data/aio.h-data: Fixes for POSIX testing.
75657         * conform/data/fcntl.h-data: Likewise.
75658         * conform/data/glob.h-data: Likewise.
75659         * conform/data/grp.h-data: Likewise.
75660         * conform/data/pthread.h-data: Likewise.
75661         * conform/data/pwd.h-data: Likewise.
75662         * conform/data/signal.h-data: Likewise.
75663         * conform/data/spawn.h-data: Likewise.
75664         * conform/data/stdio.h-data: Likewise.
75665         * conform/data/stdlib.h-data: Likewise.
75666         * conform/data/stropts.h-data: Likewise.
75667         * conform/data/sys/mman.h-data: Likewise.
75668         * conform/data/sys/stat.h-data: Likewise.
75669         * conform/data/sys/types.h-data: Likewise.
75670         * conform/data/sys/wait.h-data: Likewise.
75671         * conform/data/time.h-data: Likewise.
75672         * conform/data/unistd.h-data: Likewise.
75673         * conform/data/utime.h-data: Likewise.
75674
75675         * io/sys/stat.h: fchmod was always in POSIX.
75676         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
75677         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
75678         * rt/aio.h: Define __need_timespec before including <time.h>.
75679         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
75680         struct.  Add forward declaration of pthread_attr_t and use it in
75681         sigevent.
75682         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
75683         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
75684         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
75685         always remove CLK_TCK definition.
75686
75687 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
75688
75689         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
75690
75691 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
75692
75693         * conform/run-conformtest.sh: New file.
75694         * conform/Makefile: Run run-conformtest for tests.
75695         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
75696         support.
75697
75698         * conform/data/uchar.h-data: New file.
75699         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
75700         * conform/data/arpa/inet.h-data: Likewise.
75701         * conform/data/assert.h-data: Likewise.
75702         * conform/data/complex.h-data: Likewise.
75703         * conform/data/cpio.h-data: Likewise.
75704         * conform/data/ctype.h-data: Likewise.
75705         * conform/data/dirent.h-data: Likewise.
75706         * conform/data/dlfcn.h-data: Likewise.
75707         * conform/data/errno.h-data: Likewise.
75708         * conform/data/fcntl.h-data: Likewise.
75709         * conform/data/float.h-data: Likewise.
75710         * conform/data/fmtmsg.h-data: Likewise.
75711         * conform/data/fnmatch.h-data: Likewise.
75712         * conform/data/ftw.h-data: Likewise.
75713         * conform/data/glob.h-data: Likewise.
75714         * conform/data/grp.h-data: Likewise.
75715         * conform/data/iconv.h-data: Likewise.
75716         * conform/data/inttypes.h-data: Likewise.
75717         * conform/data/langinfo.h-data: Likewise.
75718         * conform/data/libgen.h-data: Likewise.
75719         * conform/data/limits.h-data: Likewise.
75720         * conform/data/locale.h-data: Likewise.
75721         * conform/data/math.h-data: Likewise.
75722         * conform/data/monetary.h-data: Likewise.
75723         * conform/data/mqueue.h-data: Likewise.
75724         * conform/data/ndbm.h-data: Likewise.
75725         * conform/data/net/if.h-data: Likewise.
75726         * conform/data/netdb.h-data: Likewise.
75727         * conform/data/netinet/in.h-data: Likewise.
75728         * conform/data/nl_types.h-data: Likewise.
75729         * conform/data/poll.h-data: Likewise.
75730         * conform/data/pthread.h-data: Likewise.
75731         * conform/data/pwd.h-data: Likewise.
75732         * conform/data/regex.h-data: Likewise.
75733         * conform/data/sched.h-data: Likewise.
75734         * conform/data/search.h-data: Likewise.
75735         * conform/data/semaphore.h-data: Likewise.
75736         * conform/data/setjmp.h-data: Likewise.
75737         * conform/data/signal.h-data: Likewise.
75738         * conform/data/spawn.h-data: Likewise.
75739         * conform/data/stdarg.h-data: Likewise.
75740         * conform/data/stdio.h-data: Likewise.
75741         * conform/data/stdlib.h-data: Likewise.
75742         * conform/data/string.h-data: Likewise.
75743         * conform/data/strings.h-data: Likewise.
75744         * conform/data/stropts.h-data: Likewise.
75745         * conform/data/sys/ipc.h-data: Likewise.
75746         * conform/data/sys/mman.h-data: Likewise.
75747         * conform/data/sys/msg.h-data: Likewise.
75748         * conform/data/sys/resource.h-data: Likewise.
75749         * conform/data/sys/select.h-data: Likewise.
75750         * conform/data/sys/sem.h-data: Likewise.
75751         * conform/data/sys/shm.h-data: Likewise.
75752         * conform/data/sys/socket.h-data: Likewise.
75753         * conform/data/sys/stat.h-data: Likewise.
75754         * conform/data/sys/statvfs.h-data: Likewise.
75755         * conform/data/sys/time.h-data: Likewise.
75756         * conform/data/sys/timeb.h-data: Likewise.
75757         * conform/data/sys/times.h-data: Likewise.
75758         * conform/data/sys/types.h-data: Likewise.
75759         * conform/data/sys/uio.h-data: Likewise.
75760         * conform/data/sys/un.h-data: Likewise.
75761         * conform/data/sys/utsname.h-data: Likewise.
75762         * conform/data/sys/wait.h-data: Likewise.
75763         * conform/data/syslog.h-data: Likewise.
75764         * conform/data/tar.h-data: Likewise.
75765         * conform/data/termios.h-data: Likewise.
75766         * conform/data/utime.h-data: Likewise.
75767         * conform/data/utmpx.h-data: Likewise.
75768         * conform/data/varargs.h-data: Likewise.
75769         * conform/data/wchar.h-data: Likewise.
75770         * conform/data/wctype.h-data: Likewise.
75771         * conform/data/wordexp.h-data: Likewise.
75772
75773         * include/stropts.h: New file.
75774         * include/uchar.h: New file.
75775         * include/aio.h: Changes to allow conformtest.pl to use the headers.
75776         * include/assert.h: Likewise.
75777         * include/ctype.h: Likewise.
75778         * include/dirent.h: Likewise.
75779         * include/dlfcn.h: Likewise.
75780         * include/fcntl.h: Likewise.
75781         * include/fnmatch.h: Likewise.
75782         * include/glob.h: Likewise.
75783         * include/grp.h: Likewise.
75784         * include/libio.h: Likewise.
75785         * include/locale.h: Likewise.
75786         * include/math.h: Likewise.
75787         * include/net/if.h: Likewise.
75788         * include/netdb.h: Likewise.
75789         * include/netinet/in.h: Likewise.
75790         * include/pthread.h: Likewise.
75791         * include/pwd.h: Likewise.
75792         * include/regex.h: Likewise.
75793         * include/sched.h: Likewise.
75794         * include/search.h: Likewise.
75795         * include/setjmp.h: Likewise.
75796         * include/signal.h: Likewise.
75797         * include/stdio.h: Likewise.
75798         * include/stdlib.h: Likewise.
75799         * include/string.h: Likewise.
75800         * include/sys/cdefs.h: Likewise.
75801         * include/sys/mman.h: Likewise.
75802         * include/sys/msg.h: Likewise.
75803         * include/sys/resource.h: Likewise.
75804         * include/sys/select.h: Likewise.
75805         * include/sys/socket.h: Likewise.
75806         * include/sys/stat.h: Likewise.
75807         * include/sys/statvfs.h: Likewise.
75808         * include/sys/time.h: Likewise.
75809         * include/sys/times.h: Likewise.
75810         * include/sys/uio.h: Likewise.
75811         * include/sys/utsname.h: Likewise.
75812         * include/sys/wait.h: Likewise.
75813         * include/termios.h: Likewise.
75814         * include/time.h: Likewise.
75815         * include/ulimit.h: Likewise.
75816         * include/unistd.h: Likewise.
75817         * include/utime.h: Likewise.
75818         * include/wchar.h: Likewise.
75819         * include/wctype.h: Likewise.
75820         * include/wordexp.h: Likewise.
75821
75822         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
75823
75824         * time/time.h: TIME_UTC must be a macro.
75825         Make timespec_get available for ISO C11 only as well.
75826
75827 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
75828
75829         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
75830         Reported by Peng Haitao <penght@cn.fujitsu.com>.
75831
75832 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75833
75834         * configure.in: Use -o not -a in test for unsupported multi-arch.
75835
75836 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75837
75838         * manual/texinfo.tex: Update to version 2012-01-19.16.
75839
75840 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75841
75842         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
75843
75844 2012-02-24  Roland McGrath  <roland@hack.frob.com>
75845
75846         [BZ #13738]
75847         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
75848         * manual/fdl-1.3.texi: New file.
75849         * manual/fdl-1.1.texi: File removed.
75850
75851         [BZ #13738]
75852         * manual/libc.texinfo (FDL_VERSION): New @set.
75853         Use it for mention of FDL in cover text.
75854         (Documentation License): Use it in @include file name.
75855
75856 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75857             Roland McGrath  <roland@hack.frob.com>
75858
75859         [BZ #5461]
75860         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
75861         (not LONG_LONG_MAX and LONG_LONG_MIN.
75862         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
75863         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
75864         name.
75865         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
75866
75867 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75868
75869         [BZ #2547]
75870         [BZ #11365]
75871         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
75872         manipulate bits before adding and subtracting TWO23[sx].
75873         * math/libm-test.inc (nearbyint_test): Add more tests.
75874
75875 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75876
75877         [BZ #2548]
75878         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
75879         bits before adding and subtracting TWO23[sx].
75880         * math/libm-test.inc (rint_test): Add more tests.
75881         (rint_test_tonearest): Likewise.
75882         (rint_test_towardzero): Likewise.
75883         (rint_test_downward): Likewise.
75884         (rint_test_upward: Likewise.
75885
75886 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75887
75888         [BZ #10110]
75889         * include/stdc-predef.h: New file.  Extracted from features.h.
75890         * include/features.h: Include stdc-predef.h.
75891         * Makefile (headers): Add stdc-predef.h.
75892         * CONFORMANCE (Compiler limitations): Update.
75893
75894 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75895
75896         * manual/libc.texinfo (VERSION, UPDATED): Revert.
75897
75898 2012-02-21  David S. Miller  <davem@davemloft.net>
75899
75900         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
75901         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
75902
75903 2012-02-20  David S. Miller  <davem@davemloft.net>
75904
75905         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
75906         using a normal save/restore sequence, rather than allocating a
75907         dummy stack frame just to store a frame pointer and restore.
75908         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75909
75910 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75911
75912         * manual/install.texi: Fix stray word in line-wrapped comment.
75913
75914 2012-02-20  David S. Miller  <davem@davemloft.net>
75915
75916         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
75917         both binutils and gcc support GOTDATA.
75918
75919         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
75920         "rd %pc" in the PIC register setup sequences.
75921
75922         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
75923         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
75924         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
75925         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
75926         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
75927         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
75928         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
75929         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75930         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
75931         (SYSCALL_ERROR_HANDLER): Likewise.
75932         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
75933         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
75934         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
75935         (SYSCALL_ERROR_HANDLER): Likewise.
75936
75937         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
75938         (HAVE_GCC_GOTDATA): New.
75939         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
75940         relocation support in both binutils and gcc.
75941         * sysdeps/sparc/elf/configure: Regenerate.
75942
75943         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
75944         * sysdeps/sparc/sparc32/elf/configure: Delete.
75945         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
75946         * sysdeps/sparc/sparc64/elf/configure: Delete.
75947         * sysdeps/sparc/elf/configure.in: New file.
75948         * sysdeps/sparc/elf/configure: Generate.
75949
75950         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
75951         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
75952         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
75953         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
75954         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
75955
75956 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75957
75958         * manual/install.texi: Do not mention specific glibc version
75959         numbers.
75960         * manual/libc.texinfo (VERSION, UPDATED): Update.
75961         (@copying): Use @copyright{} and range of years.
75962
75963 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75964
75965         [BZ #13695]
75966         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
75967         [crti.S not in sysdirs] (generated): Do not append.
75968         [crti.S not in sysdirs] (omit-deps): Likewise.
75969         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
75970         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
75971         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
75972         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
75973         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
75974         Likewise.
75975         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
75976         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
75977         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
75978         * csu/defs.awk: Remove file.
75979         * sysdeps/generic/initfini.c: Likewise.
75980         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
75981         variable.
75982         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
75983         Likewise.
75984
75985 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75986
75987         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
75988         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
75989         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
75990         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
75991         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
75992         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
75993         <bits/epoll.h>.
75994         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
75995         (__EPOLL_PACKED): Define to empty if not defined by
75996         <bits/epoll.h>.
75997         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
75998         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75999         bits/epoll.h.
76000
76001 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
76002
76003         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
76004         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
76005         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
76006         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
76007         <bits/timerfd.h>.
76008         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
76009         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
76010         bits/timerfd.h.
76011
76012 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
76013
76014         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
76015         in C locale.
76016         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
76017         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
76018         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
76019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76020
76021 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
76022
76023         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
76024         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
76025
76026 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
76027
76028         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
76029         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
76030         defined.
76031         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
76032         Likewise.
76033         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
76034         entry for 2.16.
76035
76036 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
76037
76038         * math/w_acos.c: Use non-signaling floating-point comparisons.
76039         * math/w_acosf.c: Likewise.
76040         * math/w_acosh.c: Likewise.
76041         * math/w_acoshf.c: Likewise.
76042         * math/w_acoshl.c: Likewise.
76043         * math/w_acosl.c: Likewise.
76044         * math/w_asin.c: Likewise.
76045         * math/w_asinf.c: Likewise.
76046         * math/w_asinl.c: Likewise.
76047         * math/w_atanh.c: Likewise.
76048         * math/w_atanhf.c: Likewise.
76049         * math/w_atanhl.c: Likewise.
76050         * math/w_exp2.c: Likewise.
76051         * math/w_exp2f.c: Likewise.
76052         * math/w_exp2l.c: Likewise.
76053         * math/w_j0.c: Likewise.
76054         * math/w_j0f.c: Likewise.
76055         * math/w_j0l.c: Likewise.
76056         * math/w_j1.c: Likewise.
76057         * math/w_j1f.c: Likewise.
76058         * math/w_j1l.c: Likewise.
76059         * math/w_jn.c: Likewise.
76060         * math/w_jnf.c: Likewise.
76061         * math/w_log.c: Likewise.
76062         * math/w_log10.c: Likewise.
76063         * math/w_log10f.c: Likewise.
76064         * math/w_log10l.c: Likewise.
76065         * math/w_log2.c: Likewise.
76066         * math/w_log2f.c: Likewise.
76067         * math/w_log2l.c: Likewise.
76068         * math/w_logf.c: Likewise.
76069         * math/w_logl.c: Likewise.
76070         * math/w_sqrt.c: Likewise.
76071         * math/w_sqrtf.c: Likewise.
76072         * math/w_sqrtl.c: Likewise.
76073         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
76074         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
76075         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
76076         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
76077         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
76078
76079 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
76080
76081         [BZ #9739]
76082         * manual/string.texi (strnlen): Use correct parameter name in
76083         equivalent expression.
76084
76085 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
76086
76087         [BZ #11174]
76088         * manual/users.texi (seteuid): Consistently use neweuid for
76089         argument name.
76090
76091 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
76092
76093         [BZ #13704]
76094         * manual/nss.texi (Services in the NSS configuration): Correct
76095         list of services in example configuration file.
76096
76097 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
76098
76099         [BZ #11322]
76100         * manual/arith.texi: Remove statements about negative zero
76101         behaving identically to zero.
76102
76103 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
76104
76105         [BZ #5993]
76106         * manual/install.texi: Do not document upgrading from libc5.
76107
76108 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
76109
76110         [BZ #4596]
76111         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
76112
76113 2012-02-18  David S. Miller  <davem@davemloft.net>
76114
76115         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
76116         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
76117         %o7 across the call.
76118         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
76119         instead.
76120         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
76121         SETUP_PIC_REG_LEAF.
76122         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
76123         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
76124         * sysdeps/sparc/crtn.S: Likewise.
76125
76126 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
76127
76128         * aout/Makefile: Remove.
76129
76130 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
76131
76132         [BZ #13058]
76133         * manual/examples/argp-ex1.c (main): Format definition in GNU
76134         style.
76135         * manual/examples/argp-ex2.c (main): Likewise.
76136         * manual/examples/argp-ex3.c (main): Likewise.
76137         * manual/examples/argp-ex4.c (main): Likewise.
76138         * manual/examples/longopt.c (main): Use new-style prototype
76139         definition.
76140         * manual/examples/strncat.c (main): Specify return type and use
76141         (void) for arguments.
76142         * manual/examples/subopt.c (main): Use char **argv argument.
76143
76144 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
76145
76146         [BZ #5077]
76147         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
76148         rounding modes.
76149
76150 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
76151
76152         [BZ #6907]
76153         * manual/string.texi (strchr): Change when strchrnul is
76154         recommended.
76155
76156 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
76157
76158         [BZ #174]
76159         * manual/locale.texi (setlocale): Document LOCPATH.
76160
76161 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
76162
76163         [BZ #10210]
76164         * manual/process.texi (execle): Move @dots{} before last argument.
76165
76166 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
76167
76168         [BZ #12047]
76169         * manual/charset.texi (Generic Charset Conversion): Fix typo
76170         (LC_TYPE -> LC_CTYPE).
76171
76172 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
76173
76174         [BZ #5805]
76175         * manual/arith.texi (scalbn): Use @var{} on parameter names.
76176         (scalbnf): Likewise.
76177         (scalbnl): Likewise.
76178         (scalbln): Likewise.
76179         (scalblnf): Likewise.
76180         (scalblnl): Likewise.
76181         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
76182         (vwarnx): Likewise.
76183         (verr): Likewise.
76184         (verrx): Likewise.
76185         * manual/filesys.texi (telldir): Use braces around return type.
76186         * manual/llio.texi (mmap): Add space after comma.
76187         (mmap64): Likewise.
76188         * manual/math.texi (jn): Use @var{} on parameter names.
76189         (jnf): Likewise.
76190         (jnl): Likewise.
76191         (yn): Likewise.
76192         (ynf): Likewise.
76193         (ynl): Likewise.
76194         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
76195         line.
76196         * manual/resource.texi (ulimit): Use @dots{} instead of literal
76197         "...".
76198         (sched_get_priority_min): Remove semicolon on @deftypefun line.
76199         (sched_get_priority_max): Likewise.
76200         * manual/signal.texi (sigvec): Add space after comma.
76201         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
76202         names.
76203         (if_indextoname): Likewise.
76204         (if_freenameindex): Likewise.
76205         (sendto): Use ',' instead of '.' in prototype.
76206         * manual/startup.texi (syscall): Use @dots{} instead of literal
76207         "...".
76208         * manual/stdio.texi (__fpending): Separate initial words of
76209         paragraph from @deftypefun line.
76210         * manual/syslog.texi (syslog): Use @dots{} instead of literal
76211         "...".
76212         (vsyslog): Use @var{} on parameter names.
76213         * manual/terminal.texi (stty): Use @var{} on parameter names.
76214         * manual/users.texi (getutmp): Use @var{} on parameter names.
76215         (getutmpx): Likewise.
76216
76217 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
76218
76219         [BZ #6884]
76220         * manual/stdio.texi (fopen): Fix typos in description of
76221         ",ccs=STRING".
76222
76223 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
76224
76225         [BZ #4026]
76226         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
76227         get clock_id definition.
76228
76229 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
76230
76231         [BZ #4822]
76232         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
76233         (madvise): Cast every argument to void on its own.
76234
76235 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
76236
76237         [BZ #9902]
76238         * manual/startup.texi (Exit Status): Fix typo.
76239
76240 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
76241
76242         [BZ #10140]
76243         * manual/examples/argp-ex1.c: Include <stdlib.h>.
76244         * manual/examples/argp-ex2.c: Likewise.
76245         * manual/examples/argp-ex3.c: Likewise.
76246
76247 2012-02-16  Richard Henderson  <rth@redhat.com>
76248
76249         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
76250         * sysdeps/s390/s390-32/initfini.c: Remove.
76251         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
76252         * sysdeps/s390/s390-64/initfini.c: Remove.
76253
76254 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
76255
76256         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
76257         compiler output for sysdeps/generic/initfini.c.
76258         * sysdeps/sh/elf/initfini.c: Remove file.
76259
76260 2012-02-16  David S. Miller  <davem@davemloft.net>
76261
76262         [BZ #11494]
76263         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
76264
76265         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
76266         * sysdeps/sparc/crti.S: New file.
76267         * sysdeps/sparc/crtn.S: New file.
76268         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
76269         * sysdeps/sparc/sparc64/Makefile: Likewise.
76270
76271 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
76272
76273         [BZ #3335]
76274         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
76275
76276 2012-02-15  Roland McGrath  <roland@hack.frob.com>
76277
76278         [BZ #4822]
76279         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
76280
76281         * mach/devstream.c (cookie_io_functions_t): Macro removed.
76282         (write, read, close): Likewise.
76283         Patch by Aurelien Jarno <aurelien@aurel32.net>.
76284
76285 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
76286
76287         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
76288         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
76289         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
76290         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
76291         <bits/signalfd.h>.
76292         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
76293         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
76294         bits/signalfd.h.
76295
76296 2012-02-14  Marek Polacek  <polacek@redhat.com>
76297
76298         * sysdeps/x86_64/crti.S: New file.
76299         * sysdeps/x86_64/crtn.S: New file.
76300         * sysdeps/x86_64/elf/initfini.c: Remove file.
76301
76302 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
76303
76304         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
76305         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
76306         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
76307         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
76308         <bits/inotify.h>.
76309         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
76310         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
76311         bits/inotify.h.
76312
76313 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
76314
76315         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
76316         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
76317         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
76318         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
76319         <bits/eventfd.h>.
76320         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
76321         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
76322         bits/eventfd.h.
76323
76324 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
76325
76326         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
76327         __feraiseexcept instead of feraiseexcept.
76328
76329         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
76330         nanosleep invocations.
76331         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
76332         strings, and add error checking for a nanosleep invocations.
76333
76334 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         Replace FSF snail mail address with URLs, as per GNU coding standards.
76337         Most of the snail mail addresses were wrong anyway, and omitting
76338         them makes the source code easier to maintain.  Almost all of the
76339         changes are to license notices and to locale LC_IDENTIFICATION
76340         addresses, except for this one:
76341         * manual/libc.texinfo: In "Published by", give the FSF's URL,
76342         not its snail mail address.
76343
76344 2012-02-09  Richard Henderson  <rth@twiddle.net>
76345
76346         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
76347         of kernel-features.h.
76348
76349         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
76350
76351 2012-02-08  Marek Polacek  <polacek@redhat.com>
76352
76353         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
76354         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
76355         * sysdeps/gnu/_G_config.h: Likewise.
76356         * sysdeps/generic/_G_config.h: Likewise.
76357
76358 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
76359
76360         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
76361         tests.
76362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76363
76364         * sysdeps/powerpc/powerpc32/crti.S: New file.
76365         * sysdeps/powerpc/powerpc32/crtn.S: New file.
76366         * sysdeps/powerpc/powerpc64/crti.S: New file.
76367         * sysdeps/powerpc/powerpc64/crtn.S: New file.
76368
76369         * Makeconfig (have-initfini): Don't set.
76370         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
76371         * configure.in (nopic_initfini): Don't substitute.
76372         * config.h.in (HAVE_INITFINI): Don't #undef.
76373         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
76374         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
76375
76376 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
76377
76378         Support crti.S and crtn.S provided directly by architectures.
76379         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
76380         [crti.S in sysdirs] (omit-deps): Likewise.
76381         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
76382         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
76383         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
76384         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
76385         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
76386         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
76387         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
76388         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
76389         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
76390         compiler output for sysdeps/generic/initfini.c.
76391         * sysdeps/i386/elf/Makefile: Remove file.
76392         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
76393
76394 2012-02-07  Marek Polacek  <polacek@redhat.com>
76395
76396         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
76397         * sysdeps/gnu/_G_config.h: Likewise.
76398         * sysdeps/mach/hurd/_G_config.h: Likewise.
76399
76400 2012-02-07  Marek Polacek  <polacek@redhat.com>
76401
76402         * math/Makefile (tests): Add tst-CMPLX2.
76403         * math/tst-CMPLX2.c: New file.
76404
76405 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
76406
76407         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
76408
76409         * math/libm-test.inc (jn_test): Add missing L suffix.
76410
76411 2012-02-06  Marek Polacek  <polacek@redhat.com>
76412
76413         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
76414         * sysdeps/i386/fpu/e_powf.S: Likewise.
76415         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
76416         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
76417         * sysdeps/i386/fpu/e_acosh.S: Likewise.
76418         * sysdeps/i386/fpu/e_pow.S: Likewise.
76419         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
76420         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
76421         * sysdeps/i386/fpu/s_expm1.S: Likewise.
76422         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
76423         * sysdeps/i386/fpu/e_log2.S: Likewise.
76424         * sysdeps/i386/fpu/e_log2l.S: Likewise.
76425         * sysdeps/i386/fpu/e_scalb.S: Likewise.
76426         * sysdeps/i386/fpu/e_powl.S: Likewise.
76427         * sysdeps/i386/fpu/s_log1p.S: Likewise.
76428         * sysdeps/i386/fpu/e_log10f.S: Likewise.
76429         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
76430         * sysdeps/i386/fpu/e_logl.S: Likewise.
76431         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
76432         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
76433         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
76434         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
76435         * sysdeps/i386/fpu/e_log2f.S: Likewise.
76436         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
76437         * sysdeps/i386/fpu/e_log.S: Likewise.
76438         * sysdeps/i386/fpu/s_cexp.S: Likewise.
76439         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
76440         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
76441         * sysdeps/i386/fpu/e_logf.S: Likewise.
76442         * sysdeps/i386/fpu/e_log10l.S: Likewise.
76443         * sysdeps/i386/fpu/e_atanh.S: Likewise.
76444         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
76445         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
76446         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
76447         * sysdeps/i386/fpu/e_log10.S: Likewise.
76448         * sysdeps/i386/fpu/s_frexp.S: Likewise.
76449         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
76450         * sysdeps/i386/fpu/s_asinh.S: Likewise.
76451         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
76452         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
76453         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
76454         * sysdeps/i386/asm-syntax.h: Likewise.
76455         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
76456         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
76457         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
76458         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
76459         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
76460         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
76461         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
76462         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
76463         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
76464         * sysdeps/powerpc/sysdep.h: Likewise.
76465         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
76466         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
76467
76468 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
76469
76470         [BZ #411]
76471         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
76472
76473 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
76474
76475         * sysdeps/i386/sysdep.h: Include <features.h>.
76476         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
76477         version.
76478
76479 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
76480
76481         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
76482         Define.
76483         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
76484         LOAD_PIC_REG_STR.
76485
76486 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
76487
76488         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
76489         (SETUP_PIC_REG): Use GET_PC_THUNK.
76490         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
76491         macro.
76492
76493 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
76494
76495         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
76496         for non-PIC compilation.
76497         (SETUP_PIC_REG): Add .p2align directive.
76498         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
76499         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
76500         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
76501         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
76502         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
76503         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
76504         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
76505         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
76506         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
76507         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
76508         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
76509         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
76510         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
76511         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
76512         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
76513         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
76514         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
76515         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
76516         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
76517         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
76518         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
76519         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
76520         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
76521         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
76522         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
76523         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
76524         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
76525         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
76526         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
76527         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
76528         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
76529         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
76530         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
76531         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
76532         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
76533         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
76534         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
76535         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
76536         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
76537         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
76538         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
76539
76540 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
76541
76542         * math/tst-CMPLX.c: Include <stdio.h>.
76543
76544 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
76545
76546         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
76547         float.
76548         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
76549         * sysdeps/sparc/bits/mathdef.h: Likewise.
76550
76551 2012-01-31  Marek Polacek  <polacek@redhat.com>
76552
76553         * libio/libio.h: Don't define _PARAMS.
76554         * locale/programs/config.h: Don't define PARAMS.
76555         * stdlib/strtol_l.c: Likewise.
76556         (__strtol_l): Remove PARAMS from the prototype.
76557
76558 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
76559
76560         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
76561         names.  Just use the correct names.  Remove unnecessary wrapper
76562         functions.
76563         * malloc/arena.c: Likewise.
76564         * malloc/hooks.c: Likewise.
76565
76566         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
76567         ARENA_TEST says not to.  Simplify test for creation of a new arena.
76568         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
76569
76570 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
76571
76572         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
76573         into tail calls.
76574         (update_get_addr): New function.
76575         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
76576         GET_ADDR_MODULE parameter.
76577
76578 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
76579
76580         * crypt/cert.c: Remove __STDC__ conditionals.
76581         * crypt/crypt-entry.c: Likewise.
76582         * crypt/crypt_util.c: Likewise.
76583         * libio/filedoalloc.c: Likewise.
76584         * libio/fileops.c: Likewise.
76585         * libio/genops.c: Likewise.
76586         * libio/iofclose.c: Likewise.
76587         * libio/iofdopen.c: Likewise.
76588         * libio/iofopen.c: Likewise.
76589         * libio/iofopen64.c: Likewise.
76590         * libio/iogetdelim.c: Likewise.
76591         * libio/iopopen.c: Likewise.
76592         * libio/obprintf.c: Likewise.
76593         * libio/oldfileops.c: Likewise.
76594         * libio/oldiofclose.c: Likewise.
76595         * libio/oldiofdopen.c: Likewise.
76596         * libio/oldiofopen.c: Likewise.
76597         * libio/oldiopopen.c: Likewise.
76598         * libio/wfiledoalloc.c: Likewise.
76599         * libio/wgenops.c: Likewise.
76600         * locale/programs/xmalloc.c: Likewise.
76601         * misc/syslog.c: Likewise.
76602         * stdio-common/xbug.c: Likewise.
76603         * string/memchr.c: Likewise.
76604         * string/memcmp.c: Likewise.
76605         * string/memrchr.c: Likewise.
76606         * string/rawmemchr.c: Likewise.
76607         * sysdeps/posix/getcwd.c: Likewise.
76608         * time/strftime_l.c: Likewise.
76609
76610 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
76611
76612         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
76613         * config.make.in (config-cflags-sse2avx): Define.
76614         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
76615         Fix typo.
76616
76617 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
76618
76619         * scripts/config.guess: Update from upstream config git repository.
76620         * scripts/config.sub: Likewise.
76621
76622 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
76623
76624         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
76625         (EM_NUM): Update.
76626         (R_TILEPRO_*, R_TILEGX_*): New macros.
76627
76628         * scripts/firstversions.awk: Fix bug in version range handling.
76629
76630         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
76631
76632         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
76633
76634         * include/sys/epoll.h: New file.
76635         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
76636         libc_hidden_def.
76637
76638 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
76639
76640         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
76641         Avoid unnecessary __WORDSIZE == 64 test.
76642         (fmaxf): Use VEX format if possible.
76643         (fmax): Likewise.
76644         (fminf): Likewise.
76645         (fmin): Likewise.
76646
76647         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
76648         * math/math_private.h: Remove libc_fegetround* and
76649         libc_fesetround*.
76650         * sysdeps/i386/configure.in: Check for -msse2avx.
76651         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
76652         also if SSE2AVX is defined.
76653         Remove libc_fegetround* and libc_fesetround*.
76654         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
76655         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
76656         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
76657         of HAS_YMM_USABLE.
76658         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
76659         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
76660         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
76661         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
76662         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
76663
76664         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
76665
76666 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76667
76668         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
76669         size is not set.
76670         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76671
76672 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
76673
76674         [BZ #13618]
76675         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
76676         relocation.
76677         * Makeconfig (libm): Define.
76678         * elf/Makefile: Add rules to build and run tst-relsort1.
76679         * elf/tst-relsort1.c: New file.
76680         * elf/tst-relsort1mod1.c: New file.
76681         * elf/tst-relsort1mod2.c: New file.
76682
76683 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
76684
76685         * math/s_ldexp.c: Remove __STDC__ conditionals.
76686         * math/s_ldexpf.c: Likewise.
76687         * math/s_ldexpl.c: Likewise.
76688         * math/s_nextafter.c: Likewise.
76689         * math/s_nexttowardf.c: Likewise.
76690         * math/s_significand.c: Likewise.
76691         * math/s_significandf.c: Likewise.
76692         * math/s_significandl.c: Likewise.
76693         * math/w_jnl.c: Likewise.
76694         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
76695         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
76696         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
76697         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
76698         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
76699         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
76700         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
76701         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
76702         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
76703         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
76704         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
76705         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
76706         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
76707         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
76708         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
76709         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
76710         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
76711         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
76712         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
76713         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
76714         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
76715         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
76716         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
76717         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
76718         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
76719         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
76720         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
76721         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
76722         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
76723         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
76724         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
76725         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
76726         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
76727         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
76728         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
76729         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
76730         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
76731         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
76732         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
76733         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
76734         * sysdeps/ieee754/k_standard.c: Likewise.
76735         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
76736         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
76737         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
76738         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
76739         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
76740         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
76741         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
76742         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
76743         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
76744         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
76745         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
76746         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
76747         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
76748         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
76749         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
76750         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
76751         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
76752         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
76753         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
76754         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
76755         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
76756         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
76757         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
76758         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
76759         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
76760         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
76761         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
76762         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
76763         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
76764         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
76765         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
76766         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
76767         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
76768         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
76769         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
76770         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
76771         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
76772         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
76773         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
76774         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
76775         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
76776         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
76777         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
76778         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
76779         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
76780         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
76781         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
76782         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
76783         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
76784         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
76785         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
76786         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
76787         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
76788         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
76789         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
76790         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
76791         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
76792         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
76793         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
76794         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
76795         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
76796         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
76797         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
76798         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
76799         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
76800         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
76801         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
76802         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
76803         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
76804         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
76805         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
76806         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
76807         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
76808         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
76809         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
76810         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
76811         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
76812         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
76813         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
76814         * sysdeps/ieee754/s_matherr.c: Likewise.
76815         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
76816         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
76817         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
76818         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
76819
76820 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
76821
76822         * crypt/md5.h: Remove __STDC__ conditionals.
76823         * libio/libioP.h: Likewise.
76824         * locale/programs/config.h: Likewise.
76825         * sysdeps/generic/sysdep.h: Likewise.
76826         * sysdeps/i386/asm-syntax.h: Likewise.
76827         * sysdeps/s390/asm-syntax.h: Likewise.
76828         * sysdeps/unix/sysdep.h: Likewise.
76829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
76830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
76831
76832 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
76833
76834         * libio/libio.h: Remove __STDC__ conditionals.
76835         * malloc/obstack.h: Likewise.
76836         * math/complex.h: Likewise.
76837         * math/math.h: Likewise.
76838         * sysdeps/generic/_G_config.h: Likewise.
76839         * sysdeps/gnu/_G_config.h: Likewise.
76840         * sysdeps/mach/hurd/_G_config.h: Likewise.
76841         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76842         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
76843         * sysdeps/sparc/bits/mathdef.h: Likewise.
76844
76845 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
76846
76847         [BZ #13583]
76848         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
76849         Clean up HAS_* macros.
76850         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
76851         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
76852         possible.
76853         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
76854         HAS_AVX.
76855         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
76856         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
76857         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
76858         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
76859         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
76860
76861 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
76862
76863         * elf/tst-unique3.cc (gets): Remove declaration.
76864         * elf/tst-unique3lib.cc (gets): Likewise.
76865         * elf/tst-unique3lib2.cc (gets): Likewise.
76866         * elf/tst-unique4.cc (gets): Likewise.
76867
76868 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
76869
76870         * include/stdio.h: Add C++ protection.  Add gets declarations and
76871         definitions.
76872         * debug/tst-chk1.c: Don't declare gets here.
76873         * stdio-common/tst-gets.c: Likewise.
76874
76875 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76876
76877         * posix/glob: Remove directory.
76878
76879 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76880
76881         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
76882
76883 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
76884
76885         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
76886         of the non-standard EPFNOSUPPORT.
76887
76888 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76889
76890         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
76891         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
76892         ANYWHERE set to 1 only on KERN_NO_SPACE error.
76893
76894 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
76895
76896         * wcsmbs/uchar.h: Test __STDC_VERSION__.
76897
76898 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
76899
76900         * nscd/aicache.c (addhstaiX): Do not cache negative results of
76901         transient errors.
76902         * nscd/grpcache.c (cache_addgr): Likewise.
76903         * nscd/hstcache.c (cache_addhst): Likewise.
76904         * nscd/initgrcache.c (addinitgroupsX): Likewise.
76905         * nscd/pwdcache.c (cache_addpw): Likewise.
76906         * nscd/servicescache.c (cache_addserv): Likewise.
76907
76908 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
76909
76910         * malloc/malloc.c: Various cleanups.
76911         * malloc/hooks.c: Likewise.
76912
76913         * stdlib/Makefile (tests): Add bug-fmtmsg1.
76914         * stdlib/bug-fmtmsg1.c: New file.
76915
76916         * stdlib/fmtmsg.c (init): Add missing unlock.
76917         Patch by Peng Haitao <penght@cn.fujitsu.com>.
76918
76919 2012-01-12  Marek Polacek  <polacek@redhat.com>
76920
76921         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
76922         and _GNU_SOURCE.
76923
76924 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
76925
76926         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
76927         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
76928         macro to ensure uniqueness of label name.
76929         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76930         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76931
76932 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
76933
76934         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
76935
76936         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
76937         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
76938         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
76939         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
76940
76941 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
76942
76943         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
76944
76945         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
76946         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
76947         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
76948
76949         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
76950
76951         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
76952         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
76953         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
76954         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
76955
76956         * math/bits/math-finite.h: Add ldexp support.
76957
76958 2012-01-10  Marek Polacek  <polacek@redhat.com>
76959
76960         * locale/programs/localedef.h (show_archive_content): Add noreturn
76961         attribute.
76962
76963 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
76964
76965         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
76966
76967 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76968
76969         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
76970
76971         * io/Makefile (headers): Add bits/poll2.h.
76972
76973 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
76974
76975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
76976         typo #include statement.
76977
76978 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76979
76980         * include/sys/cdefs.h: Define __attribute_alloc_size.
76981         * catgets/gencat.c: Add alloc_size attribute and apply consistently
76982         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
76983         * elf/pldd.c: Likewise.
76984         * iconv/iconv_charmap.c: Likewise.
76985         * iconv/iconvconfig.c: Likewise.
76986         * iconv/strtab.c: Likewise.
76987         * locale/programs/locale.c: Likewise.
76988         * locale/programs/localedef.h: Likewise.
76989         * locale/programs/simple-hash.c: Likewise.
76990         * nscd/nscd.h: Likewise.
76991         * nss/makedb.c: Likewise.
76992         * sysdeps/generic/ldconfig.h: Likewise.
76993         * locale/programs/localedef.c: Remove xmalloc prototype.
76994         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
76995
76996 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
76997
76998         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
76999         appropriate.
77000
77001 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
77002
77003         * math/Makefile (tests): Add tst-CMPLX.
77004         * math/tst-CMPLX.c: New file.
77005
77006         * math/complex.h (CMPLXL): Fix typo.
77007
77008         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
77009         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
77010         GLIBC_2.16.
77011         * debug/tst-chk1.c: Add poll and ppoll tests.
77012         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
77013         * include/sys/poll.h: Add hidden proto for ppoll.
77014         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
77015         * sysdeps/mach/hurd/ppoll.c: Likewise.
77016         * io/ppoll.c: Likewise.
77017         * debug/poll_chk.c: New file.
77018         * debug/ppoll_chk.c: New file.
77019         * include/bits/poll2.h: New file.
77020         * io/bits/poll2.h: New file.
77021
77022         [BZ #1350]
77023         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
77024
77025         * configure.in: static is always set to yes.  Remove.
77026         * config.make.in: Don't set build-static.
77027         * Makeconfig: Remove use of build-static.
77028         * dlfcn/Makefile: Likewise.
77029         * elf/Makefile: Likewise.
77030         * math/Makefile: Likewise.
77031         * misc/Makefile: Likewise.
77032         * nptl/Makefile: Likewise.
77033         * sysdeps/mach/hurd/Makefile: Likewise.
77034
77035         * configure.in: PWD_P is not used anymore.
77036         * config.make.in: Remove PWD_P entry.
77037
77038         * configure.in: Remove last remnants of RANLIB.
77039         No need to check for signed size_t anymore.
77040         Don't set libc_commonpagesize and libc_relro_required here for Alpha
77041         and IA-64.
77042         Remove __builtin_expect test because we require at least gcc 3.4.
77043         * aclocal.m4: Likewise.
77044
77045         * wcsmbs/mbrtoc16.c: Implement using towc function.
77046         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
77047         * wcsmbs/wcsmbsload.c: Likewise.
77048         * iconv/gconv_simple.c: Likewise.
77049         * iconv/gconv_int.h: Likewise.
77050         * iconv/gconv_builtin.h: Likewise.
77051         * iconv/iconv_prog.c: Remove CHAR16 handling.
77052
77053         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
77054
77055         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
77056
77057         * configure.in: Remove --with-elf and --enable-bounded options.
77058         Dont set base_machine for ia64.  More non-ELF conditions removed.
77059         Remove testing and setting of leading underscore information.
77060         * config.make.in (build-bounded): Set to no.
77061         * config.h.in: Remove NO_UNDERSCORES entry.
77062         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
77063         them.
77064         * csu/start.c: Remove !NO_UNDERSCORE code.
77065         * locale/localeinfo.h: Likewise.
77066         * sysdeps/generic/machine-gmon.h: Likewise.
77067         * sysdeps/generic/sysdep.h: Likewise.
77068         * sysdeps/i386/sysdep.h: Likewise.
77069         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
77070         * sysdeps/mach/sysdep.h: Likewise.
77071         * sysdeps/s390/s390-32/sysdep.h: Likewise.
77072         * sysdeps/s390/s390-64/sysdep.h: Likewise.
77073         * sysdeps/sh/sysdep.h: Likewise.
77074         * sysdeps/sparc/sparc32/alloca.S: Likewise.
77075         * sysdeps/unix/i386/sysdep.S: Likewise.
77076         * sysdeps/unix/sparc/start.c: Likewise.
77077         * sysdeps/unix/sparc/sysdep.S: Likewise.
77078         * sysdeps/unix/sparc/sysdep.h: Likewise.
77079         * sysdeps/unix/start.c: Likewise.
77080         * sysdeps/unix/x86_64/sysdep.S: Likewise.
77081         * sysdeps/x86_64/sysdep.h: Likewise.
77082
77083 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
77084
77085         [BZ #13553]
77086         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
77087         for non-gcc.
77088         * argp/argp-fmtstream.h: Use const instead __const.
77089         * argp/argp.h: Likewise.
77090         * assert/assert.h: Likewise.
77091         * bits/fenv.h: Likewise.
77092         * bits/sched.h: Likewise.
77093         * bits/sigset.h: Likewise.
77094         * bits/sigthread.h: Likewise.
77095         * catgets/nl_types.h: Likewise.
77096         * conform/data/pthread.h-data: Likewise.
77097         * crypt/crypt-private.h: Likewise.
77098         * crypt/crypt.h: Likewise.
77099         * crypt/crypt_util.c: Likewise.
77100         * ctype/ctype.h: Likewise.
77101         * debug/execinfo.h: Likewise.
77102         * debug/mbsnrtowcs_chk.c: Likewise.
77103         * debug/mbsrtowcs_chk.c: Likewise.
77104         * debug/wcsnrtombs_chk.c: Likewise.
77105         * debug/wcsrtombs_chk.c: Likewise.
77106         * debug/wcstombs_chk.c: Likewise.
77107         * dirent/dirent.h: Likewise.
77108         * dlfcn/dlfcn.h: Likewise.
77109         * elf/neededtest4.c: Likewise.
77110         * grp/grp.h: Likewise.
77111         * gshadow/gshadow.h: Likewise.
77112         * iconv/gconv.h: Likewise.
77113         * iconv/gconv_int.h: Likewise.
77114         * iconv/gconv_simple.c: Likewise.
77115         * iconv/iconv.h: Likewise.
77116         * iconv/loop.c: Likewise.
77117         * iconv/skeleton.c: Likewise.
77118         * include/aio.h: Likewise.
77119         * include/aliases.h: Likewise.
77120         * include/argz.h: Likewise.
77121         * include/arpa/inet.h: Likewise.
77122         * include/assert.h: Likewise.
77123         * include/dirent.h: Likewise.
77124         * include/dlfcn.h: Likewise.
77125         * include/execinfo.h: Likewise.
77126         * include/fcntl.h: Likewise.
77127         * include/fenv.h: Likewise.
77128         * include/glob.h: Likewise.
77129         * include/grp.h: Likewise.
77130         * include/libintl.h: Likewise.
77131         * include/mntent.h: Likewise.
77132         * include/netdb.h: Likewise.
77133         * include/pwd.h: Likewise.
77134         * include/rpc/netdb.h: Likewise.
77135         * include/sched.h: Likewise.
77136         * include/search.h: Likewise.
77137         * include/shadow.h: Likewise.
77138         * include/signal.h: Likewise.
77139         * include/stdio.h: Likewise.
77140         * include/stdlib.h: Likewise.
77141         * include/string.h: Likewise.
77142         * include/sys/socket.h: Likewise.
77143         * include/sys/stat.h: Likewise.
77144         * include/sys/statfs.h: Likewise.
77145         * include/sys/statvfs.h: Likewise.
77146         * include/sys/syslog.h: Likewise.
77147         * include/sys/time.h: Likewise.
77148         * include/sys/uio.h: Likewise.
77149         * include/time.h: Likewise.
77150         * include/unistd.h: Likewise.
77151         * include/utmp.h: Likewise.
77152         * include/wchar.h: Likewise.
77153         * include/wctype.h: Likewise.
77154         * inet/aliases.h: Likewise.
77155         * inet/arpa/inet.h: Likewise.
77156         * inet/netinet/ether.h: Likewise.
77157         * inet/netinet/in.h: Likewise.
77158         * intl/libintl.h: Likewise.
77159         * io/bits/fcntl2.h: Likewise.
77160         * io/fcntl.h: Likewise.
77161         * io/ftw.h: Likewise.
77162         * io/sys/poll.h: Likewise.
77163         * io/sys/stat.h: Likewise.
77164         * io/sys/statfs.h: Likewise.
77165         * io/sys/statvfs.h: Likewise.
77166         * io/utime.h: Likewise.
77167         * libio/bits/stdio.h: Likewise.
77168         * libio/bits/stdio2.h: Likewise.
77169         * libio/libio.h: Likewise.
77170         * libio/libioP.h: Likewise.
77171         * libio/stdio.h: Likewise.
77172         * locale/lc-ctype.c: Likewise.
77173         * locale/locale.h: Likewise.
77174         * login/utmp.h: Likewise.
77175         * malloc/arena.c: Likewise.
77176         * malloc/malloc.c: Likewise.
77177         * malloc/malloc.h: Likewise.
77178         * malloc/mcheck.c: Likewise.
77179         * malloc/mtrace.c: Likewise.
77180         * math/bits/mathcalls.h: Likewise.
77181         * math/fenv.h: Likewise.
77182         * math/math_private.h: Likewise.
77183         * misc/bits/error.h: Likewise.
77184         * misc/bits/syslog.h: Likewise.
77185         * misc/err.h: Likewise.
77186         * misc/error.h: Likewise.
77187         * misc/fstab.h: Likewise.
77188         * misc/mntent.h: Likewise.
77189         * misc/regexp.h: Likewise.
77190         * misc/search.h: Likewise.
77191         * misc/sgtty.h: Likewise.
77192         * misc/sys/mman.h: Likewise.
77193         * misc/sys/syslog.h: Likewise.
77194         * misc/sys/uio.h: Likewise.
77195         * misc/sys/xattr.h: Likewise.
77196         * misc/ttyent.h: Likewise.
77197         * nis/rpcsvc/ypclnt.h: Likewise.
77198         * nss/nss.h: Likewise.
77199         * posix/bits/unistd.h: Likewise.
77200         * posix/fnmatch.h: Likewise.
77201         * posix/glob.h: Likewise.
77202         * posix/sched.h: Likewise.
77203         * posix/spawn.h: Likewise.
77204         * posix/sys/wait.h: Likewise.
77205         * posix/unistd.h: Likewise.
77206         * posix/wordexp.h: Likewise.
77207         * pwd/pwd.h: Likewise.
77208         * resolv/netdb.h: Likewise.
77209         * resource/sys/resource.h: Likewise.
77210         * rt/aio.h: Likewise.
77211         * rt/bits/mqueue2.h: Likewise.
77212         * rt/mqueue.h: Likewise.
77213         * shadow/shadow.h: Likewise.
77214         * signal/signal.h: Likewise.
77215         * socket/send.c: Likewise.
77216         * socket/sendto.c: Likewise.
77217         * socket/sys/socket.h: Likewise.
77218         * stdio-common/printf.h: Likewise.
77219         * stdlib/bits/stdlib.h: Likewise.
77220         * stdlib/fmtmsg.h: Likewise.
77221         * stdlib/monetary.h: Likewise.
77222         * stdlib/stdlib.h: Likewise.
77223         * stdlib/ucontext.h: Likewise.
77224         * streams/stropts.h: Likewise.
77225         * string/argz.h: Likewise.
77226         * string/bits/string2.h: Likewise.
77227         * string/string.h: Likewise.
77228         * string/strings.h: Likewise.
77229         * sunrpc/rpc/auth.h: Likewise.
77230         * sunrpc/rpc/auth_des.h: Likewise.
77231         * sunrpc/rpc/clnt.h: Likewise.
77232         * sunrpc/rpc/netdb.h: Likewise.
77233         * sunrpc/rpc/pmap_clnt.h: Likewise.
77234         * sunrpc/rpc/xdr.h: Likewise.
77235         * sysdeps/generic/inttypes.h: Likewise.
77236         * sysdeps/generic/net/if.h: Likewise.
77237         * sysdeps/generic/sys/swap.h: Likewise.
77238         * sysdeps/gnu/net/if.h: Likewise.
77239         * sysdeps/gnu/utmpx.h: Likewise.
77240         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
77241         * sysdeps/i386/i486/bits/string.h: Likewise.
77242         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
77243         * sysdeps/s390/bits/string.h: Likewise.
77244         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
77245         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
77246         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
77247         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
77248         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
77249         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
77250         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
77251         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
77252         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
77253         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
77254         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
77255         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
77256         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
77257         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
77258         * sysdeps/unix/sysv/linux/readv.c: Likewise.
77259         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
77260         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
77261         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
77262         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
77263         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
77264         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
77265         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
77266         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
77267         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
77268         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
77269         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
77270         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
77271         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
77272         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
77273         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
77274         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
77275         * sysvipc/sys/ipc.h: Likewise.
77276         * sysvipc/sys/msg.h: Likewise.
77277         * sysvipc/sys/sem.h: Likewise.
77278         * sysvipc/sys/shm.h: Likewise.
77279         * termios/termios.h: Likewise.
77280         * time/sys/time.h: Likewise.
77281         * time/time.h: Likewise.
77282         * wcsmbs/bits/wchar2.h: Likewise.
77283         * wcsmbs/uchar.h: Likewise.
77284         * wcsmbs/wchar.h: Likewise.
77285         * wctype/wctype.h: Likewise.
77286
77287         [BZ #13551]
77288         * Makeconfig: Remove all but ELF support including AIX support.
77289         * Makerules: Likewise.
77290         * config.h.in: Likewise.
77291         * config.make.in: Likewise.
77292         * configure: Likewise.
77293         * configure.in: Likewise.
77294         * csu/Makefile: Likewise.
77295         * csu/version.c: Likewise.
77296         * debug/Makefile: Likewise.
77297         * dlfcn/Makefile: Likewise.
77298         * elf/Makefile: Likewise.
77299         * extra-lib.mk: Likewise.
77300         * iconv/Makefile: Likewise.
77301         * include/libc-symbols.h: Likewise.
77302         * include/shlib-compat.h: Likewise.
77303         * resolv/Makefile: Likewise.
77304         * resolv/res_libc.c: Likewise.
77305         * rt/Makefile: Likewise.
77306         * sysdeps/i386/asm-syntax.h: Likewise.
77307         * sysdeps/i386/sysdep.h: Likewise.
77308         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
77309         * sysdeps/mach/sysdep.h: Likewise.
77310         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
77311         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
77312         * sysdeps/s390/asm-syntax.h: Likewise.
77313         * sysdeps/s390/s390-32/sysdep.h: Likewise.
77314         * sysdeps/s390/s390-64/sysdep.h: Likewise.
77315         * sysdeps/sh/sysdep.h: Likewise.
77316         * sysdeps/unix/sparc/sysdep.h: Likewise.
77317         * sysdeps/wordsize-32/divdi3.c: Likewise.
77318         * sysdeps/x86_64/sysdep.h: Likewise.
77319
77320         * argp/Versions: Remove _argp_unlock_xxx.
77321
77322         [BZ #13559]
77323         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
77324         * abilist/libBrokenLocale.abilist: Likewise.
77325         * abilist/libanl.abilist: Likewise.
77326         * abilist/libc.abilist: Likewise.
77327         * abilist/libcrypt.abilist: Likewise.
77328         * abilist/libdl.abilist: Likewise.
77329         * abilist/libm.abilist: Likewise.
77330         * abilist/libnsl.abilist: Likewise.
77331         * abilist/libpthread.abilist: Likewise.
77332         * abilist/libresolv.abilist: Likewise.
77333         * abilist/librt.abilist: Likewise.
77334         * abilist/libthread_db.abilist: Likewise.
77335         * abilist/libutil.abilist: Likewise.
77336         * abilist/libnss_db.abilist: New file.
77337
77338         * scripts/abilist.awk: Add support for indirect functions.
77339
77340         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
77341
77342         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
77343
77344         * shlib-versions: Remove entries for ports architectures.
77345
77346         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
77347         files in ports.
77348         * elf/stackguard-macros.h: Remove support for IA-64.
77349         * elf/tst-auditmod1.c: Likewise.
77350         * sysdeps/generic/ldsodefs.h: Likewise.
77351
77352         * sysdeps/unix/sysv/linux/configure.in: Ports should define
77353         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
77354         configure files.
77355
77356         [BZ #13552]
77357         * configure.in: Remove --enable-omitfp support.
77358         * FAQ.in: Adjust.
77359         * config.make.in: Likewise.
77360         * Makeconfig: Likewise.
77361         * manual/install.texi: Likewise.
77362
77363         In case anyone cares, the IA-64 architecture could move to ports.
77364         * sysdeps/ia64/*: Removed.
77365         * sysdeps/unix/sysv/linux/ia64/*: Removed.
77366         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
77367
77368         [BZ #13555]
77369         * configure.in: Remove entries for unsupported architectures.
77370
77371         [BZ #13533]
77372         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
77373         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
77374         routines.
77375         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
77376         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
77377         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
77378         fall back to using wcrtomb.
77379         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
77380         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
77381         renaming.
77382         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
77383         * wcsmbs/tst-c16c32-1.c: New file.
77384
77385         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
77386         local variable.
77387
77388         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
77389
77390         * elf/tst-unique3.cc: Add explicit declaration of gets.
77391         * elf/tst-unique3lib.cc: Likewise.
77392         * elf/tst-unique3lib2.cc: Likewise.
77393         * elf/tst-unique4.cc: Likewise.
77394
77395         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
77396
77397 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
77398
77399         [BZ #13566]
77400         * assert/assert.h (static_assert): Don't define for C++.
77401         * libio/stdio.h (gets): Do declare for C++ <= C++11.
77402         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
77403
77404 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
77405
77406         * iconv/loop.c (single loop): Fix assertion in storing of
77407         remaining bytes.
77408
77409         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
77410
77411 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
77412
77413         * posix/getconf.c: Update copyright year.
77414         * nss/getent.c: Likewise.
77415         * nss/makedb.c: Likewise.
77416         * iconv/iconvconfig.c: Likewise.
77417         * iconv/iconv_prog.c: Likewise.
77418         * elf/ldconfig.c: Likewise.
77419         * elf/pldd.c: Likewise.
77420         * elf/sotruss.ksh: Likewise.
77421         * catgets/gencat.c: Likewise.
77422         * csu/version.c: Likewise.
77423         * elf/ldd.bash.in: Likewise.
77424         * elf/sprof.c (print_version): Likewise.
77425         * locale/programs/locale.c: Likewise.
77426         * locale/programs/localedef.c: Likewise.
77427         * login/programs/pt_chown.c: Likewise.
77428         * nscd/nscd.c (print_version): Likewise.
77429         * debug/xtrace.sh: Likewise.
77430         * malloc/memusage.sh: Likewise.
77431         * malloc/mtrace.pl: Likewise.
77432         * debug/catchsegv.sh: Likewise.
77433
77434 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
77435
77436         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
77437         pure attribute.
77438
77439 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
77440
77441         [BZ #13533]
77442         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
77443         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
77444         transformations.
77445         * iconv/gconv_int.h: Likewise.
77446         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
77447         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
77448         from libc for GLIBC_2.16.
77449         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
77450         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
77451         * wcsmbs/uchar.h: Really define mbstate_t.
77452         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
77453         * wcsmbs/c16rtomb.c: New file.
77454         * wcsmbs/mbrtoc16.c: New file.
77455         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
77456         for C/POSIX locale.
77457         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
77458         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
77459
77460         * wcsmbs/wchar.h: Add missing __restrict.
77461
77462 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
77463
77464         [BZ #13532]
77465         * time/Makefile (routines): Add timespec_get.
77466         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
77467         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
77468         timespec for ISO C11.
77469         * time/timespec_get.c: New file.
77470         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
77471         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
77472
77473         [BZ #13531]
77474         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
77475         * stdlib/stdlib.h: Declare aligned_alloc.
77476         * Versions.def: Add GLIBC_2.16 for libc.
77477         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
77478
77479         [BZ 13527]
77480         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
77481         ISO C11.
77482
77483         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
77484         code.
77485
77486         [BZ #13528]
77487         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
77488
77489         [BZ #13529]
77490         * assert/assert.h (static_assert): Define.
77491
77492         * version.h: Update for 2.16 development version.
77493
77494         [BZ #13526]
77495         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
77496         _ISOC11_SOURCE.
77497
77498         * version.h (RELEASE): Bump for 2.15 release.
77499         * include/features.h (__GLIBC_MINOR__): Bump to 15.
77500
77501         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
77502         Patch by Marek Polacek <mpolacek@redhat.com>.
77503
77504         * bits/byteswap.h: Protect long long constants with __extension__.
77505         * sysdeps/i386/bits/byteswap.h: Likewise.
77506         * sysdeps/ia64/bits/byteswap.h: Likewise.
77507         * sysdeps/s390/bits/byteswap.h: Likewise.
77508         * sysdeps/x86_64/bits/byteswap.h: Likewise.
77509
77510 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77511
77512         [BZ #13540]
77513         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
77514         destination buffer.
77515         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
77516
77517 2011-12-23  Marek Polacek  <polacek@redhat.com>
77518
77519         * elf/dl-addr.c (determine_info): Add inline keyword.
77520         * elf/tst-auditmod4b.c (check_avx): Likewise.
77521         * elf/tst-auditmod6b.c (check_avx): Likewise.
77522         * elf/tst-auditmod6c.c (check_avx): Likewise.
77523         * elf/tst-auditmod7b.c (check_avx): Likewise.
77524
77525 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
77526
77527         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
77528         !__SSE_MATH__.
77529
77530 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77531
77532         [BZ #13540]
77533         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
77534         processing for last bytes.
77535
77536 2011-08-06  Bruno Haible  <bruno@clisp.org>
77537
77538         [BZ #13061]
77539         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
77540         U+0385, not to U+1FEE.
77541
77542         [BZ #13062]
77543         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
77544         entry for U+00A5 U+0301.
77545
77546 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
77547
77548         [BZ #13166]
77549         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
77550         buffer for the output is too small.
77551
77552         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
77553         optimization.
77554
77555         [BZ #13185]
77556         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
77557         SSE flags if possible.
77558
77559 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77560
77561         [BZ #13540]
77562         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
77563         processing for last bytes.
77564
77565 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
77566
77567         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
77568         (syscall-list-default-options, syscall-list-default-condition)
77569         (syscall-list-includes): Define.
77570         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
77571         list of ABIs and options and #if conditions for each ABI.  Do not
77572         handle common syscalls between ABIs specially.
77573         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
77574         Remove.
77575         (syscall-list-variants, syscall-list-32bit-options)
77576         (syscall-list-32bit-condition, syscall-list-64bit-options)
77577         (syscall-list-64bit-condition): Define.
77578         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
77579         (syscall-list-variants, syscall-list-32bit-options)
77580         (syscall-list-32bit-condition, syscall-list-64bit-options)
77581         (syscall-list-64bit-condition): Define.
77582         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
77583         Remove.
77584         (syscall-list-variants, syscall-list-32bit-options)
77585         (syscall-list-32bit-condition, syscall-list-64bit-options)
77586         (syscall-list-64bit-condition): Define.
77587         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
77588         Remove.
77589         (syscall-list-variants, syscall-list-32bit-options)
77590         (syscall-list-32bit-condition, syscall-list-64bit-options)
77591         (syscall-list-64bit-condition): Define.
77592
77593 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
77594
77595         * locale/iso-639.def: Add brx entry.
77596
77597         [BZ #13328]
77598         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
77599         Proposed by Mariusz_Cukr <marcukr@op.pl>.
77600
77601         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
77602         __feraiseexcept_renamed.
77603
77604 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
77605
77606         [BZ #13538]
77607         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
77608         EPOLLET with unsigned values.
77609         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
77610         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
77611
77612         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
77613         to large cancellation.
77614         * math/s_cacoshf.c: Likewise.
77615         * math/s_cacoshl.c: Likewise.
77616
77617 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
77618
77619         [BZ #13305]
77620         [BZ #12786]
77621         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
77622         * math/s_cacoshf.c: Likewise.
77623         * math/s_cacoshl.c: Likewise.
77624
77625 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
77626
77627         [BZ #13439]
77628         * iconv/gconv.h: Define __GCONV_SWAP.
77629         * iconvdata/unicode.c: The swap bit must be stored in __flags.
77630         * iconvdata/utf-16.c: Likewise.
77631         * iconvdata/utf-32.c: Likewise.
77632
77633 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
77634
77635         [BZ #13524]
77636         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
77637         numerator after shifting it by one limb.
77638
77639 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
77640
77641         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
77642         under [__USE_EXTERN_INLINES].
77643
77644 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
77645
77646         [BZ #13446]
77647         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
77648
77649 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77650
77651         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
77652         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
77653         optimized code.
77654         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
77655         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
77656         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
77657         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
77658         for strncasecmp/strncasecmp_l compilation.
77659         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
77660         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
77661
77662 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
77663
77664         [BZ #13484]
77665         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
77666         of __asm__.
77667
77668 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
77669
77670         [BZ #13506]
77671         * time/tzfile.c (__tzfile_read): Check values from file header.
77672
77673 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
77674
77675         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
77676         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
77677         * powerpc/powerpc32/dl-start.S: Likewise.
77678         * powerpc/powerpc32/elf/start.S: Likewise.
77679         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
77680         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
77681         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
77682         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
77683         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
77684         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
77685         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
77686         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
77687         * powerpc/powerpc32/fpu/s_round.S: Likewise.
77688         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
77689         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
77690         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
77691         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
77692         * powerpc/powerpc32/memset.S: Likewise.
77693         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
77694         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
77695         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
77696         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
77697         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
77698         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
77699         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
77700         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
77701         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
77702         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
77703         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
77704         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
77705         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
77706
77707 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77708
77709         * math/libm-test.inc: Added more nearbyint tests.
77710         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
77711         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
77712         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
77713         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
77714
77715 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
77716
77717         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
77718         FD_CLOEXEC.
77719
77720 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77721
77722         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
77723         Add wcscpy-ssse3 wcscpy-c.
77724         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
77725         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
77726         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
77727         * sysdeps/x86_64/wcschr.S: New file.
77728         * sysdeps/x86_64/wcsrchr.S: New file.
77729         * string/test-strcmp.c: Remove checking of wcscmp function for
77730         wrong alignments.
77731         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
77732         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
77733         wcsrchr-sse2 wcsrchr-c.
77734         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
77735         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
77736         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
77737         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
77738         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
77739         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
77740         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
77741         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
77742         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
77743         * wcsmbc/wcschr.c (WCSCHR): New macro.
77744
77745 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77746
77747         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
77748         * wcsmbs/test-wcsrchr.c: New file.
77749         * string/test-strrchr.c: Add wcsrchr support.
77750         (WIDE): New macro.
77751         * wcsmbs/test-wcscpy.c: New file.
77752         * string/test-strcpy.c: Add wcscpy support.
77753         (WIDE): New macro.
77754
77755 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
77756
77757         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
77758         the inner loop.
77759
77760 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
77761
77762         [BZ #13472]
77763         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
77764
77765 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
77766
77767         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
77768         Minor optimizations.
77769
77770         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
77771         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
77772         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
77773
77774 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
77775
77776         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
77777         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
77778         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
77779         for gcc to avoid warnings.
77780         * inet/Makefile (tests): Add tst-checks.
77781         * inet/tst-checks.c: New file.
77782
77783         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
77784         warning.
77785
77786         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
77787         __wmemcmp_sse2.
77788
77789         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
77790         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
77791
77792         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
77793
77794 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
77795
77796         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
77797         problem.
77798
77799         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
77800
77801 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
77802
77803         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
77804         conditional on GCC version.
77805         (__arch_compare_and_exchange_val_8_acq)
77806         (__arch_compare_and_exchange_val_16_acq)
77807         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
77808         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
77809         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
77810
77811 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
77812
77813         * sysdeps/sh/backtrace.c: New file.
77814
77815 2011-12-02  Andreas Schwab  <schwab@redhat.com>
77816
77817         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
77818         parenthesis.
77819
77820 2011-12-01  Andreas Schwab  <schwab@redhat.com>
77821
77822         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
77823         falling back to utime.
77824
77825 2011-11-30  Andreas Schwab  <schwab@redhat.com>
77826
77827         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
77828         expectations for float.
77829
77830 2011-11-29  Andreas Schwab  <schwab@redhat.com>
77831
77832         * locale/weight.h (findidx): Add parameter len.
77833         * locale/weightwc.h (findidx): Likewise.
77834         * posix/fnmatch_loop.c (FCT): Adjust caller.
77835         * posix/regcomp.c (build_equiv_class): Likewise.
77836         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
77837         * posix/regexec.c (check_node_accept_bytes): Likewise.
77838         * string/strcoll_l.c (STRCOLL): Likewise.
77839         * string/strxfrm_l.c (STRXFRM): Likewise.
77840
77841 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
77842
77843         * Makefile.in: Remove CVSOPT handling.
77844         * configure.in: Remove use of AC_REVISION.
77845         * iconvdata/Makefile (distribute): No need to filter out CVS.
77846         * scripts/list-sources.sh: Remove CVS, subversion and monotone
77847         handling.
77848
77849 2011-11-16  Andreas Schwab  <schwab@redhat.com>
77850
77851         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
77852         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
77853         [USE_AS_STRNCASECMP_L]: Likewise.
77854         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
77855         NO_TLS_DIRECT_SEG_REFS.
77856         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
77857         Fix argument offsets for non-PIC.
77858         [USE_AS_STRNCASECMP_L]: Likewise.
77859         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
77860         NO_TLS_DIRECT_SEG_REFS.
77861
77862 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77863
77864         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
77865         O_CLOEXEC.
77866         * locale/loadlocale.c (_nl_load_locale): Likewise.
77867
77868 2011-11-15  Andreas Schwab  <schwab@redhat.com>
77869
77870         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
77871         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
77872         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
77873         (SYSCALL_GETTIME): Set errno on error.
77874
77875         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
77876         count references to noai6ai_cached.
77877
77878 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77879
77880         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
77881
77882         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
77883         FD_CLOEXEC for /proc/self/maps.
77884
77885         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
77886         FD_CLOEXEC for /proc/meminfo.
77887
77888         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
77889         gai.conf.
77890
77891         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
77892         FD_CLOEXEC for given file.
77893
77894         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
77895
77896         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
77897         FD_CLOEXEC for /etc/hosts.
77898         (_gethtent): Likewise.
77899
77900         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
77901
77902         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
77903         cancellation and set FD_CLOEXEC for /etc/netgroup.
77904
77905         * nss/nss_files/files-key.c (search): Don't allow cancellation when
77906         reading /etc/publickey.
77907
77908         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
77909         allow cancellation when reading /etc/group.
77910
77911         * nss/nss_files/files-alias.c (internal_setent): Don't allow
77912         cancellation.
77913         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
77914
77915         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
77916         when using data file.
77917
77918         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
77919
77920         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
77921         (write_nis_obj): Use "c" and "e" in fopen.
77922
77923         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
77924
77925         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
77926
77927         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
77928
77929         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
77930
77931         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
77932         locale.alias.
77933
77934         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
77935
77936         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
77937
77938         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
77939
77940         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
77941         file parsing and set FD_CLOEXEC.
77942
77943 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77944
77945         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
77946
77947 2011-11-14  Andreas Schwab  <schwab@redhat.com>
77948
77949         * malloc/arena.c (arena_get2): Don't call reused_arena when
77950         _int_new_arena failed.
77951
77952 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77953
77954         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
77955         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
77956         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
77957         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
77958         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
77959         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
77960         to compile strcasecmp and strncasecmp.
77961         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
77962         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
77963
77964         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
77965
77966 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
77967
77968         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
77969         locale-defines.sym to gen-as-const-headers.
77970         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
77971         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
77972         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
77973         to compile strcasecmp and strncasecmp.
77974         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
77975         strcasecmp_l and strncasecmp_l.
77976         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
77977         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
77978         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
77979         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
77980         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
77981         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
77982         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
77983         * sysdeps/i386/i686/multiarch/strncase.S: New file.
77984         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
77985         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
77986         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
77987
77988 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
77989
77990         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
77991         result of SYSDEP_GETTIME_CPU to retval.
77992         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
77993         parameter list to macro.  Remove trailing semicolon.  Adjust users.
77994
77995         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
77996         variable.
77997
77998         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
77999         mantissa words.
78000         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
78001
78002         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
78003         from unused variable.
78004
78005         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
78006         DWARF definitions.
78007         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
78008         for assembling.
78009
78010         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
78011         over namespaces.
78012
78013         * sunrpc/rpc_prot.c (rejected): Fix case value.
78014
78015         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
78016         unsigned long long int to avoid warnings in shift.
78017
78018         * posix/regex_internal.c (re_string_reconstruct): Actually use result
78019         of use of trans.
78020         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
78021         variable tmp.
78022
78023         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
78024         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
78025         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
78026
78027         * nis/nis_table.c (nis_list): Use variable of correct type for
78028         result of __follow_path call.
78029
78030 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78031
78032         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
78033         of math functions ceil, trunc, floor, round, and sqrt, when
78034         avaliable on the platform.
78035         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
78036         name clash.
78037         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
78038         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
78039         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
78040
78041 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
78042
78043         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
78044         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
78045
78046 2011-11-11  Roland McGrath  <roland@hack.frob.com>
78047
78048         * include/unistd.h: Fix __readlink return type.
78049         Reported by Chris Metcalf <cmetcalf@tilera.com>.
78050
78051 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
78052
78053         * stdlib/ucontext.h: Undo last change for makecontext.
78054
78055 2011-11-11  Andreas Schwab  <schwab@redhat.com>
78056
78057         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
78058
78059         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
78060         * setjmp/setjmp.h: Mark functions as non-leaf.
78061         * setjmp/bits/setjmp2.h: Likewise.
78062         * stdlib/ucontext.h: Likewise.
78063
78064 2011-11-10  Andreas Schwab  <schwab@redhat.com>
78065
78066         * malloc/arena.c (_int_new_arena): Don't increment narenas.
78067         (reused_arena): Don't check arena limit.
78068         (arena_get2): Atomically check arena limit.
78069
78070 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
78071
78072         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
78073         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
78074
78075         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
78076         instructions.
78077
78078 2011-11-07  Andreas Schwab  <schwab@redhat.com>
78079
78080         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
78081         handler when locking.
78082
78083         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
78084         Fix size of allocated buffer.
78085
78086 2011-11-04  Andreas Schwab  <schwab@redhat.com>
78087
78088         [BZ #10103]
78089         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
78090         declarations for long double functions.
78091         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
78092
78093         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
78094
78095 2011-11-03  Andreas Schwab  <schwab@redhat.com>
78096
78097         * nscd/nscd.c (main): Don't start AVC thread until credentials are
78098         installed.
78099
78100         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
78101         is disabled.
78102
78103 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
78104
78105         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
78106
78107 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
78108
78109         * include/alloca.h (stackinfo_alloca_round): Define.
78110         (extend_alloca): Use it.
78111         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
78112         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
78113         here.
78114
78115         * scripts/check-local-headers.sh: Ignore libaudit.h.
78116
78117         * nscd/Makefile (extra-objs): Make recursively expanded.
78118
78119 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
78120
78121         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
78122         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
78123
78124         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
78125         * posix/tst-rfc3484-2.c: Likewise.
78126         * posix/tst-rfc3484-3.c: Likewise.
78127
78128         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
78129         process_vm_writev.
78130         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
78131         process_vm_writev.
78132         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
78133         process_vm_writev from libc using GLIBC_2.15 version.
78134
78135         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
78136
78137 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
78138
78139         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
78140         stack usage.
78141
78142 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
78143
78144         [BZ #13367]
78145         * nss/getent.c (initgroups_keys): Show error message in case no group
78146         names are given.
78147
78148         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
78149         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
78150         __bump_nl_timestamp.
78151         * nscd/connections (nscd_init): When host database is served open
78152         netlink socket and request notification about configuration changes.
78153         (main_loop_poll): Track netlink file descriptor and bump timestamp
78154         in case data becomes available.
78155         (main_loop_epoll): Likewise.
78156         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
78157         (database_pers_head): Add extra_data fileds.
78158         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
78159         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
78160         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
78161         Adjust caller.
78162         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
78163         in6ai data, call __free_in6ai.
78164         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
78165         Add -DHAVE_NETLINK.
78166         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
78167         interface information.  Reuse previous data if netlink timestamp
78168         is not changed.
78169         (__bump_nl_timestamp): New function.
78170         (__free_in6ai): New function.
78171
78172 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
78173
78174         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
78175         close_not_cancel_no_status here.
78176         (__check_pf): Reorganize code a bit to not call close twice if OOM.
78177
78178 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
78179
78180         [BZ #13276]
78181         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
78182         return value.
78183
78184         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
78185         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
78186         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
78187
78188 2011-07-03  Andreas Jaeger  <aj@suse.de>
78189
78190         [BZ #10709]
78191         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
78192         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
78193         * math/libm-test.inc (sin_test): Add test case.
78194
78195 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
78196
78197         [BZ #13337]
78198         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
78199         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
78200
78201         * elf/chroot_canon.c (chroot_canon): Cleanups.
78202
78203         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
78204
78205         [BZ #13335]
78206         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
78207         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
78208
78209         * string/test-strchr.c: Make usable for strchrnul testing.
78210         * string/test-strchrnul.c: New file.
78211         * string/Makefile (strop-tests): Add strchrnul.
78212
78213         * po/it.po: Update from translation team.
78214         * po/es.po: Likewise.
78215
78216 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
78217
78218         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
78219         the three constants needed as parameters.  Drop the others.
78220         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
78221         __m128i_strloadu_tolower.
78222         Create and initialize variable zero and use it in all the places
78223         where _mm_setzero_si128 was used.
78224
78225         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
78226         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
78227         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
78228         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
78229         anymore.
78230         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
78231         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
78232         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
78233         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
78234         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
78235         __mpranred, __mptan.
78236         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
78237         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
78238         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
78239         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
78240         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
78241         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
78242         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
78243         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
78244         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
78245
78246 2011-10-28  Andreas Schwab  <schwab@redhat.com>
78247
78248         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
78249         redefine if SHARED.
78250         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
78251
78252         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
78253         wide char related routines to wcsmbs subdir.
78254
78255 2011-10-27  Andreas Schwab  <schwab@redhat.com>
78256
78257         [BZ #13344]
78258         * misc/sys/cdefs.h (__THROWNL): Define.
78259         * posix/unistd.h: Use __THREADNL instead of __THREAD
78260         for memory synchronization functions.
78261
78262 2011-10-26  Roland McGrath  <roland@hack.frob.com>
78263
78264         [BZ #13349]
78265         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
78266         doesn't exist.
78267         * manual/stdio.texi (Obstack Streams): Node removed.
78268
78269 2011-10-26  Andreas Schwab  <schwab@redhat.com>
78270
78271         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
78272         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
78273         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
78274
78275         * math/math_private.h (math_force_eval): Allow non-addressable
78276         arguments.
78277         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
78278
78279 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
78280
78281         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
78282         file is not needed.
78283
78284         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
78285         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
78286         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
78287         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
78288         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
78289         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
78290         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
78291         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
78292         Add AVX variants.
78293         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
78294         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
78295         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
78296         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
78297         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
78298         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
78299         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
78300         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
78301         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
78302         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
78303         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
78304         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
78305         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
78306         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
78307         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
78308         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
78309         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
78310         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
78311         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
78312
78313         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
78314         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
78315
78316         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
78317         place.  Use VEX encoding when compiling for AVX.
78318
78319 2011-10-25  Andreas Schwab  <schwab@redhat.com>
78320
78321         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
78322         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
78323
78324         * string/test-strchr.c (do_test): Don't generate NUL bytes.
78325
78326 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
78327
78328         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
78329         useless if() expression.
78330         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
78331         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
78332         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
78333         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
78334         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
78335         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
78336         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
78337         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
78338         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
78339         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
78340         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
78341         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
78342         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
78343         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
78344         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
78345         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
78346         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
78347         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
78348         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
78349
78350         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
78351
78352 2011-10-25  Andreas Schwab  <schwab@redhat.com>
78353
78354         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
78355         condition.
78356         * elf/dl-fini.c (_dl_sort_fini): Likewise.
78357
78358 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
78359
78360         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
78361         .text section.  Avoid duplicate constants.
78362         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
78363         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
78364         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
78365         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78366         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
78367         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78368         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78369         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78370         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
78371         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
78372         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
78373         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
78374         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
78375         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
78376         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
78377         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
78378         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
78379         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
78380         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
78381         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
78382         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
78383         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
78384         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
78385         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
78386         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
78387         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
78388         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
78389         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
78390         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
78391         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
78392         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
78393         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
78394         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
78395         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
78396         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
78397         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
78398         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
78399         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
78400         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
78401         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
78402         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
78403         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
78404         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
78405         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
78406         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
78407
78408 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
78409
78410         * sysdeps/x86_64/dla.h: Move to ...
78411         * sysdeps/x86_64/fpu/dla.h: ...here.
78412         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
78413         situations.  Use __builtin_fma only for gcc 4.6 and up.
78414
78415         * config.make.in: Add have-mfma4 entry.
78416         * configure.in: Substitute libc_cv_cc_fma4.
78417         * math/Makefile (dbl-only-routines): Add sincostab.
78418         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
78419         Use __sincostab not sincos.
78420         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
78421         name is a macro.
78422         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
78423         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78424         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78425         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
78426         using __copysign.
78427         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
78428         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
78429         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
78430         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
78431         and __inv.
78432         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
78433         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
78434         __copysign.
78435         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
78436         define aliases when function name is a macro.
78437         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
78438         sysdeps/ieee754/dbl-64/sincos.tbl.
78439         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
78440         fma4-enabled routines.
78441         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
78442         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
78443         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
78444         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
78445         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
78446         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
78447         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
78448         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
78449         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
78450         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
78451         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
78452         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
78453         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
78454         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
78455         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
78456         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
78457         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
78458         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
78459         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
78460         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
78461         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
78462         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
78463         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
78464         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
78465         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
78466         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
78467         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
78468         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
78469         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
78470         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
78471
78472         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
78473         rename.
78474         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
78475         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
78476         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78477         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78478         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78479         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78480         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
78481         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
78482
78483 2011-10-24  Andreas Schwab  <schwab@redhat.com>
78484
78485         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
78486
78487 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
78488
78489         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
78490
78491         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
78492         prediction.
78493         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
78494
78495         * string/strnlen.c: Don't define STRNLEN, reverse logic.
78496         Remove unused variable magic_bits.
78497         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
78498
78499         * string/strnlen.c: Define and use STRNLEN macro.
78500         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
78501         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
78502         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
78503         * wcsmbs/wcslen.c: Define and use WCSLEN.
78504         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
78505         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
78506         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
78507         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
78508         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
78509         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
78510         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
78511
78512 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78513
78514         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
78515         strnlen-sse2-no-bsf.
78516         Rename strlen-no-bsf to strlen-sse2-no-bsf.
78517         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
78518         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
78519         Add strnlen support.
78520         (USE_AS_STRNLEN): New macro.
78521         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
78522         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
78523         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
78524         * sysdeps/x86_64/wcslen.S: New file.
78525
78526 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
78527
78528         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
78529         XMM-moves are used for copying on small sizes.
78530
78531 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78532
78533         * wcsmbs/Makefile (strop-tests): Add wcschr.
78534         * wcsmbs/test-wcschr.c: New file.
78535         * string/test-strchr.c: Update.
78536         Add wcschr support.
78537         (WIDE): New macro.
78538
78539 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78540
78541         * wcsmbs/Makefile (strop-tests): Add wcslen.
78542         * wcsmbs/test-wcslen.c: New file.
78543         * string/test-strlen.c: Update.
78544         Add wcslen support.
78545         (WIDE): New macro.
78546
78547 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
78548
78549         * po/it.po: Update from translation team.
78550
78551 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78552
78553         * sysdeps/x86_64/wcscmp.S: Update.
78554         Fix wrong comparison semantics.
78555         wcscmp shall use signed comparison not unsigned.
78556         Don't use substraction to avoid overflow bug.
78557         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
78558         * wcsmbc/wcscmp.c: Likewise.
78559         * string/test-strcmp.c: Likewise.
78560         Add new tests to check cases with negative values.
78561
78562 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
78563
78564         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
78565         * sysdeps/x86_64/dla.h: ...here.  New file.
78566         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
78567         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
78568         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78569         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78570         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78571         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
78572         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78573         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
78574         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
78575
78576 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
78577
78578         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
78579         __ynl_finite aliases.
78580
78581 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
78582
78583         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78584
78585         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
78586         define DLA_FMA.
78587         [DLA_FMA] (EMULV): Use DLA_FMA.
78588         [DLA_FMA] (MUL12): Use EMULV.
78589         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
78590         that are not needed.
78591         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
78592         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78593         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78594         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78595         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78596         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
78597         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
78598
78599 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
78600
78601         * math/s_nan.c: Undef __nan.
78602         * math/s_nanf.c: Undef __nanf.
78603         * math/s_nanl.c: Undef __nanl.
78604         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
78605         "math_private.h".
78606
78607 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
78608
78609         * math/s_catan.c: Add branch predictions.
78610         * math/s_catanf.c: Likewise.
78611         * math/s_catanh.c: Likewise.
78612         * math/s_catanhf.c: Likewise.
78613         * math/s_catanhl.c: Likewise.
78614         * math/s_catanl.c: Likewise.
78615         * math/s_cexp.c: Likewise.
78616         * math/s_cexpf.c: Likewise.
78617         * math/s_cexpl.c: Likewise.
78618         * math/s_clog.c: Likewise.
78619         * math/s_clog10.c: Likewise.
78620         * math/s_clog10f.c: Likewise.
78621         * math/s_clog10l.c: Likewise.
78622         * math/s_clogf.c: Likewise.
78623         * math/s_clogl.c: Likewise.
78624         * math/s_csqrt.c: Likewise.
78625         * math/s_csqrtf.c: Likewise.
78626         * math/s_csqrtl.c: Likewise.
78627         * math/s_ctanf.c: Likewise.
78628         * math/s_ctanh.c: Likewise.
78629         * math/s_ctanhf.c: Likewise.
78630         * math/s_ctanhl.c: Likewise.
78631         * math/s_ctanl.c: Likewise.
78632
78633         * math/math_private.h: Define __nan, __nanf, __nanl.
78634         * math/s_cacosh.c: Include <math_private.h>.
78635         * math/s_cacoshl.c: Likewise.
78636         * math/s_casinh.c: Likewise.
78637         * math/s_casinhf.c: Likewise.
78638         * math/s_casinhl.c: Likewise.
78639         * math/s_ccos.c: Rely entire on ccosh.
78640         * math/s_ccosf.c: Rely entire on ccoshf.
78641         * math/s_ccosl.c: Rely entirely on ccoshl.
78642         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
78643         Remove tests for FE_INVALID.
78644         * math/s_ccoshf.c: Likewise.
78645         * math/s_ccoshl.c: Likewise.
78646         * math/s_csin.c: Likewise.
78647         * math/s_csinf.c: Likewise.
78648         * math/s_csinh.c Likewise.
78649         * math/s_csinhf.c: Likewise.
78650         * math/s_csinhl.c: Likewise.
78651         * math/s_csinl.c: Likewise.
78652         * math/s_ctan.c: Likewise.
78653         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
78654         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
78655         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
78656
78657 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
78658
78659         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
78660         compilation problems.
78661
78662         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
78663         __builtin_expect.
78664
78665 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
78666
78667         * sysdeps/i386/configure.in: Test for -mfma4 option.
78668         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
78669         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
78670         COMMON_CPUID_INDEX_80000001.
78671         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
78672         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
78673         use it if FMA3 is not supported.
78674         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
78675
78676         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
78677         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
78678
78679 2011-10-20  Andreas Schwab  <schwab@redhat.com>
78680
78681         [BZ #12892]
78682         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
78683         it would create a cycle with a link time dependency.
78684
78685 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
78686
78687         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
78688         instruction.
78689         * string/Makefile (strop-tests): Add rawmemchr.
78690         * string/test-rawmemchr.c: New file.
78691
78692         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
78693         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
78694         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
78695         when compiling str{,n}casecmp and when AVX is available.  Hook up
78696         new optimized code in initializers.
78697
78698 2011-10-19  Andreas Schwab  <schwab@redhat.com>
78699
78700         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
78701         __feraiseexcept instead of feraiseexcept.
78702
78703 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
78704
78705         * math/math_private.h: Define defaults for libc_fetestexcept and
78706         libc_feupdateenv.
78707         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
78708         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
78709         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
78710         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
78711         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
78712         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
78713         libc_fetestexcept and libc_feupdateenv.
78714
78715         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
78716         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
78717         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
78718         * sysdeps/x86_64/fpu/math_private.h: Define special version of
78719         libc_feholdexcept_setround.
78720
78721         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
78722         Add s_nearbyint-c and s_nearbyintf-c.
78723         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
78724         nearbyintf inlines.
78725         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
78726         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
78727         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
78728         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
78729
78730         * math/math_private.h: Define defaults for libc_fegetround,
78731         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
78732         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
78733         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
78734         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
78735         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
78736         standard functions.
78737         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
78738         Remove comments and hacks for old compiler versions.
78739         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
78740         libc_fegetround, libc_fesetround, libc_feholdexcept, and
78741         libc_feholdexceptl.
78742
78743 2011-10-18  Andreas Schwab  <schwab@redhat.com>
78744
78745         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
78746         (__feraiseexcept_renamed): Add __NTH.
78747         (feraiseexcept): Add __NTH.  Rename local variables to fix
78748         namespace violations.
78749
78750 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
78751
78752         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
78753
78754         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
78755
78756         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
78757         recently added interfaces.
78758         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
78759
78760         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
78761         about macro parameter expansion.
78762
78763         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
78764         __NO_MATH_INLINES is defined.  Cleanups.
78765
78766         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
78767         and __floorf is target has SSE4.1.
78768         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
78769         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
78770         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
78771         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
78772
78773         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
78774         name.
78775         (floorf): Likewise.
78776
78777         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
78778
78779 2011-10-17  Andreas Schwab  <schwab@redhat.com>
78780
78781         * misc/sys/cdefs.h: Fix last change.
78782
78783         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
78784         database lookup.
78785
78786 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
78787
78788         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
78789
78790         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
78791         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
78792         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
78793         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
78794         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
78795         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
78796         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
78797         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
78798         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
78799         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
78800         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
78801         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
78802         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
78803         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
78804         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
78805         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
78806         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
78807         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
78808         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
78809         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
78810         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
78811         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
78812
78813         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
78814         ceil, ceilf, floor, floorf.
78815
78816         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
78817         Perform IRELATIVE relocations last.
78818
78819         * elf/do-rel.h: Add another parameter nrelative, replacing the
78820         local variable with the same name.  Change name of the function
78821         to end in Rel or Rela (uppercase).
78822         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
78823         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
78824         elf_dynamic_do_##reloc function.
78825
78826 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
78827
78828         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
78829         is sufficient, at least on modern CPUs.
78830
78831         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
78832
78833         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
78834         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
78835
78836         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
78837         __expl_finite.
78838         * math/bits/math-finite.h: Add entries for exp.
78839         * math/e_expl.c: Add __*_finite alias.
78840         * sysdeps/i386/fpu/e_exp.S: Likewise.
78841         * sysdeps/i386/fpu/e_expf.S: Likewise.
78842         * sysdeps/i386/fpu/e_expl.c: Likewise.
78843         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
78844         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
78845         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
78846         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
78847         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
78848         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
78849         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
78850
78851         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
78852         is sufficient, at least on modern CPUs.
78853
78854         * ctype/ctype-info.c (__ctype_init): Define.
78855         * include/ctype.h (__ctype_init): Declare.
78856         (__ctype_b_loc): The variable is always initialized.
78857         (__ctype_toupper_loc): Likewise.
78858         (__ctype_tolower_loc): Likewise.
78859         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
78860         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
78861
78862 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
78863
78864         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
78865
78866         * configure.in: Also look in $cxxmachine/include for C++ system
78867         headers.
78868
78869 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78870
78871         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
78872         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
78873         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
78874         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
78875         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
78876         (USE_AS_WMEMCMP): New macro.
78877         Fixing indents.
78878         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
78879         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
78880         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
78881         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
78882         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78883         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
78884         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
78885         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
78886         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
78887         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
78888         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
78889         (USE_AS_WMEMCMP): New macro.
78890         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
78891         * sysdeps/string/test-memcmp.c: Update.
78892         Fix simple_wmemcmp.
78893         Add new tests.
78894         * wcsmbs/wmemcmp.c: Update.
78895         (WMEMCMP): New macro.
78896         Fix overflow bug.
78897
78898 2011-10-12  Andreas Jaeger  <aj@suse.de>
78899
78900         [BZ #13268]
78901         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
78902
78903 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
78904
78905         * libio/iofwide.c (do_length): Avoid warning.
78906
78907         * ctype/ctype.h (__isctype_f): Add missing __THROW.
78908
78909 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
78910
78911         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
78912
78913         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
78914         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
78915         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
78916         * sysdeps/i386/i686/fpu/e_log.S: New file.
78917         * sysdeps/i386/i686/fpu/e_logf.S: New file.
78918         * sysdeps/i386/i686/fpu/e_logl.S: New file.
78919
78920         * ctype/ctype.h: Add support for inlined isXXX functions when
78921         compiling C++ code.
78922
78923 2011-10-14  Andreas Schwab  <schwab@redhat.com>
78924
78925         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78926
78927         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
78928
78929 2011-10-13  Roland McGrath  <roland@hack.frob.com>
78930
78931         [BZ #13291]
78932         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
78933
78934 2011-10-13  Andreas Schwab  <schwab@redhat.com>
78935
78936         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
78937         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
78938         feraiseexcept.
78939
78940         * sysdeps/x86_64/memrchr.S: Check for zero size.
78941
78942         * string/stratcliff.c: Add memrchr tests.
78943
78944 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78945
78946         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78947         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
78948         rawmemchr-sse2 rawmemchr-sse2-bsf.
78949         * sysdeps/i386/i686/multiarch/memchr.S: New file.
78950         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
78951         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
78952         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
78953         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
78954         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
78955         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
78956         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
78957         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
78958         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
78959         * string/memrchr.c (MEMRCHR): New macro.
78960
78961 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
78962
78963         Add integration with gcc's -ffinite-math-only and optimize wrapper
78964         functions in libm.
78965         * Versions.def: Define GLIBC_2.15 version for libm.
78966         * math/Makefile (headers): Add bits/math-finite.h.
78967         * math/bits/math-finite.h: New file.
78968         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
78969         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
78970         * math/e_acoshl.c: Add __*_finite alias.
78971         * math/e_acosl.c: Likewise.
78972         * math/e_asinl.c: Likewise.
78973         * math/e_atan2l.c: Likewise.
78974         * math/e_atanhl.c: Likewise.
78975         * math/e_coshl.c: Likewise.
78976         * math/e_exp10.c: Likewise.
78977         * math/e_exp10f.c: Likewise.
78978         * math/e_exp10l.c: Likewise.
78979         * math/e_exp2l.c: Likewise.
78980         * math/e_fmodl.c: Likewise.
78981         * math/e_gammal_r.c: Likewise.
78982         * math/e_hypotl.c: Likewise.
78983         * math/e_j0l.c: Likewise.
78984         * math/e_j1l.c: Likewise.
78985         * math/e_jnl.c: Likewise.
78986         * math/e_lgammal_r.c: Likewise.
78987         * math/e_log10l.c: Likewise.
78988         * math/e_log2l.c: Likewise.
78989         * math/e_logl.c: Likewise.
78990         * math/e_powl.c: Likewise.
78991         * math/e_sinhl.c: Likewise.
78992         * math/e_sqrtl.c: Likewise.
78993         * math/e_scalb.c: Completely rewritten and optimized.
78994         * math/e_scalbf.c: Likewise.
78995         * math/e_scalbl.c: Likewise.
78996         * math/w_acos.c: Likewise.
78997         * math/w_acosf.c: Likewise.
78998         * math/w_acosl.c: Likewise.
78999         * math/w_acosh.c: Likewise.
79000         * math/w_acoshf.c: Likewise.
79001         * math/w_acoshl.c: Likewise.
79002         * math/w_asin.c: Likewise.
79003         * math/w_asinf.c: Likewise.
79004         * math/w_asinl.c: Likewise.
79005         * math/w_atan2.c: Likewise.
79006         * math/w_atan2f.c: Likewise.
79007         * math/w_atan2l.c: Likewise.
79008         * math/w_atanh.c: Likewise.
79009         * math/w_atanhf.c: Likewise.
79010         * math/w_atanhl.c: Likewise.
79011         * math/w_exp10.c: Likewise.
79012         * math/w_exp10f.c: Likewise.
79013         * math/w_exp10l.c: Likewise.
79014         * math/w_fmod.c: Likewise.
79015         * math/w_fmodf.c: Likewise.
79016         * math/w_fmodl.c: Likewise.
79017         * math/w_j0.c: Likewise.
79018         * math/w_j0f.c: Likewise.
79019         * math/w_j0l.c: Likewise.
79020         * math/w_j1.c: Likewise.
79021         * math/w_j1f.c: Likewise.
79022         * math/w_j1l.c: Likewise.
79023         * math/w_jn.c: Likewise.
79024         * math/w_jnf.c: Likewise.
79025         * math/w_log.c: Likewise.
79026         * math/w_logf.c: Likewise.
79027         * math/w_logl.c: Likewise.
79028         * math/w_log10.c: Likewise.
79029         * math/w_log10f.c: Likewise.
79030         * math/w_log10l.c: Likewise.
79031         * math/w_log2.c: Likewise.
79032         * math/w_log2f.c: Likewise.
79033         * math/w_log2l.c: Likewise.
79034         * math/w_pow.c: Likewise.
79035         * math/w_powf.c: Likewise.
79036         * math/w_powl.c: Likewise.
79037         * math/w_remainder.c: Likewise.
79038         * math/w_remainderf.c: Likewise.
79039         * math/w_remainderl.c: Likewise.
79040         * math/w_scalb.c: Likewise.
79041         * math/w_scalbf.c: Likewise.
79042         * math/w_scalbl.c: Likewise.
79043         * math/w_sqrt.c: Likewise.
79044         * math/w_sqrtf.c: Likewise.
79045         * math/w_sqrtl.c: Likewise.
79046         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
79047         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
79048         used.
79049         * math/math_private.h: Declare __kernel_standard_f.
79050         * math/w_cosh.c: Remove cruft and optimize a bit.
79051         * math/w_coshf.c: Likewise.
79052         * math/w_coshl.c: Likewise.
79053         * math/w_exp2.c: Likewise.
79054         * math/w_exp2f.c: Likewise.
79055         * math/w_exp2l.c: Likewise.
79056         * math/w_hypot.c: Likewise.
79057         * math/w_hypotf.c: Likewise.
79058         * math/w_hypotl.c: Likewise.
79059         * math/w_lgamma.c: Likewise.
79060         * math/w_lgamma_r.c: Likewise.
79061         * math/w_lgammaf.c: Likewise.
79062         * math/w_lgammaf_r.c: Likewise.
79063         * math/w_lgammal.c: Likewise.
79064         * math/w_lgammal_r.c: Likewise.
79065         * math/w_sinh.c: Likewise.
79066         * math/w_sinhf.c: Likewise.
79067         * math/w_sinhl.c: Likewise.
79068         * math/w_tgamma.c: Likewise.
79069         * math/w_tgammaf.c: Likewise.
79070         * math/w_tgammal.c: Likewise.
79071         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
79072         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
79073         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
79074         Minor optimizations.  Pretty printing.  Remove cruft.
79075         * sysdeps/i386/fpu/e_acosf.S: Likewise.
79076         * sysdeps/i386/fpu/e_acosh.S: Likewise.
79077         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
79078         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
79079         * sysdeps/i386/fpu/e_acosl.c: Likewise.
79080         * sysdeps/i386/fpu/e_asin.S: Likewise.
79081         * sysdeps/i386/fpu/e_asinf.S: Likewise.
79082         * sysdeps/i386/fpu/e_atan2.S: Likewise.
79083         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
79084         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
79085         * sysdeps/i386/fpu/e_atanh.S: Likewise.
79086         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
79087         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
79088         * sysdeps/i386/fpu/e_exp10.S: Likewise.
79089         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
79090         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
79091         * sysdeps/i386/fpu/e_exp2.S: Likewise.
79092         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
79093         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
79094         * sysdeps/i386/fpu/e_fmod.S: Likewise.
79095         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
79096         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
79097         * sysdeps/i386/fpu/e_hypot.S: Likewise.
79098         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
79099         * sysdeps/i386/fpu/e_log.S: Likewise.
79100         * sysdeps/i386/fpu/e_log10.S: Likewise.
79101         * sysdeps/i386/fpu/e_log10f.S: Likewise.
79102         * sysdeps/i386/fpu/e_log10l.S: Likewise.
79103         * sysdeps/i386/fpu/e_log2.S: Likewise.
79104         * sysdeps/i386/fpu/e_log2f.S: Likewise.
79105         * sysdeps/i386/fpu/e_log2l.S: Likewise.
79106         * sysdeps/i386/fpu/e_logf.S: Likewise.
79107         * sysdeps/i386/fpu/e_logl.S: Likewise.
79108         * sysdeps/i386/fpu/e_pow.S: Likewise.
79109         * sysdeps/i386/fpu/e_powf.S: Likewise.
79110         * sysdeps/i386/fpu/e_powl.S: Likewise.
79111         * sysdeps/i386/fpu/e_remainder.S: Likewise.
79112         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
79113         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
79114         * sysdeps/i386/fpu/e_scalb.S: Likewise.
79115         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
79116         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
79117         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
79118         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
79119         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
79120         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
79121         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
79122         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
79123         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
79124         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
79125         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
79126         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
79127         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
79128         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
79129         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
79130         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
79131         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
79132         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
79133         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
79134         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
79135         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
79136         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
79137         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
79138         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
79139         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
79140         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
79141         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
79142         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
79143         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
79144         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
79145         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
79146         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
79147         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
79148         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
79149         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
79150         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
79151         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
79152         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
79153         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
79154         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
79155         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
79156         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
79157         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
79158         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
79159         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
79160         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
79161         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
79162         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
79163         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
79164         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
79165         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
79166         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
79167         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
79168         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
79169         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
79170         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
79171         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
79172         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
79173         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
79174         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
79175         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
79176         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
79177         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
79178         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
79179         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
79180         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
79181         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
79182         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
79183         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
79184         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
79185         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
79186         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
79187         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
79188         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
79189         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
79190         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
79191         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
79192         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
79193         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
79194         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
79195         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
79196         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
79197         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
79198         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
79199         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
79200         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
79201         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
79202         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
79203         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
79204         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
79205         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
79206         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
79207         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
79208         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
79209         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
79210         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
79211         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
79212         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
79213         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
79214         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
79215         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
79216         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
79217         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
79218         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
79219         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
79220         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
79221         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
79222         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
79223         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
79224         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
79225         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
79226         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
79227         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
79228         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
79229         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
79230         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
79231         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
79232         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
79233         (__isnanf): Likewise.
79234         (__isinf_ns): Likewise.
79235         (__isinf_nsf): Likewise.
79236         (__finite): Likewise.
79237         (__finitef): Likewise.
79238         (__ieee754_sqrt): Define as macro.
79239         (__ieee754_sqrtf): Define as macro.
79240         (__ieee754_sqrtl): Define as macro.
79241         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
79242         inlined copy.
79243         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
79244         __FINITE_MATH_ONLY__ consistent.
79245         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
79246
79247 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
79248
79249         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
79250         of rawmemchr.
79251
79252         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
79253
79254 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
79255
79256         * po/ja.po: Update from translation team.
79257
79258 2011-10-08  Roland McGrath  <roland@hack.frob.com>
79259
79260         * locale/programs/locarchive.c (prepare_address_space): New function.
79261         (create_archive, enlarge_archive, open_archive): Use it.
79262
79263         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
79264         inside [SHARED], where it is used.
79265
79266         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
79267
79268         * nss/getent.c (netgroup_keys): Remove unused variable.
79269         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
79270
79271 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
79272
79273         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
79274         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
79275         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
79276         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
79277         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
79278         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
79279         * math/Makefile (libm-calls): Add s_isinf_ns.
79280         * math/divtc3.c: Use __isinf_nsl instead of isinf.
79281         * math/multc3.c: Likewise.
79282         * math/s_casin.c: Likewise.
79283         * math/s_casinf.c: Likewise.
79284         * math/s_casinl.c: Likewise.
79285         * math/s_ccos.c: Likewise.
79286         * math/s_ccosf.c: Likewise.
79287         * math/s_ccosl.c: Likewise.
79288         * math/s_ctan.c: Likewise.
79289         * math/s_ctanf.c: Likewise.
79290         * math/s_ctanh.c: Likewise.
79291         * math/s_ctanhf.c: Likewise.
79292         * math/s_ctanhl.c: Likewise.
79293         * math/s_ctanl.c: Likewise.
79294         * math/w_fmod.c: Likewise.
79295         * math/w_fmodf.c: Likewise.
79296         * math/w_fmodl.c: Likewise.
79297         * math/w_remainder.c: Likewise.
79298         * math/w_remainderf.c: Likewise.
79299         * math/w_remainderl.c: Likewise.
79300         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
79301         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
79302         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
79303         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
79304         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
79305         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
79306         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
79307         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
79308
79309         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
79310         of the number.
79311         * stdio-common/printf_fphex.c: Likewise.
79312         * stdio-common/printf_size.c: Likewise.
79313
79314         * math/e_exp10.c: Include math_private.h using <...> not "...".
79315         * math/e_exp10f.c: Likewise.
79316         * math/e_exp10l.c: Likewise.
79317         * math/e_exp2l.c: Likewise.
79318         * math/e_j0l.c: Likewise.
79319         * math/e_j1l.c: Likewise.
79320         * math/e_jnl.c: Likewise.
79321         * math/e_lgammal_r.c: Likewise.
79322         * math/e_rem_pio2l.c: Likewise.
79323         * math/e_scalb.c: Likewise.
79324         * math/e_scalbf.c: Likewise.
79325         * math/e_scalbl.c: Likewise.
79326         * math/k_cosl.c: Likewise.
79327         * math/k_sinl.c: Likewise.
79328         * math/k_tanl.c: Likewise.
79329         * math/s_cacoshf.c: Likewise.
79330         * math/s_catan.c: Likewise.
79331         * math/s_catanf.c: Likewise.
79332         * math/s_catanh.c: Likewise.
79333         * math/s_catanhf.c: Likewise.
79334         * math/s_catanhl.c: Likewise.
79335         * math/s_catanl.c: Likewise.
79336         * math/s_ccosh.c: Likewise.
79337         * math/s_ccoshf.c: Likewise.
79338         * math/s_ccoshl.c: Likewise.
79339         * math/s_cexp.c: Likewise.
79340         * math/s_cexpf.c: Likewise.
79341         * math/s_cexpl.c: Likewise.
79342         * math/s_clog.c: Likewise.
79343         * math/s_clog10.c: Likewise.
79344         * math/s_clog10f.c: Likewise.
79345         * math/s_clog10l.c: Likewise.
79346         * math/s_clogf.c: Likewise.
79347         * math/s_clogl.c: Likewise.
79348         * math/s_csin.c: Likewise.
79349         * math/s_csinf.c: Likewise.
79350         * math/s_csinh.c: Likewise.
79351         * math/s_csinhf.c: Likewise.
79352         * math/s_csinhl.c: Likewise.
79353         * math/s_csinl.c: Likewise.
79354         * math/s_csqrt.c: Likewise.
79355         * math/s_csqrtf.c: Likewise.
79356         * math/s_csqrtl.c: Likewise.
79357         * math/s_ctan.c: Likewise.
79358         * math/s_ctanf.c: Likewise.
79359         * math/s_ctanh.c: Likewise.
79360         * math/s_ctanhf.c: Likewise.
79361         * math/s_ctanhl.c: Likewise.
79362         * math/s_ctanl.c: Likewise.
79363         * math/s_ldexp.c: Likewise.
79364         * math/s_ldexpf.c: Likewise.
79365         * math/s_ldexpl.c: Likewise.
79366         * math/s_significand.c: Likewise.
79367         * math/s_significandf.c: Likewise.
79368         * math/s_significandl.c: Likewise.
79369         * math/w_acos.c: Likewise.
79370         * math/w_acosf.c: Likewise.
79371         * math/w_acosh.c: Likewise.
79372         * math/w_acoshf.c: Likewise.
79373         * math/w_acoshl.c: Likewise.
79374         * math/w_acosl.c: Likewise.
79375         * math/w_asin.c: Likewise.
79376         * math/w_asinf.c: Likewise.
79377         * math/w_asinl.c: Likewise.
79378         * math/w_atan2.c: Likewise.
79379         * math/w_atan2f.c: Likewise.
79380         * math/w_atan2l.c: Likewise.
79381         * math/w_atanh.c: Likewise.
79382         * math/w_atanhf.c: Likewise.
79383         * math/w_atanhl.c: Likewise.
79384         * math/w_cosh.c: Likewise.
79385         * math/w_coshf.c: Likewise.
79386         * math/w_coshl.c: Likewise.
79387         * math/w_dremf.c: Likewise.
79388         * math/w_exp10.c: Likewise.
79389         * math/w_exp10f.c: Likewise.
79390         * math/w_exp10l.c: Likewise.
79391         * math/w_exp2.c: Likewise.
79392         * math/w_exp2f.c: Likewise.
79393         * math/w_fmod.c: Likewise.
79394         * math/w_fmodf.c: Likewise.
79395         * math/w_fmodl.c: Likewise.
79396         * math/w_hypot.c: Likewise.
79397         * math/w_hypotf.c: Likewise.
79398         * math/w_hypotl.c: Likewise.
79399         * math/w_j0.c: Likewise.
79400         * math/w_j0f.c: Likewise.
79401         * math/w_j0l.c: Likewise.
79402         * math/w_j1.c: Likewise.
79403         * math/w_j1f.c: Likewise.
79404         * math/w_j1l.c: Likewise.
79405         * math/w_jn.c: Likewise.
79406         * math/w_jnf.c: Likewise.
79407         * math/w_jnl.c: Likewise.
79408         * math/w_lgamma.c: Likewise.
79409         * math/w_lgamma_r.c: Likewise.
79410         * math/w_lgammaf.c: Likewise.
79411         * math/w_lgammaf_r.c: Likewise.
79412         * math/w_lgammal.c: Likewise.
79413         * math/w_lgammal_r.c: Likewise.
79414         * math/w_log.c: Likewise.
79415         * math/w_log10.c: Likewise.
79416         * math/w_log10f.c: Likewise.
79417         * math/w_log10l.c: Likewise.
79418         * math/w_log2.c: Likewise.
79419         * math/w_log2f.c: Likewise.
79420         * math/w_log2l.c: Likewise.
79421         * math/w_logf.c: Likewise.
79422         * math/w_logl.c: Likewise.
79423         * math/w_pow.c: Likewise.
79424         * math/w_powf.c: Likewise.
79425         * math/w_powl.c: Likewise.
79426         * math/w_remainder.c: Likewise.
79427         * math/w_remainderf.c: Likewise.
79428         * math/w_remainderl.c: Likewise.
79429         * math/w_scalb.c: Likewise.
79430         * math/w_scalbf.c: Likewise.
79431         * math/w_scalbl.c: Likewise.
79432         * math/w_sinh.c: Likewise.
79433         * math/w_sinhf.c: Likewise.
79434         * math/w_sinhl.c: Likewise.
79435         * math/w_sqrt.c: Likewise.
79436         * math/w_sqrtf.c: Likewise.
79437         * math/w_sqrtl.c: Likewise.
79438         * math/w_tgamma.c: Likewise.
79439         * math/w_tgammaf.c: Likewise.
79440         * math/w_tgammal.c: Likewise.
79441
79442         * po/ja.po: Update from translation team.
79443
79444 2011-09-29  Andreas Jaeger  <aj@suse.de>
79445
79446         [BZ #13179]
79447         * sunrpc/netname.c (netname2host): Fix logic.
79448
79449         [BZ #6779]
79450         [BZ #6783]
79451         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
79452         correctly.
79453         * math/w_remainder.c (__remainder): Likewise.
79454         * math/w_remainderf.c (__remainderf): Likewise.
79455         * math/libm-test.inc (remainder_test): Add test cases.
79456
79457 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79458
79459         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
79460         sdiv_qrnnd.
79461
79462 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
79463
79464         * string/test-memcmp.c: Avoid unncessary #defines.
79465         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
79466
79467 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79468
79469         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
79470         Use new sse2 version for core i3 - i7 as it's faster
79471         than sse42 version.
79472         (bit_Prefer_PMINUB_for_stringop): New.
79473         * sysdeps/x86_64/rawmemchr.S: Update.
79474         Replace with faster SSE2 version.
79475         * sysdeps/x86_64/memrchr.S: New file.
79476         * sysdeps/x86_64/memchr.S: Update.
79477         Replace with faster SSE2 version.
79478
79479 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
79480
79481         * elf/dl-load.c (lose): Add cast to avoid warning.
79482
79483 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
79484
79485         * po/ca.po: Update from translation team.
79486
79487         * inet/getnetgrent_r.c: Hook up nscd.
79488         * nscd/Makefile (routines): Add nscd_netgroup.
79489         (nscd-modules): Add netgroupcache.
79490         (CFLAGS-netgroupcache.c): Define.
79491         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
79492         (cache_search): Add const to second parameter.
79493         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
79494         INNETGR.
79495         (dbs): Add netgrdb entry.
79496         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
79497         (verify_persistent_db): Handle netgrdb.
79498         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
79499         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
79500         GETFDNETGR.
79501         (netgroup_response_header): Define.
79502         (innetgroup_response_header): Define.
79503         (datahead): Add netgroup_response_header and innetgroup_response_header
79504         elements.
79505         * nscd/nscd.conf: Add entries for netgroup cache.
79506         * nscd/nscd.h (dbtype): Add netgrdb.
79507         (_PATH_NSCD_NETGROUP_DB): Define.
79508         (netgroup_iov_disabled): Declare.
79509         (xmalloc, xcalloc, xrealloc): Move declarations here.
79510         (cache_search): Adjust prototype.
79511         Add netgroup-related prototypes.
79512         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
79513         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
79514         (__nscd_innetgr): Declare.
79515         * nscd/selinux.c (perms): Use access_vector_t as element type and
79516         add netgroup-related initializers.
79517         * nscd/netgroupcache.c: New file.
79518         * nscd/nscd_netgroup.c: New file.
79519         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
79520         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
79521         For four parameters use innetgr.
79522         * nss/nss_files/files-init.c: Add definition and callback for netgr.
79523         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
79524         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
79525         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
79526
79527         * nscd/connections.c (register_traced_file): Don't register file
79528         for disabled databases.
79529
79530 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
79531
79532         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
79533
79534         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
79535         from tree and freeing node.
79536
79537 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
79538
79539         * nss/nsswitch.c (__nss_database_lookup): Handle
79540         nss_parse_service_list out of memory case.
79541
79542 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
79543
79544         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
79545         out of memory case.
79546
79547 2011-10-04  Andreas Schwab  <schwab@redhat.com>
79548
79549         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
79550         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
79551         pass it down.
79552         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
79553         elf_machine_rela, elf_machine_lazy_rel.
79554         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
79555         (ELF_DYNAMIC_DO_REL): Likewise.
79556         (ELF_DYNAMIC_DO_RELA): Likewise.
79557         (ELF_DYNAMIC_RELOCATE): Likewise.
79558         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
79559         to ELF_DYNAMIC_DO_REL.
79560         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
79561         (dl_main): In trace mode always set __RTLD_NOIFUNC.
79562         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
79563         elf_machine_rela.
79564         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
79565         skip_ifunc, don't call ifunc function if non-zero.
79566         (elf_machine_rela): Likewise.
79567         (elf_machine_lazy_rel): Likewise.
79568         (elf_machine_lazy_rela): Likewise.
79569         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
79570         (elf_machine_lazy_rel): Likewise.
79571         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
79572         Likewise.
79573         (elf_machine_lazy_rel): Likewise.
79574         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
79575         Likewise.
79576         (elf_machine_lazy_rel): Likewise.
79577         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
79578         (elf_machine_lazy_rel): Likewise.
79579         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
79580         (elf_machine_lazy_rel): Likewise.
79581         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
79582         (elf_machine_lazy_rel): Likewise.
79583         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
79584         (elf_machine_lazy_rel): Likewise.
79585         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
79586         (elf_machine_lazy_rel): Likewise.
79587         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
79588         (elf_machine_lazy_rel): Likewise.
79589
79590 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
79591
79592         * nss/nss_files/files-init.c (_nss_files_init): Use static
79593         initialization for all the *_traced_file variables.
79594
79595 2011-09-28  Andreas Schwab  <schwab@redhat.com>
79596
79597         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
79598
79599 2011-09-27  Roland McGrath  <roland@hack.frob.com>
79600
79601         [BZ #13226]
79602         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
79603
79604 2011-09-27  Andreas Schwab  <schwab@redhat.com>
79605
79606         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
79607         Reread the line before reparsing it.
79608
79609 2011-09-26  Andreas Schwab  <schwab@redhat.com>
79610
79611         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
79612
79613 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
79614             Maxim Kuvyrkov  <maxim@codesourcery.com>
79615             Joseph Myers  <joseph@codesourcery.com>
79616
79617         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
79618         if needed for __stack_chk_guard.
79619
79620 2011-09-19  Roland McGrath  <roland@hack.frob.com>
79621
79622         * sysdeps/posix/spawni.c (script_execute): Always define it.
79623         It will be optimized away if unused.
79624         (maybe_script_execute): New function.
79625         (__spawni): Call it.
79626
79627         * Makerules: Don't include tls.make.
79628         (config-tls): Always set to thread.
79629         * tls.make.c: File removed.
79630
79631 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
79632
79633         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
79634         * config.make.in (CPPFLAGS-config): New substituted variable.
79635
79636 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
79637
79638         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
79639
79640         [BZ #13192]
79641         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
79642         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
79643
79644 2011-09-15  Roland McGrath  <roland@hack.frob.com>
79645
79646         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
79647         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
79648         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
79649         (CALL_FAIL): Likewise.
79650         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
79651         (CALL_FAIL): Macro removed.
79652         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
79653
79654 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
79655
79656         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
79657         for __FINITE_MATH_ONLY__ == 1.
79658
79659 2011-09-15  Andreas Schwab  <schwab@redhat.com>
79660
79661         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
79662         __ieee754_sqrt instead of sqrt.
79663         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
79664         __ieee754_sqrtf instead of sqrtf.
79665         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
79666         __floorf instead of floorf.
79667         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
79668         __floorf, __truncf instead of floorf, truncf.
79669
79670 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
79671
79672         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
79673
79674         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
79675         __extern_always_inline.
79676         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
79677         32-bit.
79678
79679 2011-09-14  Andreas Schwab  <schwab@redhat.com>
79680
79681         * elf/rtld.c (dl_main): Also relocate in dependency order when
79682         doing symbol dependency testing.
79683
79684 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
79685
79686         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
79687         Always define `refsym'.
79688
79689 2011-09-13  Andreas Schwab  <schwab@redhat.com>
79690
79691         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
79692         (__FD_ELT): Renamed from __FDELT.
79693         * misc/bits/select2.h (__FD_ELT): Likewise.
79694         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
79695         __FD_MASK instead of __FDELT, __FDMASK.
79696         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
79697         Likewise.
79698         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
79699         Likewise.
79700
79701         * elf/Makefile (gen-ldd): Fix pattern.
79702
79703         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
79704         (init_tls): Likewise.
79705
79706 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
79707
79708         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
79709
79710 2011-09-12  Andreas Schwab  <schwab@redhat.com>
79711
79712         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
79713         `struct cmsghdr *' instead of `void *'.
79714         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
79715         Likewise.
79716
79717 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
79718
79719         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
79720         if non-absolute.
79721         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
79722         ldd_rewrite_script.
79723
79724 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
79725
79726         * configure.in: Remove --with-tls option.
79727         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
79728         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
79729         out in case it is missing.
79730         * sysdeps/ia64/elf/configure.in: Likewise.
79731         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
79732         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
79733         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
79734         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
79735         * sysdeps/sh/elf/configure.in: Likewise.
79736         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
79737         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
79738         * sysdeps/x86_64/elf/configure.in: Likewise.
79739         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
79740         * sysdeps/mach/hurd/tls.h: Likewise.
79741
79742         [BZ #13067]
79743         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
79744
79745         [BZ #13090]
79746         * configure.in: Fix use of AC_INIT.
79747
79748         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
79749
79750 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
79751
79752         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
79753         __set_errno.
79754         * malloc/hooks.c: Likewise.
79755
79756         [BZ #11929]
79757         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
79758         variables statically.
79759         (narenas): Initialize.
79760         (list_lock): Initialize.
79761         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
79762         initializtion of main_arena and list_lock.  Small cleanups.
79763         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
79764         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
79765         Add initializers to main_arena and mp_.
79766         (malloc_state): Remove pagesize member.  Change all users to use
79767         GLRO(dl_pagesize).
79768
79769         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
79770         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
79771         is always initialized.
79772
79773         * malloc/malloc.c: Removed unused configurations and dead code.
79774         * malloc/arena.c: Likewise.
79775         * malloc/hooks.c: Likewise.
79776         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
79777
79778         * include/tls.h: Removed.  USE___THREAD must always be defined.
79779         * bits/libc-tsd.h: Don't handle !USE___THREAD.
79780         * elf/dl-libc.c: Likewise.
79781         * elf/dl-tsd.c: Likewise.
79782         * include/errno.h: Likewise.
79783         * include/netdb.h: Likewise.
79784         * include/resolv.h: Likewise.
79785         * inet/herrno-loc.c: Likewise.
79786         * inet/herrno.c: Likewise.
79787         * malloc/arena.c: Likewise.
79788         * malloc/hooks.c: Likewise.
79789         * malloc/malloc.c: Likewise.
79790         * resolv/res-state.c: Likewise.
79791         * resolv/res_libc.c: Likewise.
79792         * sysdeps/i386/dl-machine.h: Likewise.
79793         * sysdeps/ia64/dl-machine.h: Likewise.
79794         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
79795         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
79796         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
79797         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
79798         * sysdeps/sh/dl-machine.h: Likewise.
79799         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
79800         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
79801         * sysdeps/unix/i386/sysdep.S: Likewise.
79802         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
79803         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
79804         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
79805         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
79806         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
79807         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
79808         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
79809         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
79810         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
79811         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
79812         * sysdeps/unix/x86_64/sysdep.S: Likewise.
79813         * sysdeps/x86_64/dl-machine.h: Likewise.
79814         * tls.make.c: Likewise.
79815
79816         * configure.in: Remove --with-__thread option.  Make tests for
79817         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
79818         tls_model attribute fail if no support is available.  Remove
79819         USE_IN_LIBIO.
79820         * Makeconfig: Adjust for dropped configure option.  All features are
79821         now mandatory.
79822         * Makerules: Likewise.
79823         * Versions.def: Likewise.
79824         * argp/argp-fmtstream.c: Likewise.
79825         * argp/argp-fmtstream.h: Likewise.
79826         * argp/argp-help.c: Likewise.
79827         * assert/assert.c: Likewise.
79828         * config.h.in: Likewise.
79829         * config.make.in: Likewise.
79830         * configure: Likewise.
79831         * configure.in: Likewise.
79832         * csu/Versions: Likewise.
79833         * csu/init.c: Likewise.
79834         * elf/tst-audit2.c: Likewise.
79835         * elf/tst-tls10.c: Likewise.
79836         * elf/tst-tls10.h: Likewise.
79837         * elf/tst-tls11.c: Likewise.
79838         * elf/tst-tls12.c: Likewise.
79839         * elf/tst-tls14.c: Likewise.
79840         * elf/tst-tlsmod11.c: Likewise.
79841         * elf/tst-tlsmod12.c: Likewise.
79842         * elf/tst-tlsmod13.c: Likewise.
79843         * elf/tst-tlsmod13a.c: Likewise.
79844         * elf/tst-tlsmod14a.c: Likewise.
79845         * elf/tst-tlsmod15b.c: Likewise.
79846         * elf/tst-tlsmod16a.c: Likewise.
79847         * elf/tst-tlsmod16b.c: Likewise.
79848         * elf/tst-tlsmod7.c: Likewise.
79849         * elf/tst-tlsmod8.c: Likewise.
79850         * elf/tst-tlsmod9.c: Likewise.
79851         * gmon/gmon.c: Likewise.
79852         * grp/fgetgrent_r.c: Likewise.
79853         * grp/putgrent.c: Likewise.
79854         * hurd/fopenport.c: Likewise.
79855         * include/libc-symbols.h: Likewise.
79856         * include/tls.h: Likewise.
79857         * intl/gettextP.h: Likewise.
79858         * intl/loadinfo.h: Likewise.
79859         * locale/global-locale.c: Likewise.
79860         * locale/localeinfo.h: Likewise.
79861         * mach/devstream.c: Likewise.
79862         * malloc/arena.c: Likewise.
79863         * malloc/set-freeres.c: Likewise.
79864         * misc/err.c: Likewise.
79865         * misc/getttyent.c: Likewise.
79866         * misc/mntent_r.c: Likewise.
79867         * posix/getopt.c: Likewise.
79868         * posix/wordexp.c: Likewise.
79869         * pwd/fgetpwent_r.c: Likewise.
79870         * resolv/Versions: Likewise.
79871         * resolv/res_hconf.c: Likewise.
79872         * shadow/fgetspent_r.c: Likewise.
79873         * shadow/putspent.c: Likewise.
79874         * stdio-common/printf_fphex.c: Likewise.
79875         * stdio-common/tmpfile.c: Likewise.
79876         * stdlib/abort.c: Likewise.
79877         * stdlib/fmtmsg.c: Likewise.
79878         * sunrpc/auth_unix.c: Likewise.
79879         * sunrpc/clnt_perr.c: Likewise.
79880         * sunrpc/clnt_tcp.c: Likewise.
79881         * sunrpc/clnt_udp.c: Likewise.
79882         * sunrpc/clnt_unix.c: Likewise.
79883         * sunrpc/openchild.c: Likewise.
79884         * sunrpc/svc_simple.c: Likewise.
79885         * sunrpc/svc_tcp.c: Likewise.
79886         * sunrpc/svc_udp.c: Likewise.
79887         * sunrpc/svc_unix.c: Likewise.
79888         * sunrpc/xdr.c: Likewise.
79889         * sunrpc/xdr_array.c: Likewise.
79890         * sunrpc/xdr_rec.c: Likewise.
79891         * sunrpc/xdr_ref.c: Likewise.
79892         * sunrpc/xdr_stdio.c: Likewise.
79893
79894 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79895
79896         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
79897
79898 2011-07-03  Andreas Jaeger  <aj@suse.de>
79899
79900         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
79901         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
79902         regenerate with gen-libm-tests.pl.
79903
79904 2010-05-12  Petr Baudis  <pasky@suse.cz>
79905
79906         [BZ #11589]
79907         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
79908         around j0() zero points by switching to j1().
79909         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
79910         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
79911         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
79912         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
79913
79914 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79915
79916         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
79917         instead of 0.
79918         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
79919         instead of 0.
79920         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
79921         Patch in part by Pavel Roskin <proski@gnu.org>.
79922
79923         [BZ #13138]
79924         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
79925         realloc.
79926         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
79927         Free memory block if necessary.
79928
79929         [BZ #12847]
79930         * libio/genops.c (INTDEF): For string streams the _lock pointer can
79931         be NULL.  Don't lock in this case.
79932
79933 2011-09-09  Roland McGrath  <roland@hack.frob.com>
79934
79935         * elf/elf.h (ELFOSABI_GNU): New macro.
79936         (ELFOSABI_LINUX): Define to that.
79937
79938 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
79939
79940         * string/strncat.c (strncat): Undef the symbol in case it has been
79941         defined in bits/string.h.
79942
79943 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79944
79945         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
79946
79947         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
79948         link map.
79949
79950 2011-08-17  Andreas Jaeger  <aj@suse.de>
79951
79952         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
79953
79954 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
79955             Ian Lance Taylor  <iant@google.com>
79956
79957         * math/libm-test.inc (lround_test): New testcase.
79958         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
79959
79960 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
79961
79962         * Makefile: Remove support for automatic cvs check-ins.
79963         * Makerules: Likewise.
79964         * config.make.in: Likewise.
79965         * configure.in: Likewise.
79966         * intl/Makefile: Likewise.
79967         * locale/Makefile: Likewise.
79968         * po/Makefile: Likewise.
79969         * posix/Makefile: Likewise.
79970         * sysdeps/gnu/Makefile: Likewise.
79971         * sysdeps/mach/hurd/Makefile: Likewise.
79972         * sysdeps/sparc/sparc32/Makefile: Likewise.
79973
79974         [BZ #13118]
79975         * posix/Makefile (bug-regex32-ENV): Define.
79976         Patch by John Stanley <jpsinthemix@verizon.net>.
79977
79978         * misc/Makefile (headers): Add bits/select2.h.
79979         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
79980         * misc/bits/select2.h: New file.
79981         * include/bits/select2.h: New file.
79982         * debug/Makefile (routines): Add fdelt_chk.
79983         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
79984         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
79985         FD_ISSET.
79986         * debug/fdelt_chk.c: New file.
79987
79988         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
79989         * wcsmbs/test-wmemcmp.c: Likewise.
79990         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
79991         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
79992
79993 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79994
79995         * string/Makefile (strop-tests): Add memcmp.
79996         * string/test-wmemcmp.c: New file.
79997         * string/test-memcmp.c: Add wmemcmp support.
79998
79999 2011-09-08  Roland McGrath  <roland@hack.frob.com>
80000
80001         [BZ #13153]
80002         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
80003         2011-07-19 change.
80004
80005         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
80006         garbage value in a __mach_port_mod_refs call in the cases of the
80007         task-self and thread-self ports.
80008
80009 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
80010
80011         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
80012
80013 2011-09-08  Andreas Schwab  <schwab@redhat.com>
80014
80015         * elf/dl-load.c (lose): Check for non-null L.
80016
80017 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
80018
80019         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
80020
80021         * elf/dl-libc.c (dlerror_run): Pass back error code from
80022         dl_catch_error.
80023
80024         [BZ #13123]
80025         * elf/dl-load.c (lose): Free l_origin if it is valid.
80026
80027         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
80028         names.
80029         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
80030         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
80031         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
80032         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
80033         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
80034         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
80035
80036 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
80037
80038         * sysdeps/powerpc/fpu/e_hypot.c: New file.
80039         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
80040         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
80041         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
80042         * sysdeps/powerpc/fpu/k_cosf.c: New file.
80043         * sysdeps/powerpc/fpu/k_sinf.c: New file.
80044         * sysdeps/powerpc/fpu/s_cosf.c: New file.
80045         * sysdeps/powerpc/fpu/s_sinf.c: New file.
80046         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
80047         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
80048
80049 2011-08-15  Alan Modra  <amodra@gmail.com>
80050
80051         [BZ #13092]
80052         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
80053         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
80054         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
80055         ppc_mcount to static-only-routines.
80056         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
80057         __mcount_internal.
80058         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
80059         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
80060
80061 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
80062
80063         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
80064         for finite and infinity parameters.
80065
80066 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
80067
80068         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
80069         and add nop instructions for throughput optimization.
80070         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
80071
80072 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
80073
80074         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
80075         aligned copy for power7 with vector-scalar instructions.
80076         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
80077
80078 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
80079
80080         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
80081         AVX check.
80082
80083 2011-09-07  Andreas Schwab  <schwab@redhat.com>
80084
80085         [BZ #13144]
80086         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
80087         last change.
80088
80089 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
80090
80091         * sysdeps/unix/sysv/linux/x86_64/init-first.c
80092         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
80093         syscall wrapper around clock_gettime in __vdso_clock_gettime.
80094         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
80095         clock_gettime.
80096
80097 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
80098
80099         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
80100         Forgot to demangle the pointer.
80101
80102         * sysdeps/i386/sysdep.h: Define atom_text_section.
80103         * sysdeps/x86_64/sysdep.h: Likewise.
80104         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
80105         section with atom_text_section.
80106         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
80107         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
80108         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
80109         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
80110         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
80111
80112         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
80113         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
80114         already be defined.  Change to take two parameters and don't assign
80115         result to variable.  Adjust all users.
80116         Define INTERNAL_GETTIME if not already defined.
80117         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
80118         call.
80119         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
80120         HAVE_CLOCK_GETTIME_VSYSCALL.
80121         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
80122
80123         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
80124         gettimeofday vsyscall, just use time.
80125
80126 2011-09-06  Andreas Schwab  <schwab@redhat.com>
80127
80128         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
80129         <errno.h>.
80130
80131 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
80132
80133         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
80134         syscall on x86-64.
80135         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
80136         syscall.
80137         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
80138         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
80139         syscall if possible.
80140
80141 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
80142
80143         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
80144         e_ident.  Don't pass to find_mapsXX.
80145         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
80146
80147 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
80148
80149         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80150         strchr-sse2-no-bsf strrchr-sse2-no-bsf
80151         * sysdeps/x86_64/multiarch/strchr.S: Update.
80152         Check bit_slow_BSF bit.
80153         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
80154         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
80155         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
80156
80157 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
80158
80159         [BZ #13134]
80160         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
80161         before glibc 2.15.
80162         (tryshell): Define.
80163         (__spawni): Change last parameter to be flag.  Test
80164         SPAWN_XFLAGS_USE_PATH flag to use path or not.
80165         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
80166         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
80167         * posix/spawni.c: Likewise.
80168         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
80169         * posix/spawnp.c: Likewise.  Change normal version to use
80170         SPAWN_XFLAGS_USE_PATH.
80171         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
80172         SPAWN_XFLAGS_TRY_SHELL.
80173
80174         [BZ #13150]
80175         * posix/glob.h: Remove gcc 1.x support.
80176
80177         [BZ #13068]
80178         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
80179
80180 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
80181
80182         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80183         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
80184         strrchr-sse2-bsf
80185         * sysdeps/i386/i686/multiarch/strchr.S: New file.
80186         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
80187         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
80188         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
80189         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
80190         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
80191
80192 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
80193
80194         * sysdeps/x86_64/wcscmp.S: New file.
80195
80196         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
80197         wcscmp-c wcscmp-sse2
80198         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
80199         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
80200         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
80201         * wcsmbs/wcscmp.c: Allow renaming.
80202
80203 2011-09-05  David S. Miller  <davem@davemloft.net>
80204
80205         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
80206         stack slot, rather than the struct return pointer slot.
80207         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
80208         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
80209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
80210         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
80211
80212 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
80213
80214         * po/ja.po: Update from translation team.
80215
80216         [BZ #13144]
80217         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
80218         kernel in 64-bit binaries.
80219
80220 2011-09-01  David S. Miller  <davem@davemloft.net>
80221
80222         * elf/elf.h (HWCAP_SPARC_*): Move to..
80223         * sysdeps/sparc/sysdep.h: this new file and add new values.
80224         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
80225         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
80226         _DL_HWCAP_COUNT to 24.
80227         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
80228         entries.
80229         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
80230         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
80231         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
80232         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
80233         instead of magic constants.
80234         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
80235
80236 2011-08-31  David S. Miller  <davem@davemloft.net>
80237
80238         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
80239         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
80240         Reimplement to do errno handling inline.
80241         (SYSCALL_ERROR_HANDLER): New macro.
80242         (__SYSCALL_STRING): Do not do errno handling in asm.
80243         (__CLONE_SYSCALL_STRING): Delete.
80244         (__INTERNAL_SYSCALL_STRING): Delete.
80245         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
80246         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
80247         (PSEUDO): Reimplement to do errno handling inline.
80248         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
80249         (SYSCALL_ERROR_HANDLER): New macro.
80250         (__SYSCALL_STRING): Do not do errno handling in asm.
80251         (__CLONE_SYSCALL_STRING): Delete.
80252         (__INTERNAL_SYSCALL_STRING): Delete.
80253         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
80254         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
80255         i386.
80256         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
80257         (inline_syscall*): Add 'err' argument.
80258         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
80259         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
80260         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
80261         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
80262
80263         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
80264         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
80265
80266 2011-08-30  Andreas Schwab  <schwab@redhat.com>
80267
80268         * elf/rtld.c (dl_main): Relocate objects in dependency order.
80269
80270 2011-08-29  Jiri Olsa <jolsa@redhat.com>
80271
80272         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
80273         directive.
80274
80275 2011-08-24  David S. Miller  <davem@davemloft.net>
80276
80277         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
80278
80279 2011-08-24  Andreas Schwab  <schwab@redhat.com>
80280
80281         * elf/Makefile: Add rules to build and run unload8 test.
80282         * elf/unload8.c: New file.
80283         * elf/unload8mod1.c: New file.
80284         * elf/unload8mod1x.c: New file.
80285         * elf/unload8mod2.c: New file.
80286         * elf/unload8mod3.c: New file.
80287
80288         * elf/dl-close.c (_dl_close_worker): Reset private search list if
80289         it wasn't used.
80290
80291 2011-08-23  David S. Miller  <davem@davemloft.net>
80292
80293         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
80294         subtract stack bias.
80295         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
80296         %sp not %fp in calculations.
80297         (_JMPBUF_UNWINDS_ADJ): Likewise.
80298
80299         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
80300         (aio_suspend): Call it to force an exception region around the
80301         AIO_MISC_WAIT() invocation.
80302
80303 2011-08-23  Andreas Schwab  <schwab@redhat.com>
80304
80305         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
80306         backslash.
80307
80308 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
80309
80310         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
80311         protection macro.
80312         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
80313         and <dl-machine.h>.
80314         (Elf64_FuncDesc): Remove.
80315
80316 2011-08-22  David S. Miller  <davem@davemloft.net>
80317
80318         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
80319         sigaltstack check, add missing cfi directives.
80320         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
80321         missing cfi directives, and sigaltstack handling.
80322
80323 2011-08-16  Andreas Schwab  <schwab@redhat.com>
80324
80325         [BZ #11724]
80326         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
80327         object is seen twice.
80328         * elf/dl-fini.c (_dl_sort_fini): Likewise.
80329
80330         * elf/Makefile (distribute): Add tst-initorder2.c.
80331         (tests): Add tst-initorder2.
80332         (modules-names): Add tst-initorder2a tst-initorder2b
80333         tst-initorder2c tst-initorder2d.  Add rules to build them.
80334         ($(objpfx)tst-initorder2.out): New rule.
80335         * elf/tst-initorder2.c: New file.
80336         * elf/tst-initorder2.exp: New file.
80337
80338 2011-08-22  Andreas Schwab  <schwab@redhat.com>
80339
80340         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
80341
80342         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
80343         dependencies back to end of function.
80344
80345         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
80346         $(elfobjdir)/ld.so.
80347
80348 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
80349
80350         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
80351         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
80352         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
80353         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
80354         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
80355         of __vdso_gettimeofday.
80356         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
80357         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
80358         attribute_hidden.
80359         (_libc_vdso_platform_setup): Remove initialization of
80360         __vdso_gettimeofday and __vdso_time.
80361
80362 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
80363
80364         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
80365         and fgetc_unlocked.
80366         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
80367         getc_unlocked.
80368
80369         * elf/dl-open.c (add_to_global): Report additions to the global scope
80370         for LD_DEBUG=scopes.
80371         (dl_open_worker): Also print scope of newly loaded dependencies.
80372         (_dl_show_scope): Indicate if there is no scope.
80373
80374         [BZ #13114]
80375         * stdio-common/Makefile (tests): Add bug24.
80376         * stdio-common/bug24.c: New file.
80377
80378 2011-08-19  Andreas Jaeger  <aj@suse.de>
80379
80380         [BZ #13114]
80381         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
80382         non-existant file when using close-on-exec mode.
80383
80384 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
80385
80386         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
80387         the very first instruction.
80388
80389         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
80390         the CFI state in the end.
80391         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
80392         inclusion of dl-trampoline.h.
80393         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
80394
80395 2011-08-19  Andreas Schwab  <schwab@redhat.com>
80396
80397         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
80398         expectations for long double.
80399
80400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
80401         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
80402
80403 2011-08-14  David S. Miller  <davem@davemloft.net>
80404
80405         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
80406         artificual limit depends upon the system page size.
80407
80408 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
80409
80410         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
80411         * resolv/Makefile: Define CFLAGS-libresolv.
80412
80413 2011-08-17  Andreas Schwab  <schwab@redhat.com>
80414
80415         * nss/makedb.c (compute_tables): Make variables used in nested
80416         function static.
80417
80418 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
80419
80420         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
80421         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
80422         if buffer was too small.
80423
80424         * elf/pldd.c (main): Attach to all threads in the process.
80425         Rewrite /proc handling to use *at functions.
80426
80427 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
80428
80429         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
80430         specifies first scope to show.
80431         (dl_open_worker): Update callers.  Move printing scope of new
80432         object to before the relocation.
80433         * elf/rtld.c (dl_main): Update _dl_show_scope call.
80434         * sysdeps/generic/ldsodefs.h: Update declaration.
80435
80436         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
80437         string for the scope number.
80438
80439 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
80440
80441         * nscd/servicescache.c (cache_addserv): Make sure written is always
80442         initialized.
80443
80444 2011-08-14  Roland McGrath  <roland@hack.frob.com>
80445
80446         * sysdeps/i386/i486/bits/atomic.h
80447         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
80448         statement expression, so as to suppress "set but not used" warning.
80449         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
80450
80451         * string/strncat.c (STRNCAT): Use prototype definition.
80452
80453         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
80454         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
80455         -Iprograms here.
80456         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
80457         (localedef-modules): Add localedef.
80458         (locale-modules): Add locale.
80459
80460         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
80461         * elf/rtld.c (dl_main): Invert order of assignment in last change,
80462         to avoid a warning.
80463
80464 2011-08-14  David S. Miller  <davem@davemloft.net>
80465
80466         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
80467         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
80468
80469 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
80470
80471         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
80472         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
80473         * elf/rtld.c (dl_main): Set l_name of vDSO.
80474         Call _dl_show_scope when DL_DEBUG_SCOPES.
80475         (process_dl_debug): Recognize scopes flag and also set it for all.
80476         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
80477         Declare _dl_show_scope.
80478
80479         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
80480         (do_dlopen): Pass caller_dlopen to dl_open.
80481         (__libc_dlopen_mode): Initialize caller_dlopen.
80482
80483         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
80484         of libc.  Make tolower call locale-independent.  Optimize a bit by
80485         using isdigit instead of isalnum.
80486         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
80487
80488 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
80489
80490         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
80491         was a dependency or dynamically loaded.
80492
80493 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
80494
80495         * intl/l10nflist.c: Allow architecture-specific pop function.
80496         * sysdeps/x86_64/l10nflist.c: New file.
80497
80498         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
80499         classification.
80500
80501 2011-08-10  Andreas Schwab  <schwab@redhat.com>
80502
80503         * include/dirent.h: Add libc_hidden_proto for scandirat and
80504         scandirat64.  Don't declare __scandirat64.
80505         * dirent/scandirat.c: Add libc_hidden_def.
80506         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
80507         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
80508
80509 2011-08-10  David S. Miller  <davem@davemloft.net>
80510
80511         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
80512         enum.
80513         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
80514         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
80515         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
80516
80517 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
80518
80519         * Versions.def [libc]: Add GLIBC_2.15.
80520         * dirent/Makefile (routines): Add scandirat and scandirat64.
80521         * dirent/Versions [libc]: Export scandirat and scandirat64 for
80522         GLIBC_2.15.
80523         * dirent/dirent.h: Declare scandirat and scandirat64.
80524         * dirent/scandirat.c: New file.
80525         * dirent/scandirat64.c: New file.
80526         * sysdeps/wordsize-64/scandirat.c: New file.
80527         * sysdeps/wordsize-64/scandirat64.c: New file.
80528         * dirent/opendir.c: Define opendirat.
80529         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
80530         using scandirat.
80531         * dirent/scandir64.c: Adjust for scandir.c change.
80532         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
80533         __scandirat64, and __scandir_cancel_handler.
80534         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
80535         additional parameter and use openat instead of open (outside of ld.so).
80536         Add new __opendir as wrapper around __opendirat.
80537         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
80538         here without requiring old scandirat implementation.
80539
80540 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
80541
80542         * dirent/scandir.c (cancel_handler): Renamed to
80543         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
80544         defined.  Adjust users.
80545         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
80546         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
80547
80548 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
80549
80550         * string/test-string.h (IMPL): Use __STRING to expand name and then
80551         stringify it.
80552
80553         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
80554         of cleanups.
80555
80556 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
80557
80558         * string/Makefile: Update.
80559         (strop-tests): Append strncat.
80560         * string/test-wcscmp.c: New file.
80561         New comprehensive test for wcscmp.
80562         * string/test-strcmp.c: Update.
80563         (WIDE): New define.
80564
80565 2011-07-22  Andreas Schwab  <schwab@redhat.com>
80566
80567         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
80568         line.
80569
80570 2011-07-26  Andreas Schwab  <schwab@redhat.com>
80571
80572         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
80573         encoding to ACE if AI_IDN.
80574
80575 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
80576
80577         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
80578         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
80579
80580 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
80581
80582         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
80583         Fix overflow bug in strncat.
80584         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
80585
80586         * string/test-strncat.c: Update.
80587         Add new tests for checking overflow bugs.
80588
80589 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
80590
80591         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80592         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
80593         * sysdeps/i386/i686/multiarch/strcat.S: New file.
80594         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
80595         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
80596         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
80597         * sysdeps/i386/i686/multiarch/strncat.S: New file.
80598         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
80599         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
80600
80601         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
80602         (USE_AS_STRCAT): Define.
80603         Add strcat and strncat support.
80604         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
80605
80606 2011-07-25  Andreas Schwab  <schwab@redhat.com>
80607
80608         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
80609         __n bigger than INT_MAX+1.
80610         (__strncmp_g): Likewise.
80611
80612 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
80613
80614         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
80615         * libio/stido.h: Likewise.
80616
80617         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
80618         (AF_NFC): Define.
80619         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
80620         (AF_NFC): Define.
80621
80622         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
80623         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
80624         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
80625         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
80626         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
80627
80628         [BZ #13021]
80629         * scripts/test-installation.pl: Don't expect libnss_test1 to be
80630         installed.
80631
80632         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
80633         typo.
80634         (_dl_x86_64_save_sse): Likewise.
80635
80636 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
80637
80638         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
80639         OSXSAVE.
80640         (_dl_x86_64_save_sse): Likewise.
80641
80642         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
80643
80644         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
80645
80646 2011-07-21  Andreas Schwab  <schwab@redhat.com>
80647
80648         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
80649         change.
80650         (_dl_x86_64_save_sse): Use correct AVX check.
80651
80652 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
80653
80654         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
80655         bug in strncpy/strncat.
80656         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
80657
80658 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
80659
80660         * string/tester.c (test_strcat): Add tests for different alignments
80661         of source and destination.
80662         (test_strncat): Likewise.
80663
80664 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
80665
80666         [BZ #12852]
80667         * posix/glob.c (glob): Check passed in values before using them in
80668         expressions to avoid some overflows.
80669         (glob_in_dir): Likewise.
80670
80671         [BZ #13007]
80672         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
80673         check for AVX enablement so that we don't crash with old kernels and
80674         new hardware.
80675         * elf/tst-audit4.c: Add same checks here.
80676         * elf/tst-audit6.c: Likewise.
80677
80678         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
80679
80680 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
80681
80682         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
80683
80684 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
80685
80686         * po/cs.po: Update from translation team.
80687         * po/bg.po: Likewise.
80688
80689 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
80690
80691         * misc/sys/cdefs.h: Add support for const attribute.
80692         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
80693         to gnu_dev_{major,minor,makedev} functions.
80694
80695 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
80696
80697         * intl/dcigettext.c (get_output_charset): Add missing bracket.
80698
80699 2011-07-20  Andreas Schwab  <schwab@redhat.com>
80700
80701         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
80702         strlen results.
80703
80704 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80705
80706         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
80707         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
80708         register in order to avoid conflicts with the soft frame pointer
80709         being held in r11 when necessary.
80710         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
80711         (INTERNAL_VSYSCALL_NCS): Likewise.
80712
80713 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
80714
80715         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
80716         * elf/dl-fini.c (_dl_fini): Adjust caller.
80717         * elf/dl-close.c (_dl_close_worker): Likewise.
80718         * sysdeps/generic/ldsodefs.h: Adjust declaration.
80719
80720 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
80721
80722         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
80723         "aux_cache->nlibs < 0".
80724
80725         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
80726         in the reload-count case.
80727
80728 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
80729
80730         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80731         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
80732         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
80733         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
80734         * sysdeps/x86_64/multiarch/strcat.S: New file.
80735         * sysdeps/x86_64/multiarch/strncat.S: New file.
80736         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
80737         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
80738         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
80739         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
80740         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
80741         (USE_AS_STRCAT): Define.
80742         Add strcat and strncat support.
80743         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
80744         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
80745         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
80746         * string/strncat.c: Update.
80747         (USE_AS_STRNCAT): Define.
80748         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80749         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
80750         and i7.
80751         * sysdeps/x86_64/multiarch/init-arch.h
80752         (bit_Prefer_PMINUB_for_stringop): New.
80753         (index_Prefer_PMINUB_for_stringop): Likewise.
80754         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
80755         bit_Prefer_PMINUB_for_stringop.
80756
80757 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
80758
80759         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
80760         buffer64.
80761         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
80762         of casting of buffer.
80763         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
80764         buffer32 and buffer64.
80765         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
80766         writes instead of casting of buffer.
80767         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
80768         buffer32.
80769         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
80770         casting of buffer.
80771
80772 2011-07-19  Andreas Schwab  <schwab@redhat.com>
80773
80774         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
80775
80776 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
80777
80778         * nscd/nscd.c (termination_handler): Don't do anything for a database
80779         if it has not yet been initialized.
80780
80781 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
80782
80783         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
80784
80785 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
80786
80787         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
80788
80789 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
80790
80791         * po/nl.po: Update from translation team.
80792         * po/sv.po: Likewise.
80793
80794 2011-07-16  Roland McGrath  <roland@hack.frob.com>
80795
80796         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
80797         now disallowed by GCC.
80798
80799         * configure.in (use-default-link): Default to yes if a test -shared
80800         link meets our qualifications.
80801         * configure: Regenerated.
80802
80803         * config.make.in (output-format): New variable.
80804         * configure.in: Check for ld --print-output-format support.
80805         * configure: Regenerated.
80806         * Makerules ($(common-objpfx)format.lds)
80807         [$(output-format) != unknown]: Just use $(output-format),
80808         instead of the linker-script munging.
80809
80810 2011-07-14  Roland McGrath  <roland@hack.frob.com>
80811
80812         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
80813         of $(common-objpfx)shlib.lds.
80814         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
80815
80816         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
80817         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
80818
80819         * configure.in (-z relro check): Adjust test code to add a large
80820         writable data section after it.
80821         * configure: Regenerated.
80822
80823 2011-07-11  Roland McGrath  <roland@hack.frob.com>
80824
80825         * configure.in (-z relro check): Fix test code to make the variable
80826         truly const.
80827         * configure: Regenerated.
80828
80829 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
80830
80831         * nscd/nscd.h (struct traced_file): Define.
80832         (struct database_dyn): Remove inotify_descr, reset_res, and filename
80833         elements.  Add traced_files.
80834         (inotify_fd): Declare.
80835         (register_traced_file): Declare.
80836         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
80837         (inotify_fd): Export.
80838         (resolv_conf_descr): Remove.
80839         (nscd_init): Move inotify descriptor creation to main.
80840         Don't register files for notification here.
80841         (register_traced_file): New function.
80842         (invalidate_cache): Don't use reset_res to determine whether to call
80843         res_init, go through the list of registered files.
80844         (main_loop_poll): The inotify descriptors are now stored in the
80845         structures for the traced files.
80846         (main_loop_epoll): Likewise.
80847         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
80848         to __nss_disable_nscd.
80849         * nscd/cache.c (prune_cache): There is no single inotify descriptor
80850         for a database anymore.  Check the records for all the registered
80851         files instead.
80852         * nss/Makefile (libnss_files-routines): Add files-init.
80853         (libnss_db-routines): Add db-init.
80854         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
80855         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
80856         * nss/nss_db/db-init.c: New file.
80857         * nss/nss_files/files-init.c: New file.
80858         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
80859         __nss_lookup_function.
80860         (__nss_lookup_function): Call nss_load_library.
80861         (nss_load_all_libraries): New function.
80862         (__nss_disable_nscd): Take parameter with callback function for files
80863         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
80864         used for the cached services.
80865         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
80866         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
80867         options for features to all the files in nscd.
80868
80869         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
80870
80871 2011-07-10  Roland McGrath  <roland@hack.frob.com>
80872
80873         * csu/elf-init.c (__libc_csu_init): Comment typo.
80874
80875 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
80876
80877         * po/pl.po: Update from translation team.
80878         * po/ja.po: Likewise.
80879         * po/ru.po: Likewise.
80880         * po/ko.po: Likewise.
80881         * po/fr.po: Likewise.
80882
80883 2011-07-09  Roland McGrath  <roland@hack.frob.com>
80884
80885         * configure.in (.ctors/.dtors header and trailer check):
80886         Use an empirical test on a built program.
80887         * configure: Regenerated.
80888
80889         * configure.in (-z relro check): Use an empirical test on a built DSO.
80890         Detect, but do not require, on ia64.
80891         * configure: Regenerated.
80892
80893         * configure.in (READELF): Find it with AC_CHECK_TOOL.
80894         Update tests that use readelf to use $READELF instead.
80895         * configure: Regenerated.
80896
80897 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
80898
80899         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
80900         if the result is not used.
80901
80902 2011-07-05  Andreas Jaeger  <aj@suse.de>
80903
80904         [BZ#9696]
80905         * stdlib/tst-strtod.c: Add testcase.
80906
80907 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
80908
80909         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
80910         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
80911         The latter has a higher limit.  Take additional parameter to pass to
80912         the new function.
80913         (__pathconf): Pass file to __statfs_link_max.
80914         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
80915         __statfs_link_max.
80916         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
80917         __statfs_link_max.
80918
80919         [BZ #12868]
80920         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
80921         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
80922         Handle Lustre.
80923         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
80924         (__statfs_filesize_max): Likewise.
80925         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
80926
80927 2011-07-05  Andreas Jaeger  <aj@suse.de>
80928
80929         * resolv/res_comp.c (dn_skipname): Remove unused variable.
80930
80931 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
80932
80933         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
80934         `status' variable.
80935         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
80936         Likewise.
80937
80938 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
80939
80940         * Makefile (strop-tests): Add strncat.
80941         * string/test-strncat.c: New file.
80942
80943 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
80944
80945         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
80946
80947 2011-06-21  Andreas Jaeger  <aj@suse.de>
80948
80949         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
80950         Copy rule from iconvdata/Makefile.
80951
80952 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80953
80954         [BZ #12922]
80955         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
80956         but no long options are defined, just return 'W'.
80957
80958 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
80959
80960         [BZ #9696]
80961         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
80962
80963 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80964
80965         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
80966         netgroups to read.
80967         (innetgr): Likewise.
80968
80969 2011-07-05  Roland McGrath  <roland@hack.frob.com>
80970
80971         * config.make.in (install_root): Default to $(DESTDIR).
80972
80973 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
80974
80975         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
80976
80977 2011-07-02  Roland McGrath  <roland@hack.frob.com>
80978
80979         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
80980
80981         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
80982         containing directory rather than embedding absolute directory names.
80983
80984         * scripts/check-local-headers.sh: Rewritten using awk.
80985         Match by word, not by line.  Print error messages for matches.
80986         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
80987
80988         * Makerules [shlib-lds-flags empty]:
80989         ($(common-objpfx)libc_pic.opts): New target.
80990         ($(common-objpfx)libc_pic.os.clean): New target.
80991         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
80992
80993         * config.make.in (OBJCOPY): New variable.
80994         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
80995         * configure: Regenerated.
80996
80997         * config.make.in (use-default-link): New variable.
80998         * configure.in (use_default_link): Grok --with-default-link to set it.
80999         * configure: Regenerated.
81000         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
81001         (shlib-lds, shlib-lds-flags): Define to empty.
81002
81003         * Makerules (shlib-lds): New variable.
81004         (shlib-lds-flags): New variable.
81005         (build-shlib, build-moduile, build-module-asneeded): Use it.
81006         ($(common-objpfx)libc.so): Use $(shlib-lds).
81007         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
81008         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
81009
81010         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
81011         DT_FLAGS/DT_FLAGS_1 with zero flags.
81012
81013         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
81014         linker script munging.
81015
81016 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
81017
81018         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
81019         as 128-bit value.
81020         * crypt/sha512.c (sha512_process_block): Perform total addition using
81021         128-bit if possible.
81022         (__sha512_finish_ctx): Likewise.
81023         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
81024         as 64-bit value.
81025         * crypt/sha256.c (SWAP64): Define.
81026         (sha256_process_block): Perform total addition using 64-bit if
81027         possible.
81028         (__sha256_finish_ctx): Likewise.
81029
81030 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
81031
81032         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
81033         * nscd/initgrcache.c (addinitgroupsX): Likewise.
81034         * nscd/hstcache.c (cache_addhst): Likewise.
81035         * nscd/grpcache.c (cache_addgr): Likewise.
81036         * nscd/aicache.c (addhstaiX): Likewise.
81037         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
81038
81039 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
81040
81041         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
81042         * nscd/initgrcache.c (addinitgroupsX): Likewise.
81043         * nscd/hstcache.c (cache_addhst): Likewise.
81044         * nscd/grpcache.c (cache_addgr): Likewise.
81045         * nscd/aicache.c (addhstaiX): Likewise.
81046
81047 2011-07-01  Andreas Schwab  <schwab@redhat.com>
81048
81049         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
81050         domain only when needed.
81051
81052 2011-06-30  Andreas Schwab  <schwab@redhat.com>
81053
81054         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
81055         is always restored.
81056
81057 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
81058
81059         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
81060         are re-adding the entry.
81061         * nscd/servicescache.c (cache_addserv): Likewise.
81062
81063 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
81064
81065         * sysdeps/generic/dl-irel.h: fix protection against multiple
81066         inclusions.
81067         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
81068
81069 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
81070
81071         [BZ #12935]
81072         * malloc/memusage.sh: Fix quoting in message.
81073         * debug/xtrace.sh: Likewise.
81074
81075         * configure.in: Remove support for --experimental-malloc option, make
81076         it the default.
81077         * config.make.in: Likewise.
81078         * malloc/Makefile: Likewise.
81079
81080 2011-06-27  Andreas Schwab  <schwab@redhat.com>
81081
81082         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
81083         two-byte characters.
81084
81085 2011-06-27  Roland McGrath  <roland@hack.frob.com>
81086
81087         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
81088         AC_CACHE_CHECK invocation.
81089         * configure: Regenerated.
81090
81091         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
81092
81093 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
81094
81095         [BZ #12350]
81096         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
81097         bit from old_res_options.
81098
81099         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
81100
81101         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
81102         value type for setfct.
81103
81104 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
81105
81106         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
81107         __gettimeofday instead of gettimeofday.
81108
81109 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
81110
81111         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
81112
81113 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
81114
81115         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
81116
81117         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
81118         info.
81119
81120 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
81121
81122         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
81123         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
81124         strcpy-sse2-unaligned strncpy-sse2-unaligned
81125         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
81126         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
81127         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
81128         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
81129         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
81130         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
81131         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
81132         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
81133         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
81134         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
81135         (STRCPY): Support SSE2 and SSSE3 versions.
81136
81137 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
81138
81139         [BZ #12874]
81140         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
81141         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
81142         kernels which artificially limit size of requests.
81143
81144 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
81145
81146         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
81147         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
81148         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
81149         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
81150         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
81151         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
81152         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
81153         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
81154         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
81155         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
81156         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
81157         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
81158         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
81159         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
81160         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
81161         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81162         Enable unaligned load optimization for Intel Core i3, i5 and i7
81163         processors.
81164         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
81165         Define.
81166         (index_Fast_Unaligned_Load): Define.
81167         (HAS_FAST_UNALIGNED_LOAD): Define.
81168
81169 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
81170
81171         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
81172
81173 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
81174
81175         [BZ #12907]
81176         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
81177         until it is clear that the information is realy needed.
81178         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
81179
81180 2011-06-22  Andreas Schwab  <schwab@redhat.com>
81181
81182         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
81183
81184 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
81185
81186         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
81187         /sys/devices/system/cpu/online if it is usable.
81188
81189         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
81190         reading the information from the /proc filesystem to once a second.
81191
81192 2011-06-21  Andreas Jaeger  <aj@suse.de>
81193
81194         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
81195         NULL after inclusion of kernel headers.
81196
81197 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
81198
81199         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
81200         calls to internal_setent.
81201
81202         [BZ #12885]
81203         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
81204         addresses using gethostbyname4_r ignore IPv4 addresses.
81205
81206         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
81207         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
81208
81209         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
81210
81211 2011-06-20  David S. Miller  <davem@davemloft.net>
81212
81213         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
81214         inclusions.
81215         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
81216
81217         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
81218         (elf_irel): Use it.
81219         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
81220         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
81221         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
81222         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
81223         * sysdeps/x86_64/dl-irel.h: Likewise.
81224
81225         * elf/dl-runtime.c: Use elf_ifunc_invoke.
81226         * elf/dl-sym.c: Likewise.
81227
81228 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
81229
81230         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
81231         need to dereference resplen2.
81232
81233 2011-06-14  Andreas Schwab  <schwab@redhat.com>
81234
81235         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
81236
81237 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
81238
81239         * Makeconfig: Define vardbdir and inst_vardbdir.
81240         * nss/Makefile: Add rules to install db-Makefile.
81241
81242         * nss/nss_db/db-XXX.c: Cleanup.
81243
81244         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
81245         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
81246         GLIBC_PRIVATE.
81247         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
81248         * nss/makedb.c: Implement -g option to specify that value strings
81249         are generated and should not be added to table iterated over for
81250         get*ent calls.
81251         * nss/nss_db/db-initgroups.c: New file.
81252
81253         * nss/getent.c: Add support for initgroups lookups through getgrouplist
81254         interface.
81255
81256         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
81257         (internal_getgrouplist): Adjust to name change.
81258         Update use_initgroups_entry if this is not the first call.
81259         * nss/databases.def: Add initgroups entry.
81260
81261         * nss/makedb.c (compute_tables): Check result of multiple hash table
81262         sizes to minimize maximum chain length.
81263
81264 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
81265
81266         * Versions.def: Add entry for libnss_db.
81267         * shlib-versions: Likewise.
81268         * nss/Makefile: Add rules to build libnss_db.
81269         * nss/Versions: Add libnss_db information.  Organize libnss_files
81270         entries better.
81271         * nss/db-Makefile: Add gshadow support.  Change rules for the new
81272         makedb progra.  Some minor improvements to generate smaller files.
81273         * nss/nss_db/nss_db.h: Move NSS database header data structures to
81274         here from...
81275         * nss/makedb.c: ...here.
81276         Improve database format to be smaller and require less memory at
81277         runtime.
81278         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
81279         db anymore.
81280         * nss/nss_db/db-netgrp.c: Likewise.
81281         * nss/nss_db/db-open.c: Likewise.
81282         * nss/nss_files/flies-XXX.x: Adjust comments.
81283         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
81284         * nss/nss_files/files-grp.c: Likewise.
81285         * nss/nss_files/files-hosts.c: Likewise.
81286         * nss/nss_files/files-network.c: Likewise.
81287         * nss/nss_files/files-proto.c: Likewise.
81288         * nss/nss_files/files-pwd.c: Likewise.
81289         * nss/nss_files/files-rpc.c: Likewise.
81290         * nss/nss_files/files-service.c: Likewise.
81291         * nss/nss_files/files-sgrp.c: Likewise.
81292         * nss/nss_files/files-spwd.c: Likewise.
81293         * nss/nss_db/db-alias.c: Removed.
81294         * nss/nss_db/dummy-db.h: Removed.
81295
81296 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
81297
81298         * nss/makedb.c: Rewritten to not use database library.
81299         * nss/Makefile: Update to build new makedb program.
81300
81301 2011-06-14  Andreas Jaeger  <aj@suse.de>
81302
81303         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
81304         memset declaration.
81305
81306 2011-06-10  Andreas Schwab  <schwab@redhat.com>
81307
81308         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
81309         tmpbuf.
81310
81311 2011-06-10  Roland McGrath  <roland@hack.frob.com>
81312
81313         * Makerules (shlib.lds): Fail if the linker script comes out empty.
81314         * elf/Makefile ($(objpfx)ld.so): Likewise.
81315
81316         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
81317         Don't list ld.so twice in dependencies.
81318
81319         * posix/bug-regex31.c: Include <stdlib.h>.
81320
81321         * nscd/hstcache.c (cache_addhst): Remove unused variable.
81322
81323         * nis/nss_compat/compat-spwd.c
81324         (getspent_next_nss_netgr): Remove unused variable.
81325         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
81326
81327         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
81328         nonmembers" output to use the right array.
81329
81330         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
81331
81332         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
81333
81334         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
81335         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
81336         * catgets/gencat.c (read_input_file): Likewise.
81337         * locale/programs/locarchive.c (enlarge_archive): Likewise.
81338
81339         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
81340         variable definition inside #if's controlling its use.
81341
81342         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
81343
81344         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
81345
81346         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
81347
81348         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
81349         unreachable code.
81350
81351         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
81352
81353         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
81354         * configure: Regenerated.
81355
81356         * Makerules: Revert last change.
81357         * elf/Makefile: Likewise.
81358
81359 2011-06-09  Roland McGrath  <roland@hack.frob.com>
81360
81361         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
81362         * elf/Makefile ($(objpfx)librtld.os): Likewise.
81363         (reloc-link): Likewise.
81364
81365 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
81366
81367         * elf/Makefile: Add rules to build pldd.
81368         * elf/pldd.c: New file.
81369         * elf/pldd-xx.c: New file.
81370
81371 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
81372
81373         * version.h: Update for 2.15 development version.
81374
81375 2011-06-07  David S. Miller  <davem@davemloft.net>
81376
81377         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
81378         ifuncs.
81379         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
81380         elf_machine_lazy_rel): Likewise.
81381         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
81382         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
81383         elf_machine_lazy_rel): Likewise.
81384         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
81385         dl_hwcap via passed in argument.
81386         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
81387         Likewise.
81388
81389 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81390
81391         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
81392
81393 2011-06-06  Roland McGrath  <roland@hack.frob.com>
81394
81395         [BZ #12849]
81396         * manual/fdl-1.1.texi: New file, verbatim from:
81397         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
81398         * manual/lgpl-2.1.texi: New file, verbatim from:
81399         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
81400         * manual/Makefile (licenses): New variable, list those new file names.
81401         (texis): Use it.
81402         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
81403
81404         * manual/fdl.texi: File removed.
81405         * manual/lesser.texi: File removed.
81406         * manual/libc.texinfo (Copying, Documentation License):
81407         Use new @include file names, put @appendix directive before @include.
81408
81409 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
81410
81411         [BZ #12841]
81412         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
81413         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
81414         (mq_open): Add __NTH.
81415
81416 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
81417
81418         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81419         Assume Intel Core i3/i5/i7 processor if AVX is available.
81420
81421 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
81422
81423         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
81424         typo.
81425
81426 2011-05-31  Andreas Schwab  <schwab@redhat.com>
81427
81428         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
81429         memory.  Use alloca_account.  Fix memory leak when retrying.
81430
81431 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
81432
81433         * version.h (RELEASE): Bump for 2.14 release.
81434         * include/features.h (__GLIBC_MINOR__): Bump to 14.
81435
81436         * config.make.in (RANLIB): Remove entry.
81437
81438 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
81439
81440         * po/Makefile (po-sed-cmd): Add ksh to extensions.
81441         (libc.pot): Work around missing support for .ksh extension in xgettext.
81442
81443         [BZ #12684]
81444         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
81445         if both request failed.
81446         (send_dg): In case of server errors clear resplen or *resplen2.
81447
81448         [BZ #12454]
81449         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
81450         when there are multiple maps.
81451         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
81452         (_dl_fini): Remove test here.
81453
81454         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
81455
81456 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
81457
81458         [BZ #12350]
81459         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
81460         bit from old_res_options.
81461         (gaih_inet): Likewise.
81462
81463         [BZ #11099]
81464         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
81465         as signed.
81466
81467         * resolv/res_init.c (res_setoptions): Make the code more compact.
81468
81469         [BZ #11558]
81470         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
81471         set RES_USEVC.
81472
81473         [BZ #11634]
81474         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
81475
81476         * malloc/malloc.h: Mark malloc hook variables as deprecated.
81477
81478         [BZ #11781]
81479         * malloc/malloc.h: Declare malloc hook variables as volatile.
81480
81481         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
81482         in last patch.
81483
81484         [BZ #11799]
81485         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
81486         raise in the comment.
81487         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
81488         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
81489         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
81490
81491 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
81492
81493         [BZ #12811]
81494         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
81495         grow the buffers more if it already has to be sufficient.
81496         (build_wcs_upper_buffer): Likewise.
81497         * posix/regexec.c (check_matching): Likewise.
81498         (clean_state_log_if_needed): Likewise.
81499         (extend_buffers): Don't enlarge buffers beyond size of the input
81500         buffer.
81501         Patches mostly by Emil Wojak <emil@wojak.eu>.
81502         * posix/bug-regex32.c: New file.
81503         * posix/Makefile (tests): Add bug-regex32.
81504
81505         * locale/findlocale.c (_nl_find_locale): Return right away if
81506         _nl_explode_name failed.
81507         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
81508
81509         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
81510
81511         * debug/xtrace.sh: Unify messages.
81512         * malloc/memusage.sh: Likewise.
81513
81514         [BZ #12813]
81515         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
81516         time symbol from vDSO.  Substitute with vsyscall if not available.
81517         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
81518         __vdso_time.
81519
81520         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
81521         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
81522         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
81523         Add sendmmsg and internal_sendmmsg.
81524         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
81525         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
81526         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
81527
81528         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
81529         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
81530         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
81531
81532 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
81533
81534         [BZ #12813]
81535         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
81536         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
81537         available.
81538         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
81539         __vdso_getcpu.
81540
81541         [BZ #12814]
81542         * iconvdata/Makefile (tests): Add bug-iconv9.
81543         * iconvdata/bug-iconv9.c: New file.
81544
81545 2011-05-27  Andreas Schwab  <schwab@redhat.com>
81546
81547         [BZ #12814]
81548         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
81549
81550 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
81551
81552         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
81553         (struct user_regs_struct): Change intcs field back to cs.
81554
81555 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
81556
81557         * po/ja.po: Update from translation team.
81558
81559 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
81560
81561         [BZ #12795]
81562         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
81563         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
81564
81565 2011-05-20  Andreas Schwab  <schwab@redhat.com>
81566
81567         * stdlib/longlong.h: Update from GCC.
81568
81569 2011-05-23  Andreas Schwab  <schwab@redhat.com>
81570
81571         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
81572         parameter name.
81573         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
81574         Add parameter name.
81575         (__sysconf): Pass it down.
81576
81577 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
81578
81579         [BZ #12671]
81580         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
81581         some situations.
81582         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
81583         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
81584         add in in __libc_use_alloca calls.  Adjust callers.
81585         (glob): Use malloc in some situations.
81586
81587         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
81588         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
81589         pltexit.
81590
81591 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
81592
81593         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
81594         and CLOCK_BOOTTIME_ALARM.
81595
81596         [BZ #12782]
81597         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
81598         is returned.
81599
81600         * string/_strerror.c (__strerror_r): Print negative errors as signed
81601         numbers.
81602
81603         [BZ #12777]
81604         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
81605         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
81606         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
81607
81608         * configure.in: Fix typo in redirection and correct removal of test
81609         files in two cases.
81610
81611         [BZ #12788]
81612         * locale/setlocale.c (new_composite_name): Fix test to check for
81613         identical name of all categories.
81614
81615         [BZ #12792]
81616         * libio/filedoalloc.c (local_isatty): New function.
81617         (_IO_file_doallocate): Use local_isatty.
81618         * stdio-common/perror.c (perror): In case a new stream is used
81619         forward the stream error.
81620         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
81621         error flag.
81622
81623 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
81624
81625         [BZ #11884]
81626         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
81627         alloca.
81628         * include/alloca.h (extend_alloca_account): Define.
81629
81630         [BZ #11857]
81631         * posix/regex.h: Fix comments with documentation of user-accessible
81632         fields after compilation and describe correct free'ing of pattern
81633         after re_compile_pattern.
81634         Patch by Reuben Thomas <rrt@sc3d.org>.
81635
81636 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
81637
81638         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
81639         and -mno-altivec to prevent the compiler from using Altivec and/or
81640         VSX instructions when the corresponding registers are not available.
81641
81642 2011-05-19  Andreas Schwab  <schwab@redhat.com>
81643
81644         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
81645
81646 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
81647
81648         * libio/freopen.c (freopen): Use __dup2, not dup2.
81649         * libio/freopen64.c (freopen64): Likewise.
81650
81651 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
81652
81653         [BZ #12775]
81654         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
81655         * math/Makefile (tests): Add test-powl.
81656         (CFLAGS-test-powl.c): Define.
81657         * math/test-powl.c: New file.
81658
81659 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
81660
81661         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
81662
81663 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
81664
81665         [BZ #11837]
81666         * iconvdata/gb18030.c: Update to GB18020-2005.
81667
81668 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
81669
81670         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
81671         RE_SYNTAX_POSIX_AWK): Update to match recent development.
81672         Patch by Aharon Robbins <arnold@skeeve.com>.
81673
81674         [BZ #11892]
81675         * stdlib/putenv.c (putenv): Don't always create copy of the variable
81676         on the stack.
81677
81678         [BZ #11895]
81679         * misc/pselect.c (__pselect): Handle timeout value errors hidden
81680         through underflows.
81681
81682         [BZ #12766]
81683         * misc/error.c (error_at_line): Ensure file_name and old_file_name
81684         point to strings before performing equality test for error_one_per_line
81685         mode.
81686
81687         [BZ #11697]
81688         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
81689
81690         [BZ #11820]
81691         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
81692         (struct user_fpregs_struct): Avoid __uint*_t types.
81693
81694         [BZ #6420]
81695         * malloc/mtrace.c (tr_where): Add additional parameter to point to
81696         symbol info.  Use it instead of calling _dl_addr locally.
81697         (lock_and_info): New function.
81698         (tr_freehook): Call lock_and_info and pass symbol info as additional
81699         parameter to tr_where.
81700         (tr_mallochook): Likewise.
81701         (tr_reallochook): Likewise.
81702         (tr_memalignhook): Likewise.
81703
81704         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
81705         used and couldn't be at all thread-safe.
81706
81707 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
81708
81709         * libio/freopen.c (freopen): Don't close old file descriptor
81710         before the new one is opened.  Instead dup the new file descriptor
81711         to the old one after the new stream is created.
81712         * libio/freopen64.c (freopen64): Likewise.
81713         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
81714         * libio/fileops.c (_IO_new_file_close_it): Handle new
81715         _IO_FLAGS2_NOCLOSE flag.
81716         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
81717         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
81718         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
81719         _IO_FLAGS2_NOCLOSE flag.
81720         * include/unistd.h: Add hidden_proto for dup3.
81721         Define __have_dup3.
81722         * io/dup3.c: Define hidden symbol.
81723         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
81724
81725         [BZ #7101]
81726         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
81727         when an incomplete long option is used.
81728         * posix/tst-getopt_long1.c: New file.
81729         * posix/Makefile (tests): Add tst-getopt_long1.
81730
81731         [BZ #10138]
81732         * scripts/config.guess: Update from autoconf-2.68.
81733         * scripts/config.sub: Likewise.
81734
81735         [BZ #10157]
81736         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
81737         tests into ...
81738         (has_cpuclock): ...this.  New function.
81739         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
81740         macro here based on has_cpuclock code.
81741
81742         [BZ #10149]
81743         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81744         First byte (not low byte) is now always NUL.
81745         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
81746
81747         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81748         Use non-cancelable interfaces.
81749
81750         [BZ #9809]
81751         * locale/iso-639.def: Add entry for Sorani.
81752
81753         [BZ #11901]
81754         * include/stdlib.h: Move include protection to the right place.
81755         Define abort_msg_s.  Declare __abort_msg with it.
81756         * stdlib/abort.c (__abort_msg): Adjust type.
81757         * assert/assert.c (__assert_fail_base): New function.  Majority
81758         of code from __assert_fail.  Allocate memory for __abort_msg with
81759         mmap.
81760         (__assert_fail): Now call __assert_fail_base.
81761         * assert/assert-perr.c: Remove bulk of implementation.  Use
81762         __assert_fail_base.
81763         * include/assert.hL Declare __assert_fail_base.
81764         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
81765         mmap.
81766         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
81767
81768 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
81769
81770         [BZ #11952]
81771         [BZ #12453]
81772         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
81773         until all modules are registered in the DTV.
81774         * elf/Makefile: Add rules to build and run tst-tls19.
81775         * elf/tst-tls19.c: New file.
81776         * elf/tst-tls19mod1.c: New file.
81777         * elf/tst-tls19mod2.c: New file.
81778         * elf/tst-tls19mod3.c: New file.
81779         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
81780
81781         [BZ #12083]
81782         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
81783         correctly.
81784
81785         [BZ #12601]
81786         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
81787         two-byte sequence errors.
81788         * iconvdata/Makefile (tests): Add bug-iconv8.
81789         * iconvdata/bug-iconv8.c: New file.
81790
81791         [BZ #12626]
81792         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
81793         buf2 definition.
81794
81795         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
81796
81797         [BZ #12432]
81798         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
81799         (dummy_getcfa): New function.
81800         (init): Get _Unwind_GetCFA address, use dummy if not found.
81801         (backtrace_helper): In recursion check, also check whether CFA changes.
81802         (__backtrace): Completely initialize arg.
81803
81804         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
81805         storing incomplete byte sequence in state object.  Avoid testing for
81806         guaranteed too small input if we know there is enough data available.
81807
81808 2011-05-11  Andreas Schwab  <schwab@redhat.com>
81809
81810         * Makeconfig (+link-pie): Indent.
81811         * Rules (binaries-pie): Define if $(have-fpie) and
81812         $(build-shared).
81813         (binaries-shared): Also filter out $(binaries-pie).
81814         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
81815         * nscd/Makefile (others-pie): Add nscd.
81816         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
81817         ($(objpfx)nscd): Remove command override.
81818         * login/Makefile (others-pie): Add pt_chown.
81819         ($(objpfx)pt_chown): Remove command override.
81820         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
81821         remove command overrides.
81822
81823 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
81824
81825         * libio/tst_putwc.c: Fix error messages.
81826
81827         [BZ #12724]
81828         * libio/fileops.c (_IO_new_file_close_it): Always flush when
81829         currently writing and seek to current position when not.
81830         * libio/Makefile (tests): Add bug-fclose1.
81831         * libio/bug-fclose1.c: New file.
81832
81833 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
81834
81835         [BZ #12511]
81836         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
81837         don't set DF_1_NODELETE here.
81838         (do_lookup_x): When entering new entry test for copy relocation
81839         and if necessary set DF_1_NODELETE flag.
81840         * elf/tst-unique4.cc: New file.
81841         * elf/tst-unique4.h: New file.
81842         * elf/tst-unique4lib.cc: New file.
81843         * elf/Makefile: Add rules to build and run tst-unique4.
81844         Patch by Piotr Bury <pbury@goahead.com>.
81845
81846 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
81847
81848         [BZ #12052]
81849         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
81850
81851         [BZ #12625]
81852         * misc/mntent_r.c (addmntent): Flush the stream after the output
81853
81854         [BZ #12393]
81855         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
81856         (is_trusted_path_normalize): Skip initial colon.  Append slash
81857         to empty buffer.  Duplicate is_trusted_path code but allow
81858         constructed patch to be prefix.
81859         (is_dst): Allow $ORIGIN followed by /.
81860         (_dl_dst_substitute): Correct clearing of check_for_trusted.
81861         Correct testing of result of is_trusted_path_normalize
81862         (decompose_rpath): Fix warning.
81863
81864 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
81865
81866         [BZ #11257]
81867         * grp/initgroups.c (internal_getgrouplist): When we found the service
81868         list through the initgroups entry in nsswitch.conf do not always
81869         continue on a successful lookup.  Don't always use the
81870         __nss_group_database value if it is set.
81871         * nss/nsswitch.conf (initgroups): Change action for successful db
81872         lookup to continue for compatibility.
81873
81874 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
81875
81876         [BZ #11532]
81877         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
81878         and CP774 modules.
81879         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
81880         and CP774 modules.
81881         * iconvdata/tst-tables.sh: Likewise.
81882         * iconvdata/cp770.c: New file.
81883         * iconvdata/cp771.c: New file.
81884         * iconvdata/cp772.c: New file.
81885         * iconvdata/cp773.c: New file.
81886         * iconvdata/cp774.c: New file.
81887         * iconvdata/testdata/CP770: New file.
81888         * iconvdata/testdata/CP770..UTF8: New file.
81889         * iconvdata/testdata/CP771: New file.
81890         * iconvdata/testdata/CP771..UTF8: New file.
81891         * iconvdata/testdata/CP772: New file.
81892         * iconvdata/testdata/CP772..UTF8: New file.
81893         * iconvdata/testdata/CP773: New file.
81894         * iconvdata/testdata/CP773..UTF8: New file.
81895         * iconvdata/testdata/CP774: New file.
81896         * iconvdata/testdata/CP774..UTF8: New file.
81897
81898         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
81899         END CHARMAP line.
81900         * iconvdata/gen-8bit-gap.sh: Likewise.
81901         * iconvdata/gen-8bit.sh: Likewise.
81902
81903         * locale/iso-639.def: Add ary entry.
81904
81905         [BZ #11258]
81906         * locale/C-translit.h.in: Add U20A1 transliteration.
81907
81908         [BZ #12178]
81909         * locale/iso-639.def: Add wae entry.
81910         Patch by Kevin Bortis <bortis@translate-wae.ch>.
81911
81912         [BZ #12545]
81913         * locale/programs/localedef.c (construct_output_path): Use ssize_t
81914         for n.
81915
81916         [BZ #12711]
81917         * locale/C-translit.h.in: Add entry for U20B9.
81918         Patch by pravin.d.s@gmail.com.
81919
81920 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
81921
81922         [BZ #12713]
81923         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
81924         ENAMETOOLONG use generic getcwd.
81925         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
81926         in rtld.  Use *stat64.
81927         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
81928         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
81929         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
81930         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
81931         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
81932         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
81933         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
81934         __fstatat64 macros.
81935         * include/dirent.h: Add libc_hidden_proto for rewinddir.
81936         * dirent/rewinddir.c: Add libc_hidden_def.
81937         * sysdeps/mach/hurd/rewinddir.c: Likewise.
81938         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
81939
81940         * include/dirent.h (__alloc_dir): Add flags parameter.
81941         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
81942         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
81943         __alloc_dir.
81944         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
81945         from fdopendir if O_CLOEXEC is already set.
81946
81947 2011-03-15  Alan Modra  <amodra@gmail.com>
81948
81949         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
81950         l_tls_firstbyte_offset non-zero.  Save padding offset in
81951         l_tls_firstbyte_offset for later use.
81952         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
81953         freeing static tls block.
81954
81955 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
81956
81957         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
81958         where #ifdef was intended.  The intent is to prevent ARG_MAX from
81959         being defined by the kernel headers.
81960
81961 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
81962
81963         [BZ #12734]
81964         * resolv/resolv.h: Define RES_NOTLDQUERY.
81965         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
81966         no-tld-query and set RES_NOTLDQUERY.
81967         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
81968         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
81969         modern BIND to search name as TLD unless forbidden.
81970
81971 2011-05-07  Petr Baudis  <pasky@suse.cz>
81972             Ulrich Drepper  <drepper@gmail.com>
81973
81974         [BZ #12393]
81975         * elf/dl-load.c (fillin_rpath): Move trusted path check...
81976         (is_trusted_path): ...to here.
81977         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
81978         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
81979         using is_trusted_path_normalize() in setuid scripts.
81980
81981 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
81982
81983         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
81984         __BEGIN/__END_DECLS.
81985
81986 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
81987
81988         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
81989         NSS_STATUS_NOTFOUND if no record was found.
81990
81991 2011-05-05  Andreas Schwab  <schwab@redhat.com>
81992
81993         * sunrpc/Makefile (headers): Add rpc/netdb.h.
81994         (headers-not-in-tirpc): Remove rpc/netdb.h
81995         * resolv/netdb.h: Revert last change.
81996
81997 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
81998
81999         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
82000         circular dependency between libgcc.a and libc.a.
82001
82002 2011-05-05  Andreas Schwab  <schwab@redhat.com>
82003
82004         * resolv/netdb.h: Don't include <rpc/netdb.h>.
82005         * nis/Makefile: Don't install rpcsvc/*.
82006         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
82007         instead of <rpc/types.h>.
82008         (MAXHOSTNAMELEN): Define.
82009
82010 2011-05-03  Andreas Schwab  <schwab@redhat.com>
82011
82012         * elf/ldconfig.c (add_dir): Don't crash on empty path.
82013
82014 2011-04-28  Maciej Babinski  <mbabinski@google.com>
82015
82016         [BZ #12714]
82017         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
82018         gethostbyname4_r when IPv6 results are possible.
82019
82020 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
82021
82022         [BZ #12723]
82023         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
82024         _PC_PIPE_BUF handling.
82025
82026 2011-04-30  Bruno Haible  <bruno@clisp.org>
82027
82028         [BZ #12717]
82029         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
82030         * resolv/netdb.h (getnameinfo): Change type of flags parameter
82031         to 'int'.
82032         * inet/getnameinfo.c (getnameinfo): Likewise.
82033
82034 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
82035
82036         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
82037         to groups setting in database lookup.
82038         * nss/nsswitch.conf: Add initgroups entry.
82039
82040 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
82041
82042         [BZ #12685]
82043         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
82044         mode string.
82045         Patch by Eric Blake <eblake@redhat.com>.
82046
82047 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
82048
82049         * sunrpc/Makefile (need-export-routines): Add svc_run.
82050         (routines): Remove svc_run.
82051         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
82052         * sunrpc/clnt_perr.c (clnt_perrno): Export.
82053         * sunrpc/svc_run.c (svc_run): Likewise.
82054         * sunrpc/svc_udp.c (svcudp_create): Likewise.
82055
82056 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
82057
82058         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
82059         problem in reallocation in last patch.
82060
82061 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
82062
82063         * sunrpc/Makefile: Move inclusion of Rules.
82064
82065 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
82066
82067         * nss/nss_files/files-initgroups.c: New file.
82068         * nss/Makefile (libnss_files-routines): Add files-initgroups.
82069         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
82070         _nss_files_initgroups_dyn.
82071
82072 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
82073
82074         * elf/elf.h (R_ARM_IRELATIVE): Define.
82075
82076 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
82077
82078         * po/ru.po: Update from translation team.
82079
82080 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
82081
82082         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
82083         dependencies.
82084
82085 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
82086
82087         [BZ #12653]
82088         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
82089         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
82090         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
82091         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
82092         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
82093
82094 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
82095
82096         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
82097         differing bytes.
82098         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
82099         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
82100         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
82101
82102 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
82103
82104         [BZ #12420]
82105         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
82106         storing it.
82107         * stdlib/bug-getcontext.c: New file.
82108         * stdlib/Makefile: Add rules to build and run bug-getcontext.
82109
82110 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82111
82112         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
82113         instructions into .machine "z9-109".
82114         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
82115         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
82116
82117 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82118
82119         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
82120         between environment variables and auxiliary vector.
82121
82122 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
82123
82124         * Makefile: Add rules to build linkobj/libc.so.
82125         * include/libc-symbols.h: Define libc_hidden_nolink.
82126         * include/rpc/auth.h: Mark functions which are to be hidden.
82127         * include/rpc/auth_des.h: Likewise.
82128         * include/rpc/auth_unix.h: Likewise.
82129         * include/rpc/clnt.h: Likewise.
82130         * include/rpc/des_crypt.h: Likewise.
82131         * include/rpc/key_prot.h: Likewise.
82132         * include/rpc/pmap_clnt.h: Likewise.
82133         * include/rpc/pmap_prot.h: Likewise.
82134         * include/rpc/pmap_rmt.h: Likewise.
82135         * include/rpc/rpc_msg.h: Likewise.
82136         * include/rpc/svc.h: Likewise.
82137         * include/rpc/svc_auth.h: Likewise.
82138         * include/rpc/xdr.h: Likewise.
82139         * nis/Makefile: Link all DSOs against linkobj/libc.so.
82140         * nss/Makefile: Likewise.
82141         * sunrpc/Makefile: Don't install headers.  Build library with normal
82142         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
82143         * sunrpc/auth_des.c: Hide exported symbols by default, export some
82144         for the compat linking library.  Remove use of INTDEF/INTUSE.
82145         * sunrpc/auth_none.c: Likewise.
82146         * sunrpc/auth_unix.c: Likewise.
82147         * sunrpc/authdes_prot.c: Likewise.
82148         * sunrpc/authuxprot.c: Likewise.
82149         * sunrpc/clnt_gen.c: Likewise.
82150         * sunrpc/clnt_perr.c: Likewise.
82151         * sunrpc/clnt_raw.c: Likewise.
82152         * sunrpc/clnt_simp.c: Likewise.
82153         * sunrpc/clnt_tcp.c: Likewise.
82154         * sunrpc/clnt_udp.c: Likewise.
82155         * sunrpc/clnt_unix.c: Likewise.
82156         * sunrpc/des_crypt.c: Likewise.
82157         * sunrpc/des_soft.c: Likewise.
82158         * sunrpc/get_myaddr.c: Likewise.
82159         * sunrpc/key_call.c: Likewise.
82160         * sunrpc/key_prot.c: Likewise.
82161         * sunrpc/netname.c: Likewise.
82162         * sunrpc/pm_getmaps.c: Likewise.
82163         * sunrpc/pm_getport.c: Likewise.
82164         * sunrpc/pmap_clnt.c: Likewise.
82165         * sunrpc/pmap_prot.c: Likewise.
82166         * sunrpc/pmap_prot2.c: Likewise.
82167         * sunrpc/pmap_rmt.c: Likewise.
82168         * sunrpc/publickey.c: Likewise.
82169         * sunrpc/rpc_cmsg.c: Likewise.
82170         * sunrpc/rpc_common.c: Likewise.
82171         * sunrpc/rpc_dtable.c: Likewise.
82172         * sunrpc/rpc_prot.c: Likewise.
82173         * sunrpc/rpc_thread.c: Likewise.
82174         * sunrpc/rtime.c: Likewise.
82175         * sunrpc/svc.c: Likewise.
82176         * sunrpc/svc_auth.c: Likewise.
82177         * sunrpc/svc_authux.c: Likewise.
82178         * sunrpc/svc_raw.c: Likewise.
82179         * sunrpc/svc_run.c: Likewise.
82180         * sunrpc/svc_simple.c: Likewise.
82181         * sunrpc/svc_tcp.c: Likewise.
82182         * sunrpc/svc_udp.c: Likewise.
82183         * sunrpc/svc_unix.c: Likewise.
82184         * sunrpc/svcauth_des.c: Likewise.
82185         * sunrpc/xcrypt.c: Likewise.
82186         * sunrpc/xdr.c: Likewise.
82187         * sunrpc/xdr_array.c: Likewise.
82188         * sunrpc/xdr_float.c: Likewise.
82189         * sunrpc/xdr_intXX_t.c: Likewise.
82190         * sunrpc/xdr_mem.c: Likewise.
82191         * sunrpc/xdr_rec.c: Likewise.
82192         * sunrpc/xdr_ref.c: Likewise.
82193         * sunrpc/xdr_sizeof.c: Likewise.
82194         * sunrpc/xdr_stdio.c: Likewise.
82195
82196 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
82197
82198         [BZ #12650]
82199         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
82200         * sysdeps/ia64/dl-tls.h: Likewise.
82201         * sysdeps/powerpc/dl-tls.h: Likewise.
82202         * sysdeps/s390/dl-tls.h: Likewise.
82203         * sysdeps/sh/dl-tls.h: Likewise.
82204         * sysdeps/sparc/dl-tls.h: Likewise.
82205         * sysdeps/x86_64/dl-tls.h: Likewise.
82206         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
82207
82208 2011-03-14  Andreas Schwab  <schwab@redhat.com>
82209
82210         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
82211         rpath element also skip the following colon.
82212         (expand_dynamic_string_token): Add is_path parameter and pass
82213         down to DL_DST_REQUIRED and _dl_dst_substitute.
82214         (decompose_rpath): Call expand_dynamic_string_token with
82215         non-zero is_path.  Ignore empty rpaths.
82216         (_dl_map_object_from_fd): Call expand_dynamic_string_token
82217         with zero is_path.
82218
82219 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
82220
82221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
82222         Make cancelable.
82223
82224 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
82225
82226         [BZ #12655]
82227         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
82228         Patch by Filipe David Manana <fdmanana@apache.org>.
82229
82230 2011-04-07  Andreas Schwab  <schwab@redhat.com>
82231
82232         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
82233         Maintain aligned stack.
82234         (CHECK_RSP): Remove unused macro.
82235
82236 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
82237
82238         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
82239         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
82240
82241 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
82242
82243         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
82244
82245         * include/features.h: Mention __USE_XOPEN2K8 in comment.
82246
82247 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
82248
82249         [BZ #12518]
82250         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
82251         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
82252         * sysdeps/x86_64/memmove.c: New file.
82253         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
82254         (memcpy): Renamed to ...
82255         (__new_memcpy): This.
82256         (memcpy): Provide GLIBC_2_14 memcpy.
82257         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
82258         (memcpy): Provide GLIBC_2_2_5 memcpy.
82259
82260 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
82261
82262         [BZ #12631]
82263         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
82264
82265 2011-03-30  Andreas Schwab  <schwab@redhat.com>
82266
82267         * misc/syncfs.c: New file.
82268         * misc/Makefile (routines): Add syncfs.
82269         * posix/unistd.h: Declare syncfs.
82270         * sysdeps/unix/syscalls.list: Add syncfs.
82271
82272 2011-04-01  Andreas Schwab  <schwab@redhat.com>
82273
82274         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
82275         open_by_handle_at.
82276         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
82277         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
82278         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
82279         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
82280         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
82281         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
82282         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
82283
82284 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
82285
82286         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
82287         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
82288         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
82289         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
82290         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
82291         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
82292         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
82293
82294         * io/Makefile: Compile fallocate.c, fallocate64.c, and
82295         sync_file_range.c with -fexceptions.
82296         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
82297         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
82298         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
82299         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
82300         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
82301         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
82302         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
82303         sync_file_range as cancellation point
82304         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
82305         now a wrapper around __call_sync_file_range with cancellation handling.
82306         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
82307         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
82308         function name to __call_sync_file_range.
82309         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
82310         Add call_sync_file_range.
82311
82312 2011-04-01  Andreas Schwab  <schwab@redhat.com>
82313
82314         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82315         bits/timex.h.
82316
82317 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
82318
82319         * iconv/iconv.h: Fix typo in comment.
82320         * io/fcntl.h: Likewise.
82321         * libio/stdio.h: Likewise.
82322         * posix/spawn.h: Likewise.
82323         * posix/unistd.h: Likewise.
82324         * stdlib/stdlib.h: Likewise.
82325         * time/time.h: Likewise.
82326         * wcsmbs/wchar.h: Likewise.
82327
82328         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
82329         open_by_handle): Add.
82330         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
82331         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
82332         Augment a few comments.
82333         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
82334         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
82335         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
82336         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
82337         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
82338         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
82339         open_by_handle.
82340
82341         * io/fcntl.h (AT_EMPTY_PATH): Define.
82342
82343 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
82344
82345         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
82346         * sysdeps/unix/sysv/linux/bits/time.h: New file.
82347         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
82348         to...
82349         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
82350         * Versions.def: Add GLIBC_2.14.
82351         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
82352         Export.
82353
82354 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
82355
82356         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
82357         round counter.
82358         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
82359
82360 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
82361
82362         [BZ #12597]
82363         * string/test-strncmp.c (do_page_test): New function.
82364         (check2): Likewise.
82365         (test_main): Call check2.
82366         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
82367
82368 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
82369
82370         [BZ #12587]
82371         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
82372         Handle cache information in CPU leaf 4.
82373         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
82374
82375 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
82376
82377         [BZ #12583]
82378         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
82379         character representation.
82380         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
82381
82382 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
82383
82384         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
82385         END(__isnan) to END(__isnanf) to match function entry point/label
82386         EALIGN(__isnanf,...).
82387
82388 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
82389
82390         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
82391
82392 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
82393
82394         [BZ #12510]
82395         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
82396         copy from the symbol referenced in the relocation to initialize the
82397         used variable.
82398         Patch by Piotr Bury <pbury@goahead.com>.
82399         * elf/Makefile: Add rules to build and tst-unique3.
82400         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
82401         * elf/tst-unique3.cc: New file.
82402         * elf/tst-unique3.h: New file.
82403         * elf/tst-unique3lib.cc: New file.
82404         * elf/tst-unique3lib2.cc: New file.
82405
82406         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
82407
82408 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
82409
82410         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
82411         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
82412         to _start.
82413
82414 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
82415
82416         * elf/dl-load.c (_dl_map_object): If we are looking for the first
82417         to-be-loaded object along a path to loader is ld.so.
82418
82419 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
82420             Ulrich Drepper  <drepper@gmail.com>
82421
82422         * sysdeps/x86_64/memset.S: After aligning destination, code
82423         branches to different locations depending on the value of
82424         misalignment, when multiarch is enabled. Fix this.
82425
82426 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
82427
82428         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
82429         Set _x86_64_preferred_memory_instruction for AMD processsors.
82430         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82431         Set bit_Prefer_SSE_for_memop for AMD processors.
82432
82433 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
82434
82435         * libio/fmemopen.c (fmemopen): Optimize a bit.
82436
82437 2011-03-03  Andreas Schwab  <schwab@redhat.com>
82438
82439         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
82440
82441 2011-03-03  Roland McGrath  <roland@redhat.com>
82442
82443         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
82444
82445 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
82446
82447         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
82448         __bzero_ultra1 instead of __memset_ultra1.
82449
82450 2011-02-23  Andreas Schwab  <schwab@redhat.com>
82451             Ulrich Drepper  <drepper@gmail.com>
82452
82453         [BZ #12509]
82454         * include/link.h (struct link_map): Add l_orig_initfini.
82455         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
82456         returning unsuccessfully.
82457         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
82458         close of a file loaded at startup, restore the original l_initfini
82459         list.
82460         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
82461         list, store the pointer.
82462         * elf/Makefile ($(objpfx)noload-mem): New rule.
82463         (noload-ENV): Define.
82464         (tests): Add $(objpfx)noload-mem.
82465         * elf/noload.c: Include <memcheck.h>.
82466         (main): Call mtrace.  Close all opened handles.
82467
82468 2011-02-17  Andreas Schwab  <schwab@redhat.com>
82469
82470         [BZ #12454]
82471         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
82472         dependencies are missing.
82473
82474 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82475
82476         Fix __if_freereq crash: Unlike the generic version which uses free,
82477         Hurd needs munmap.
82478         * sysdeps/mach/hurd/ifreq.h: New file.
82479
82480 2011-01-27  Petr Baudis  <pasky@suse.cz>
82481             Ulrich Drepper  <drepper@gmail.com>
82482
82483         [BZ 12445]#
82484         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
82485         to extend_alloca().
82486         * stdio-common/bug23.c: New file.
82487         * stdio-common/Makefile (tests): Add bug23.
82488
82489 2010-09-28  Andreas Schwab  <schwab@redhat.com>
82490             Ulrich Drepper  <drepper@gmail.com>
82491
82492         [BZ #12489]
82493         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
82494         before performing relro protection.  At old place add assertion
82495         to make sure nothing changed.
82496
82497 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
82498             Glauber de Oliveira Costa  <glommer@gmail.com>
82499
82500         * elf/elf.h: Add new ARM TLS relocs.
82501
82502 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
82503
82504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
82505         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
82506         cast from r3.
82507         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
82508         'tests' variable.
82509         * sysdeps/wordsize-64/tst-writev.c: New file.
82510
82511 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
82512
82513         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
82514         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
82515         insns in _dl_start to prevent a TOC reference before relocs are
82516         resolved.
82517
82518 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
82519
82520         [BZ #12469]
82521         * Makeconfig: Remove RANLIB definition.
82522         * Makerules: Don't use RANLIB.
82523         * aclocal.m4: Remove ranlib test.
82524         * configure.in: No need to check for ranlib.
82525         * elf/rtld-Rules: Don't use RANLIB.
82526
82527 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82528
82529         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
82530         protection macro.
82531         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
82532         inclusion protection macro.
82533
82534         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
82535         SIGRTMIN and SIGRTMAX and print information in that case only when
82536         SIGRTMIN is defined.
82537
82538 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
82539
82540         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
82541         arginfo fn returning -1.
82542
82543         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
82544         and thousands string is zero terminated.
82545
82546 2011-02-03  Andreas Schwab  <schwab@redhat.com>
82547
82548         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
82549         sysdeps/unix/sysv/linux/bits/socket.h.
82550
82551 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82552
82553         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
82554         (__CPU_COUNT): Remove old macros.
82555         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
82556         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
82557         (__CPU_ALLOC, __CPU_FREE): Add macros.
82558         (__sched_cpualloc, __sched_cpufree): Add declarations.
82559
82560 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
82561
82562         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
82563         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
82564         * nscd/aicache.c (addhstaiX): Return timeout of added value.
82565         (readdhstai): Return value of addhstaiX call.
82566         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
82567         (addgrbyX): Return value returned by cache_addgr.
82568         (readdgrbyname): Return value returned by addgrbyX.
82569         (readdgrbygid): Likewise.
82570         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
82571         (addpwbyX): Return value returned by cache_addpw.
82572         (readdpwbyname): Return value returned by addhstbyX.
82573         (readdpwbyuid): Likewise.
82574         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
82575         (addservbyX): Return value returned by cache_addserv.
82576         (readdservbyname): Return value returned by addservbyX:
82577         (readdservbyport): Likewise.
82578         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
82579         (addhstbyX): Return value returned by cache_addhst.
82580         (readdhstbyname): Return value returned by addhstbyX.
82581         (readdhstbyaddr): Likewise.
82582         (readdhstbynamev6): Likewise.
82583         (readdhstbyaddrv6): Likewise.
82584         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
82585         (readdinitgroups): Return value returned by addinitgroupsX.
82586         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
82587         (prune_cache): Keep track of timeout value of re-added entries.
82588         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
82589         * nscd/nscd.h: Adjust prototypes of readd* functions.
82590
82591 2011-02-04  Roland McGrath  <roland@redhat.com>
82592
82593         * nis/nis_server.c (nis_servstate): Use the right name for 0.
82594         (nis_stats): Likewise.
82595         * nis/nis_modify.c (nis_modify): Likewise.
82596         * nis/nis_remove.c (nis_remove): Likewise.
82597         * nis/nis_add.c (nis_add): Likewise.
82598
82599         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
82600
82601         * posix/fnmatch_loop.c: Add some consts.
82602
82603         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
82604
82605 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
82606
82607         [BZ #12460]
82608         * config.make.in (config-cflags-novzeroupper): Define.
82609         * configure.in: Substitute libc_cv_cc_novzeroupper.
82610         * elf/Makefile (AVX-CFLAGS): Define.
82611         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
82612         (CFLAGS-tst-auditmod4a.c): Likewise.
82613         (CFLAGS-tst-auditmod4b.c): Likewise.
82614         (CFLAGS-tst-auditmod6b.c): Likewise.
82615         (CFLAGS-tst-auditmod6c.c): Likewise.
82616         (CFLAGS-tst-auditmod7b.c): Likewise.
82617         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
82618
82619 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
82620
82621         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
82622         function to the callback.
82623         Patch partly by Jiri Olsa <jolsa@redhat.com>.
82624
82625 2011-02-02  Andreas Schwab  <schwab@redhat.com>
82626
82627         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
82628         of errno.
82629
82630 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
82631
82632         [BZ #11724]
82633         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
82634         of constructors.
82635         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
82636         of destructors.
82637         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
82638
82639         [BZ #11724]
82640         * elf/Makefile: Add rules to build and run new test.
82641         * elf/tst-initorder.c: New file.
82642         * elf/tst-initorder.exp: New file.
82643         * elf/tst-initordera1.c: New file.
82644         * elf/tst-initordera2.c: New file.
82645         * elf/tst-initordera3.c: New file.
82646         * elf/tst-initordera4.c: New file.
82647         * elf/tst-initorderb1.c: New file.
82648         * elf/tst-initorderb2.c: New file.
82649         * elf/tst-order-a1.c: New file.
82650         * elf/tst-order-a2.c: New file.
82651         * elf/tst-order-a3.c: New file.
82652         * elf/tst-order-a4.c: New file.
82653         * elf/tst-order-b1.c: New file.
82654         * elf/tst-order-b2.c: New file.
82655         * elf/tst-order-main.c: New file.
82656         New test case by George Gensure <werkt0@gmail.com>.
82657
82658 2010-10-01  Andreas Schwab  <schwab@redhat.com>
82659
82660         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
82661         decoding ACE if AI_CANONIDN.
82662
82663 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
82664
82665         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
82666
82667 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
82668
82669         * version.h (RELEASE): Bump for 2.13 release.
82670         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
82671
82672         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
82673
82674         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
82675         MADV_NOHUGEPAGE.
82676         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
82677         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
82678         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
82679         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
82680         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
82681         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
82682
82683         * posix/getconf.c: Update copyright year.
82684         * catgets/gencat.c: Likewise.
82685         * csu/version.c: Likewise.
82686         * debug/catchsegv.sh: Likewise.
82687         * debug/xtrace.sh: Likewise.
82688         * elf/ldconfig.c: Likewise.
82689         * elf/ldd.bash.in: Likewise.
82690         * elf/sprof.c (print_version): Likewise.
82691         * iconv/iconv_prog.c: Likewise.
82692         * iconv/iconvconfig.c: Likewise.
82693         * locale/programs/locale.c: Likewise.
82694         * locale/programs/localedef.c: Likewise.
82695         * malloc/memusage.sh: Likewise.
82696         * malloc/mtrace.pl: Likewise.
82697         * nscd/nscd.c (print_version): Likewise.
82698         * nss/getent.c: Likewise.
82699
82700         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
82701         PF_CAIF, and PF_ALG.
82702         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
82703
82704 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
82705
82706         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
82707         (modules-names): Use them.
82708         (ifunc-test-modules, ifunc-pie-tests): Define.
82709         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
82710         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
82711         (test-extras): Likewise.
82712         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
82713         $(compile-command.c).
82714         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
82715         (all-built-dso): Define.
82716         (check-textrel.out, check-execstack.out): Depend on it.
82717
82718         * configure.in: Don't override --enable-multi-arch.
82719
82720 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
82721
82722         [BZ #6812]
82723         * nscd/hstcache.c (tryagain): Define.
82724         (cache_addhst): Return tryagain not notfound for temporary errors.
82725         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
82726         failed.
82727
82728 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
82729
82730         [BZ #10563]
82731         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
82732         to make the syscall.
82733         * sysdeps/unix/sysv/linux/setgroups.c: New file.
82734
82735         [BZ #12378]
82736         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
82737         and fall back to matching as normal character if the string ends before
82738         the matching ']' is found.  This is what POSIX requires.
82739         * posix/testfnm.c: Adjust test result.
82740         * posix/globtest.sh: Adjust test result.  Add new test.
82741         * posix/tst-fnmatch.input: Likewise.
82742         * posix/tst-fnmatch2.c: Add new test.
82743
82744 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
82745
82746         * elf/Makefile (check-execstack): Revert last change.  Depend on
82747         check-execstack.h.
82748         (check-execstack.h): New target.
82749         (generated): Add check-execstack.h.
82750         * elf/check-execstack.c: Include "check-execstack.h".
82751         (main): Revert last change.
82752         (handle_file): Return zero if GNU_STACK is absent and
82753         DEFAULT_STACK_PERMS doesn't include PF_X.
82754
82755 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
82756
82757         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
82758         in child fails because the descriptor is already closed.
82759         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
82760         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
82761         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
82762
82763         [BZ #12397]
82764         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
82765         syscall.
82766
82767         [BZ #10484]
82768         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
82769         temporary buffer used to handle multi lookups locally.
82770         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
82771
82772 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
82773
82774         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
82775         loader is ld.so.
82776
82777 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
82778
82779         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
82780         alignment for SSE2.
82781
82782 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
82783
82784         [BZ #12394]
82785         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
82786         characters.  When rounding increased number of integer digits recompute
82787         number of groups.
82788         * stdio-common/tst-grouping.c: New file.
82789         * stdio-common/Makefile: Add rules to build and run tst-grouping.
82790
82791 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
82792
82793         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
82794         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
82795
82796         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
82797         void.
82798         * bits/select.h: Likewise.
82799
82800 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
82801
82802         * po/ja.po: Update from translation team.
82803
82804 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
82805
82806         [BZ #11155]
82807         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
82808         implementation just like for lxstat, fxstatat, et al.
82809
82810 2010-12-27  Jim Meyering  <meyering@redhat.com>
82811
82812         [BZ #12348]
82813         * posix/regexec.c (build_trtable): Return failure indication upon
82814         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
82815
82816 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
82817
82818         [BZ #12201]
82819         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
82820         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
82821         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
82822         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
82823
82824         [BZ #12207]
82825         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
82826
82827         [BZ #12204]
82828         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
82829         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
82830
82831 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
82832
82833         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
82834         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
82835         script has SORT_BY_INIT_PRIORITY.
82836         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
82837         NO_CTORS_DTORS_SECTIONS is defined.
82838         * elf/soinit.c: Likewise.
82839         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
82840         NO_CTORS_DTORS_SECTIONS is defined.
82841         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
82842         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
82843         * sysdeps/sh/init-first.c: Likewise.
82844         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
82845
82846 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
82847
82848         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
82849         always use the slow path.
82850
82851 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
82852
82853         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
82854         similar rule which adds the sysdep directories to the header search in
82855         order to pick up the correct platform stackinfo.h.
82856         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
82857         perform test if it is, otherwise return successfully without testing.
82858         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
82859         DEFAULT_STACK_PERMS define in stackinfo.h.
82860         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
82861         defined in stackinfo.h.
82862         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
82863         DEFAULT_STACK_PERMS defined in stackinfo.h.
82864         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
82865         * sysdeps/ia64/stackinfo.h: Likewise.
82866         * sysdeps/s390/stackinfo.h: Likewise.
82867         * sysdeps/sh/stackinfo.h: Likewise.
82868         * sysdeps/sparc/stackinfo.h: Likewise.
82869         * sysdeps/x86_64/stackinfo.h: Likewise.
82870         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
82871         PF_X for powerpc64.  Retain PF_X for powerpc32.
82872
82873 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
82874
82875         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
82876         accurately.
82877         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
82878         GETDENTS_64BIT_ALIGNED.
82879
82880 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
82881
82882         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
82883
82884 2010-12-10  Andreas Schwab  <schwab@redhat.com>
82885
82886         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
82887         _GNU_SOURCE.
82888
82889         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
82890         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
82891         Remove __restrict.
82892         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
82893         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
82894
82895 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
82896
82897         [BZ #11655]
82898         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
82899         are initialized.
82900
82901 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
82902
82903         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
82904
82905 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
82906
82907         * po/it.po: Update from translation team.
82908
82909 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
82910
82911         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
82912         unused codes.
82913
82914 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
82915
82916         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
82917
82918 2010-11-24  Andreas Schwab  <schwab@redhat.com>
82919
82920         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
82921         specially.
82922         (gaih_getanswer_slice): Likewise.
82923
82924 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
82925
82926         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
82927
82928 2010-05-31  Petr Baudis  <pasky@suse.cz>
82929
82930         [BZ #11149]
82931         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
82932         silently even in the chroot mode.
82933
82934 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
82935
82936         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
82937         last patch a bit.  Pretty printing
82938
82939 2010-05-31  Petr Baudis <pasky@suse.cz>
82940
82941         [BZ #10085]
82942         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
82943         initialization of skip_initgroups_dyn.
82944
82945 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
82946
82947         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
82948         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
82949
82950 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
82951
82952         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
82953
82954 2010-11-11  Andreas Schwab  <schwab@redhat.com>
82955
82956         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
82957         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
82958         (tst-fnmatch-ENV): Set MALLOC_TRACE.
82959         ($(objpfx)tst-fnmatch-mem): New rule.
82960         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
82961         * posix/tst-fnmatch.c (main): Call mtrace.
82962
82963 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
82964
82965         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82966         Support Intel processor model 6 and model 0x2c.
82967
82968 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
82969
82970         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
82971           signed comparison.
82972
82973 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
82974
82975         [BZ #12205]
82976         * string/test-strncasecmp.c (check_result): New function.
82977         (do_one_test): Use it.
82978         (check1): New function.
82979         (test_main): Use it.
82980         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
82981         Support strcasecmp and strncasecmp.
82982
82983 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
82984
82985         [BZ #12194]
82986         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
82987         * sysdeps/x86_64/bits/byteswap.h: Likewise.
82988
82989 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
82990
82991         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
82992         IFUNC support.
82993         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82994         memset-x86-64.
82995         * sysdeps/x86_64/multiarch/bzero.S: New file.
82996         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
82997         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
82998         * sysdeps/x86_64/multiarch/memset.S: New file.
82999         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
83000         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
83001         Set bit_Prefer_SSE_for_memop for Intel processors.
83002         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
83003         Define.
83004         (index_Prefer_SSE_for_memop): Define.
83005         (HAS_PREFER_SSE_FOR_MEMOP): Define.
83006
83007 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
83008
83009         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
83010         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
83011
83012 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
83013
83014         [BZ #12191]
83015         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
83016         (__x86_64_raw_data_cache_size_half): Likewise.
83017         (__x86_64_raw_shared_cache_size): Likewise.
83018         (__x86_64_raw_shared_cache_size_half): Likewise.
83019
83020         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
83021         (__x86_64_raw_data_cache_size_half): Likewise.
83022         (__x86_64_raw_shared_cache_size): Likewise.
83023         (__x86_64_raw_shared_cache_size_half): Likewise.
83024         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
83025         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
83026         and __x86_64_raw_shared_cache_size_half.  Round
83027         __x86_64_data_cache_size_half, __x86_64_data_cache_size
83028         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
83029         to multiple of 256 bytes.
83030
83031 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
83032
83033         [BZ #12167]
83034         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
83035         of inacessible symlinks.  Verify result of symlink before returning it.
83036         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
83037         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
83038
83039 2010-10-28  Erich Ritz  <erichritz@gmail.com>
83040
83041         * math/math.h (isinf): Fix typo in comment.
83042
83043 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
83044
83045         * po/da.po: Update from translation team.
83046
83047 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
83048
83049         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
83050         is added to the list.
83051
83052 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
83053             Ulrich Drepper  <drepper@gmail.com>
83054
83055         * elf/dl-object.c (_dl_new_object): Don't append the new object to
83056         the global list here.  Move code to...
83057         (_dl_add_to_namespace_list): ...here.  New function.
83058         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
83059         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
83060         * elf/dl-load.c (lose): Don't remove the element from the list.
83061         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
83062         (_dl_map_object): Likewise.
83063
83064 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
83065
83066         [BZ #12159]
83067         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
83068         into all bytes of SSE register.
83069         Patch by Richard Li <richardpku@gmail.com>.
83070
83071 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
83072
83073         [BZ #12140]
83074         * malloc/malloc.c (_int_free): Fill correct number of bytes when
83075         perturbing.
83076
83077 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
83078
83079         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
83080         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
83081         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
83082         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
83083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
83084         submachine.
83085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
83086
83087 2010-10-22  Andreas Schwab  <schwab@redhat.com>
83088
83089         * include/dlfcn.h (__RTLD_SECURE): Define.
83090         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
83091         mode & __RTLD_SECURE instead.
83092         (open_path): Rename preloaded parameter to secure.
83093         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
83094         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
83095         * elf/dl-deps.c (openaux): Likewise.
83096         * elf/rtld.c (struct map_args): Remove is_preloaded.
83097         (map_doit): Don't use it.
83098         (dl_main): Likewise.
83099         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
83100         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
83101
83102 2010-09-09  Andreas Schwab  <schwab@redhat.com>
83103
83104         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
83105         (sysd-rules-targets): Remove duplicates.
83106         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
83107         rtld-%.$o dependency.
83108
83109 2010-10-18  Andreas Schwab  <schwab@redhat.com>
83110
83111         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
83112         _dl_map_object do it.
83113
83114 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
83115
83116         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
83117         fast fma builtins, define the macros in the C99 standard.
83118         (FP_FAST_FMAF): Likewise.
83119         (FP_FAST_FMAL): Likewise.
83120         * sysdeps/x86_64/bits/mathdef.h: Likewise.
83121
83122         * bits/mathdef.h: Update copyright year.
83123         * sysdeps/powerpc/bits/mathdef.h: Likewise.
83124
83125 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
83126
83127         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
83128         builtins, define the macros in the C99 standard.
83129         (FP_FAST_FMAF): Likewise.
83130         (FP_FAST_FMAL): Likewise.
83131         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
83132         multiply/add.
83133         (FP_FAST_FMAF): Likewise.
83134
83135 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
83136
83137         [BZ #3268]
83138         * math/libm-test.inc (fma_test): Some new testcases.
83139         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
83140         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
83141         y and infinite z.  Do multiplication by C already in long double.
83142         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
83143         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
83144         y and infinite z.  Do bitwise or of inexact bit into u.d.
83145         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
83146         * sysdeps/i386/fpu/s_fmaf.S: Removed.
83147         * sysdeps/i386/fpu/s_fma.S: Removed.
83148         * sysdeps/i386/fpu/s_fmal.S: Removed.
83149
83150 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
83151
83152         [BZ #3268]
83153         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
83154         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
83155         computation is not scheduled after fetestexcept.  Fix value
83156         of minimum denormal long double.
83157
83158 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
83159
83160         [BZ #3268]
83161         * math/libm-test.inc (fma_test): Add some more tests.
83162         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
83163         correctly.
83164
83165 2010-10-15  Andreas Schwab  <schwab@redhat.com>
83166
83167         * scripts/data/localplt-s390-linux-gnu.data: New file.
83168         * scripts/data/localplt-s390x-linux-gnu.data: New file.
83169
83170 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
83171
83172         [BZ #3268]
83173         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
83174         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
83175         instead of dbl-64.
83176         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
83177         inlines.
83178         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
83179         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
83180         if one of x and y is very large and the other is subnormal.
83181         * sysdeps/s390/fpu/s_fmaf.c: New file.
83182         * sysdeps/s390/fpu/s_fma.c: New file.
83183         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
83184         * sysdeps/powerpc/fpu/s_fma.S: New file.
83185         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
83186         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
83187         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
83188
83189 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
83190
83191         [BZ #3268]
83192         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
83193         fma tests.
83194         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
83195         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
83196         * sysdeps/i386/i686/multiarch/s_fma.c: Include
83197         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
83198         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
83199         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
83200         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
83201
83202 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
83203
83204         [BZ #12078]
83205         * posix/regcomp.c (parse_branch): One more memory leak plugged.
83206         * posix/bug-regex31.input: Add test case.
83207
83208 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
83209
83210         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
83211         * posix/bug-regex31.input: New file.
83212
83213         [BZ #12078]
83214         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
83215         (parse_sub_exp): Fix last change, use postorder.
83216
83217         * posix/bug-regex31.c: New file.
83218         * posix/Makefile: Add rules to build and run bug-regex31.
83219
83220         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
83221
83222         [BZ #12078]
83223         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
83224
83225         [BZ #12108]
83226         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
83227         to have entries in sys_siglist.
83228
83229         [BZ #12093]
83230         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
83231         be NULL.
83232
83233 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
83234
83235         [BZ #3268]
83236         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
83237         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
83238         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
83239         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
83240         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
83241         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
83242         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
83243         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
83244         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
83245         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
83246         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
83247         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
83248         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
83249         * math/ftestexcept.c (fetestexcept): Likewise.
83250         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
83251         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
83252         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
83253         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
83254         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
83255         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
83256         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
83257
83258 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
83259
83260         [BZ #12107]
83261         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
83262         newline.
83263
83264 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
83265
83266         * string/bug-strstr1.c: New file.
83267         * string/Makefile: Add rules to build and run bug-strstr1.
83268
83269 2010-10-05  Eric Blake  <eblake@redhat.com>
83270
83271         [BZ #12092]
83272         * string/str-two-way.h (two_way_long_needle): Always clear memory
83273         when skipping input due to the shift table.
83274
83275 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
83276
83277         [BZ #12005]
83278         * malloc/mcheck.c: Handle large requests.
83279
83280         [BZ #12077]
83281         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
83282         for strncmp and strncasecmp.
83283         * string/stratcliff.c: Add tests for strcmp and strncmp.
83284         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
83285
83286 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
83287
83288         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
83289         __set_fpscr.
83290
83291 2010-09-30  Andreas Jaeger  <aj@suse.de>
83292
83293         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
83294         (CGROUP_SUPER_MAGIC): Define.
83295         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
83296         Handle btrfs and cgroup file systems.
83297         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
83298         Likewise.
83299
83300 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
83301
83302         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
83303         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
83304
83305 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
83306
83307         [BZ #12067]
83308         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
83309         trying to locate the ELF header.
83310
83311 2010-09-27  Andreas Schwab  <schwab@redhat.com>
83312
83313         [BZ #11611]
83314         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
83315         Mask out sign-bit copies when constructing f_fsid.
83316
83317 2010-09-24  Petr Baudis <pasky@suse.cz>
83318
83319         * debug/stack_chk_fail_local.c: Add missing licence exception.
83320         * debug/warning-nop.c: Likewise.
83321
83322 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
83323
83324         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
83325         implementing getdents64 using getdents syscall, set d_type if
83326         __ASSUME_GETDENTS32_D_TYPE.
83327
83328 2010-09-16  Andreas Schwab  <schwab@redhat.com>
83329
83330         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
83331         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
83332
83333 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
83334
83335         [BZ #12037]
83336         * posix/unistd.h: Undo change of feature selection for ftruncate from
83337         2010-01-11.
83338
83339 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
83340
83341         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
83342         detection.
83343
83344 2010-09-20  Andreas Schwab  <schwab@redhat.com>
83345
83346         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
83347         fanotify_mark.
83348         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
83349
83350 2010-09-14  Andreas Schwab  <schwab@redhat.com>
83351
83352         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
83353         variables after CHECK_SP call.
83354         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
83355
83356 2010-09-13  Andreas Schwab  <schwab@redhat.com>
83357             Ulrich Drepper  <drepper@redhat.com>
83358
83359         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
83360         re-relocationg ld.so.
83361         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
83362         _dl_init_paths call.
83363         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
83364         here anymore.
83365
83366 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
83367
83368         * resolv/res_init.c (__res_vinit): Count the default server we added.
83369
83370 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
83371             Ulrich Drepper  <drepper@redhat.com>
83372
83373         [BZ #11968]
83374         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
83375         (____longjmp_chk): Use %ebx for saving value across system call.
83376         Add unwind info.
83377
83378 2010-09-06  Andreas Schwab  <schwab@redhat.com>
83379
83380         * manual/Makefile: Don't mix pattern rules with normal rules.
83381
83382 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
83383
83384         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
83385         operation.
83386         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
83387         * libio/iofopncook.c (_IO_cookie_init): Likewise.
83388         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
83389         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
83390         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
83391         Likewise.
83392
83393 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
83394
83395         [BZ #11979]
83396         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
83397         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
83398
83399 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
83400
83401         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
83402         * sysdeps/x86_64/addmul_1.S: Likewise.
83403         * sysdeps/x86_64/lshift.S: Likewise.
83404         * sysdeps/x86_64/mul_1.S: Likewise.
83405         * sysdeps/x86_64/rshift.S: Likewise.
83406         * sysdeps/x86_64/sub_n.S: Likewise.
83407         * sysdeps/x86_64/submul_1.S: Likewise.
83408
83409 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83410
83411         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
83412         Define __sched_param instead of SCHED_* and sched_param when
83413         <bits/sched.h> is included with __need_schedparam defined.
83414         * bits/sched.h [__need_schedparam]
83415         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
83416         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
83417         (__defined_schedparam): Define to 1.
83418         (__sched_param): New structure, identical to sched_param.
83419         (__need_schedparam): Undefine.
83420
83421 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
83422
83423         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
83424         (epoll_create1): Declare.
83425
83426         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
83427
83428 2010-08-31  Andreas Schwab  <schwab@redhat.com>
83429
83430         [BZ #7066]
83431         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
83432         shifting retval into place.
83433
83434 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
83435
83436         * nis/rpcsvc/nis.h: Update copyright notice.
83437         * nis/rpcsvc/nis.x: Likewise.
83438         * nis/rpcsvc/nis_callback.h: Likewise.
83439         * nis/rpcsvc/nis_callback.x: Likewise.
83440         * nis/rpcsvc/nis_object.x: Likewise.
83441         * nis/rpcsvc/nis_tags.h: Likewise.
83442         * nis/rpcsvc/yp.h: Likewise.
83443         * nis/rpcsvc/yp.x: Likewise.
83444         * nis/rpcsvc/ypupd.h: Likewise.
83445         * nis/yp_xdr.c: Likewise.
83446         * nis/ypupdate_xdr.c: Likewise.
83447
83448         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
83449         mainly the body of pmap_getport.  Add parameters to specify timeouts.
83450         (pmap_getport): Use __libc_rpc_getport.
83451         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
83452         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
83453         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
83454
83455 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
83456
83457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
83458         fanotify_mark.
83459
83460 2010-08-27  Roland McGrath  <roland@redhat.com>
83461
83462         * sysdeps/i386/i686/multiarch/Makefile
83463         (CFLAGS-varshift.c): New variable.
83464
83465 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
83466
83467         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
83468         * sysdeps/i386/i686/multiarch/varshift.c: New file.
83469
83470         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
83471
83472         * sysdeps/x86_64/strlen.S: Minimal code improvement.
83473
83474 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
83475
83476         * sysdeps/x86_64/strlen.S: Unroll the loop.
83477         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
83478         strlen-sse2 strlen-sse2-bsf.
83479         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
83480         __strlen_no_bsf if bit_Slow_BSF is set.
83481         (__strlen_sse42): Removed.
83482         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
83483         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
83484
83485 2010-08-25  Roland McGrath  <roland@redhat.com>
83486
83487         * sysdeps/x86_64/multiarch/varshift.S: File removed.
83488         * sysdeps/x86_64/multiarch/varshift.c: New file.
83489         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
83490         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
83491         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
83492         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
83493
83494 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
83495
83496         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
83497         strlen-sse2 strlen-sse2-bsf.
83498         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
83499         __strlen_sse2_bsf if bit_Slow_BSF is unset.
83500         (__strlen_sse2): Removed.
83501         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
83502         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
83503         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
83504         bit_Slow_BSF for Atom.
83505         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
83506         (index_Slow_BSF): Define.
83507         (HAS_SLOW_BSF): Define.
83508
83509 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
83510
83511         [BZ #10851]
83512         * resolv/res_init.c (__res_vinit): When no server address at all
83513         is given default to loopback.
83514
83515 2010-08-24  Roland McGrath  <roland@redhat.com>
83516
83517         * configure.in: Remove config-name.h generation.
83518         * configure: Regenerated.
83519         * config-name.in: File removed.
83520         * scripts/config-uname.sh: New file.
83521         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
83522         ($(objdir)config-name.h): New target.
83523
83524         * sunrpc/rpc_parse.h: Avoid nested comment.
83525
83526 2010-08-24  Richard Henderson  <rth@redhat.com>
83527             Ulrich Drepper  <drepper@redhat.com>
83528             H.J. Lu  <hongjiu.lu@intel.com>
83529
83530         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
83531         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
83532         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
83533         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
83534         _mm_alignr_epi8 with _mm_loadu_si128.
83535         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
83536         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
83537         (__m128i_shift_right): Removed.
83538         * sysdeps/i386/i686/multiarch/varshift.h: New file.
83539         * sysdeps/i386/i686/multiarch/varshift.S: New file.
83540         * sysdeps/x86_64/multiarch/varshift.h: New file.
83541         * sysdeps/x86_64/multiarch/varshift.S: New file.
83542
83543 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
83544
83545         * configure.in: Move assembler checks to before sysdep dir checking.
83546
83547 2010-08-20  Petr Baudis  <pasky@suse.cz>
83548
83549         * LICENSES: Sync the sunrpc license.
83550
83551 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
83552
83553         * sunrpc/auth_des.c: Update copyright notice once again.
83554         * sunrpc/auth_none.c: Likewise.
83555         * sunrpc/auth_unix.c: Likewise.
83556         * sunrpc/authdes_prot.c: Likewise.
83557         * sunrpc/authuxprot.c: Likewise.
83558         * sunrpc/bindrsvprt.c: Likewise.
83559         * sunrpc/clnt_gen.c: Likewise.
83560         * sunrpc/clnt_perr.c: Likewise.
83561         * sunrpc/clnt_raw.c: Likewise.
83562         * sunrpc/clnt_simp.c: Likewise.
83563         * sunrpc/clnt_tcp.c: Likewise.
83564         * sunrpc/clnt_udp.c: Likewise.
83565         * sunrpc/clnt_unix.c: Likewise.
83566         * sunrpc/des_crypt.c: Likewise.
83567         * sunrpc/des_soft.c: Likewise.
83568         * sunrpc/get_myaddr.c: Likewise.
83569         * sunrpc/getrpcport.c: Likewise.
83570         * sunrpc/key_call.c: Likewise.
83571         * sunrpc/key_prot.c: Likewise.
83572         * sunrpc/openchild.c: Likewise.
83573         * sunrpc/pm_getmaps.c: Likewise.
83574         * sunrpc/pm_getport.c: Likewise.
83575         * sunrpc/pmap_clnt.c: Likewise.
83576         * sunrpc/pmap_prot.c: Likewise.
83577         * sunrpc/pmap_prot2.c: Likewise.
83578         * sunrpc/pmap_rmt.c: Likewise.
83579         * sunrpc/rpc/auth.h: Likewise.
83580         * sunrpc/rpc/auth_unix.h: Likewise.
83581         * sunrpc/rpc/clnt.h: Likewise.
83582         * sunrpc/rpc/des_crypt.h: Likewise.
83583         * sunrpc/rpc/key_prot.h: Likewise.
83584         * sunrpc/rpc/netdb.h: Likewise.
83585         * sunrpc/rpc/pmap_clnt.h: Likewise.
83586         * sunrpc/rpc/pmap_prot.h: Likewise.
83587         * sunrpc/rpc/pmap_rmt.h: Likewise.
83588         * sunrpc/rpc/rpc.h: Likewise.
83589         * sunrpc/rpc/rpc_des.h: Likewise.
83590         * sunrpc/rpc/rpc_msg.h: Likewise.
83591         * sunrpc/rpc/svc.h: Likewise.
83592         * sunrpc/rpc/svc_auth.h: Likewise.
83593         * sunrpc/rpc/types.h: Likewise.
83594         * sunrpc/rpc/xdr.h: Likewise.
83595         * sunrpc/rpc_clntout.c: Likewise.
83596         * sunrpc/rpc_cmsg.c: Likewise.
83597         * sunrpc/rpc_common.c: Likewise.
83598         * sunrpc/rpc_cout.c: Likewise.
83599         * sunrpc/rpc_dtable.c: Likewise.
83600         * sunrpc/rpc_hout.c: Likewise.
83601         * sunrpc/rpc_main.c: Likewise.
83602         * sunrpc/rpc_parse.c: Likewise.
83603         * sunrpc/rpc_parse.h: Likewise.
83604         * sunrpc/rpc_prot.c: Likewise.
83605         * sunrpc/rpc_sample.c: Likewise.
83606         * sunrpc/rpc_scan.c: Likewise.
83607         * sunrpc/rpc_scan.h: Likewise.
83608         * sunrpc/rpc_svcout.c: Likewise.
83609         * sunrpc/rpc_tblout.c: Likewise.
83610         * sunrpc/rpc_util.c: Likewise.
83611         * sunrpc/rpc_util.h: Likewise.
83612         * sunrpc/rpcinfo.c: Likewise.
83613         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
83614         * sunrpc/rpcsvc/key_prot.x: Likewise.
83615         * sunrpc/rpcsvc/klm_prot.x: Likewise.
83616         * sunrpc/rpcsvc/mount.x: Likewise.
83617         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
83618         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
83619         * sunrpc/rpcsvc/rex.x: Likewise.
83620         * sunrpc/rpcsvc/rstat.x: Likewise.
83621         * sunrpc/rpcsvc/rusers.x: Likewise.
83622         * sunrpc/rpcsvc/sm_inter.x: Likewise.
83623         * sunrpc/rpcsvc/spray.x: Likewise.
83624         * sunrpc/rpcsvc/yppasswd.x: Likewise.
83625         * sunrpc/rtime.c: Likewise.
83626         * sunrpc/svc.c: Likewise.
83627         * sunrpc/svc_auth.c: Likewise.
83628         * sunrpc/svc_authux.c: Likewise.
83629         * sunrpc/svc_raw.c: Likewise.
83630         * sunrpc/svc_run.c: Likewise.
83631         * sunrpc/svc_simple.c: Likewise.
83632         * sunrpc/svc_tcp.c: Likewise.
83633         * sunrpc/svc_udp.c: Likewise.
83634         * sunrpc/svc_unix.c: Likewise.
83635         * sunrpc/svcauth_des.c: Likewise.
83636         * sunrpc/xcrypt.c: Likewise.
83637         * sunrpc/xdr.c: Likewise.
83638         * sunrpc/xdr_array.c: Likewise.
83639         * sunrpc/xdr_float.c: Likewise.
83640         * sunrpc/xdr_mem.c: Likewise.
83641         * sunrpc/xdr_rec.c: Likewise.
83642         * sunrpc/xdr_ref.c: Likewise.
83643         * sunrpc/xdr_sizeof.c: Likewise.
83644         * sunrpc/xdr_stdio.c: Likewise.
83645
83646         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
83647         handling.
83648
83649 2010-08-19  Andreas Schwab  <schwab@redhat.com>
83650
83651         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
83652
83653 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
83654
83655         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
83656         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
83657         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
83658         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
83659         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
83660         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
83661         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
83662         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
83663         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
83664         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
83665         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
83666         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
83667         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
83668         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
83669
83670 2010-07-26  Anton Blanchard  <anton@samba.org>
83671
83672         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
83673         * malloc/arena.c (heap_trim): Likewise.
83674
83675 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
83676
83677         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
83678         here.  Not...
83679         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
83680         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
83681
83682 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
83683
83684         * sysdeps/i386/elf/Makefile: New file.
83685
83686 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
83687
83688         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
83689         from fanotify_init.
83690         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
83691         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
83692
83693 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
83694
83695         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
83696         of strncasecmp_l.
83697         * sysdeps/multiarch/strcmp.S: Likewise.
83698
83699 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
83700
83701         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
83702         strncase_l-nonascii.
83703         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
83704         Add strncase_l-ssse3.
83705         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
83706         * sysdeps/x86_64/strcmp.S: Likewise.
83707         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
83708         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
83709         * sysdeps/x86_64/strncase.S: New file.
83710         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
83711         * sysdeps/x86_64/strncase_l.S: New file.
83712         * string/Makefile (strop-tests): Add strncasecmp.
83713         * string/test-strncasecmp.c: New file.
83714
83715         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
83716         warning.
83717
83718         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
83719         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
83720
83721 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
83722
83723         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
83724
83725 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
83726
83727         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
83728         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
83729         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
83730
83731 2010-05-01  Alan Modra  <amodra@gmail.com>
83732
83733         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
83734         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
83735         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
83736         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
83737         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
83738         tidying.  Don't tail-call __sigjmp_save for static lib.
83739         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
83740         save location.
83741         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
83742         (CALL_MCOUNT): Add eh info, and nop after bl.
83743         (TAIL_CALL_SYSCALL_ERROR): New macro.
83744         (PSEUDO_RET): Use it.
83745         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
83746         Correct save location of integer regs and cr.
83747         (_dl_profile_resolve): Correct cr save location.  Delete nops
83748         after bl when SHARED.  Reduce cfi size a little by better
83749         placement of cfi directives.
83750         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
83751         make a stack frame.  Instead use parm save area as a temp.
83752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
83753         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
83754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
83755         Don't make a stack frame for parent, use parm save area.
83756         Increase child stack frame to 112 bytes.  Don't save unused reg,
83757         and adjust reg usage.  Set up cfi on error recovery and
83758         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
83759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
83760         (__makecontext): Add dummy nop after jump to exit.
83761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
83762         Use correct parm save area and cr save, reduce stack frame.
83763         Correct cfi for possible PSEUDO_RET frame setup.
83764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
83765         Branch to local label emitted by PSEUDO_RET rather than
83766         __syscall_error.
83767
83768 2010-08-12  Andreas Schwab  <schwab@redhat.com>
83769
83770         [BZ #11904]
83771         * locale/programs/locale.c (print_assignment): New function.
83772         (show_locale_vars): Use it.
83773
83774 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
83775
83776         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
83777         field.
83778         (struct statfs64): Likewise.
83779         (_STATFS_F_FLAGS): Define.
83780         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
83781         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
83782         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
83783         (ST_VALID): Define locally.
83784         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
83785         __statvfs_getflags, use the provided value.
83786         * sysdeps/unix/sysv/linux/kernel-features.h: Define
83787         __ASSUME_STATFS_F_FLAGS.
83788
83789         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
83790
83791         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
83792         Add sys/fanotify.h.
83793         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
83794         fanotify_mask for GLIBC_2.13.
83795         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
83796         fanotify_init and fanotify_mark.
83797         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
83798         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
83799
83800         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
83801         Add prlimit.
83802         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
83803         prlimit64 for GLIBC_2.13.
83804         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
83805         prlimit64.
83806         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
83807         syscall.
83808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
83809         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
83810         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
83811         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
83812         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
83813         add prlimit alias.
83814         * sysdeps/unix/sysv/linux/prlimit.c: New file.
83815
83816         [BZ #11903]
83817         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
83818         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
83819
83820         * nss/Makefile: Add rules to build and run tst-nss-test1.
83821         * shlib-versions: Add entry for libnss_test1.
83822         * nss/nss_test1.c: New file.
83823         * nss/tst-nss-test1.c: New file.
83824
83825         * nss/nsswitch.c (__nss_database_custom): Define new variable.
83826         (__nss_configure_lookup): Set appropriate entry in
83827         __nss_configure_lookup to true.
83828         * nss/nsswitch.h: Define enum with indeces of databases in
83829         databases and __nss_database_custom arrays.  Declare
83830         __nss_database_custom.
83831         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
83832         to avoid using nscd when custom rules are installed.
83833         * nss/getXXbyYY_r.c: Likewise.
83834         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
83835
83836         * nss/nss_files/files-parse.c: Whitespace fixes.
83837
83838 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
83839
83840         [BZ #11883]
83841         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
83842         * posix/fnmatch_loop.c: Likewise.
83843
83844 2010-07-17  Andi Kleen  <ak@linux.intel.com>
83845
83846         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
83847         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
83848         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
83849         * Versions.def [GLIBC_2.13]: Add.
83850
83851 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
83852
83853         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83854         Also fail if tpwd after pwuid call is NULL.
83855
83856 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83857
83858         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
83859         when converting to ms.
83860
83861 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83862
83863         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
83864         EOPNOTSUPP errors with ENOTTY.
83865         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
83866         EOPNOTSUPP errors with ENOTTY.
83867
83868 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
83869
83870         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
83871         Add strcasecmp_l-ssse3.
83872         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
83873         strcasecmp.
83874         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
83875         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
83876         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
83877
83878 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
83879
83880         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
83881
83882         * string/Makefile (strop-tests): Add strcasecmp.
83883         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
83884         strcasecmp_l-nonascii.
83885         (gen-as-const-headers): Add locale-defines.sym.
83886         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
83887         * sysdeps/x86_64/strcasecmp.S: New file.
83888         * sysdeps/x86_64/strcasecmp_l.S: New file.
83889         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
83890         * sysdeps/x86_64/locale-defines.sym: New file.
83891         * string/test-strcasecmp.c: New file.
83892
83893         * string/test-strcasestr.c: Test both ends of the range of characters.
83894         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
83895
83896 2010-07-29  Roland McGrath  <roland@redhat.com>
83897
83898         [BZ #11856]
83899         * manual/locale.texi (Yes-or-No Questions): Fix example code.
83900
83901 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
83902
83903         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
83904         for ld.so.
83905
83906 2010-07-27  Andreas Schwab  <schwab@redhat.com>
83907
83908         * manual/memory.texi (Malloc Tunable Parameters): Document
83909         M_PERTURB.
83910
83911 2010-07-26  Roland McGrath  <roland@redhat.com>
83912
83913         [BZ #11840]
83914         * configure.in (-fgnu89-inline check): Set and substitute
83915         gnu89_inline, not libc_cv_gnu89_inline.
83916         * configure: Regenerated.
83917         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
83918
83919 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
83920
83921         * string/test-strnlen.c: New file.
83922         * string/Makefile (strop-tests): Add strnlen.
83923         * string/tester.c (test_strnlen): Add a few more test cases.
83924         * string/tst-strlen.c: Better error reporting.
83925
83926         * sysdeps/x86_64/strnlen.S: New file.
83927
83928 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
83929
83930         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
83931         lower-latency instructions.
83932
83933 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
83934
83935         * string/test-strcasestr.c: New file.
83936         * string/test-strstr.c: New file.
83937         * string/Makefile (strop-tests): Add strstr and strcasestr.
83938         * string/str-two-way.h: Don't undefine MAX.
83939         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
83940
83941 2010-07-21  Andreas Schwab  <schwab@redhat.com>
83942
83943         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
83944         strcasestr-nonascii.
83945         (CFLAGS-strcasestr-nonascii.c): Define.
83946         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
83947         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
83948         Remove unused attribute.
83949
83950 2010-07-20  Roland McGrath  <roland@redhat.com>
83951
83952         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
83953         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
83954         ld.so.cache was broken.  With it, there is no way to disable dsocaps
83955         like LD_HWCAP_MASK can disable hwcaps.
83956
83957 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83958
83959         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
83960
83961 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
83962
83963         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
83964         call in strcasestr.
83965         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
83966         __strcasestr_sse42_nonascii.
83967         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
83968         strcasestr-nonascii.c.
83969         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
83970
83971 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
83972
83973         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
83974         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
83975         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
83976         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
83977
83978 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
83979
83980         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
83981         fcntl.
83982
83983 2010-07-06  Andreas Schwab  <schwab@redhat.com>
83984
83985         [BZ #11577]
83986         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
83987         dl_signal_cerror.
83988
83989 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
83990
83991         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
83992         _PC_PIPE_BUF using F_GETPIPE_SZ.
83993
83994 2010-07-05  Roland McGrath  <roland@redhat.com>
83995
83996         * manual/arith.texi (Rounding Functions): Fix rint description
83997         implicit in round description.
83998
83999 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
84000
84001         * elf/Makefile: Fix linking for a few tests to make recent linker
84002         happy.
84003
84004 2010-06-30  Andreas Schwab  <schwab@redhat.com>
84005
84006         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
84007         $(common-objpfx)libc_nonshared.a.
84008
84009 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
84010
84011         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
84012         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
84013         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
84014         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
84015         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
84016         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
84017         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
84018         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
84019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
84020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
84021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
84022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
84023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
84024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
84025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
84026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
84027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
84028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
84029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
84030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
84031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
84032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
84033         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
84034         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
84035         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
84036         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
84037         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
84038         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
84039         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
84040         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
84041         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
84042         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
84043         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
84044         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
84045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
84046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
84047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
84048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
84049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
84050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
84051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
84052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
84053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
84054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
84055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
84056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
84057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
84058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
84059
84060 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
84061
84062         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
84063         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
84064         * string/memmove.c (memmove): Renamed to ...
84065         (MEMMOVE): ...this.  Default to memmove.
84066         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
84067         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
84068         (END_CHK): Define.
84069         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
84070         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
84071         mempcpy-ssse3-back memmove-ssse3-back.
84072         * sysdeps/x86_64/multiarch/bcopy.S: New file .
84073         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
84074         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
84075         * sysdeps/x86_64/multiarch/memcpy.S: New file.
84076         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
84077         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
84078         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
84079         * sysdeps/x86_64/multiarch/memmove.c: New file.
84080         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
84081         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
84082         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
84083         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
84084         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
84085         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
84086         Define.
84087         (index_Fast_Copy_Backward): Define.
84088         (HAS_ARCH_FEATURE): Define.
84089         (HAS_FAST_REP_STRING): Define.
84090         (HAS_FAST_COPY_BACKWARD): Define.
84091
84092 2010-06-21  Andreas Schwab  <schwab@redhat.com>
84093
84094         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
84095         Restore proper fallback handling.
84096
84097 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
84098
84099         [BZ #11701]
84100         * posix/group_member.c (__group_member): Correct checking loop.
84101
84102         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
84103         OOM in getpwuid_r correctly.  Return error number when the caller
84104         should return, otherwise -1.
84105         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
84106         call returning > 0 value.
84107         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
84108
84109 2010-06-07  Andreas Schwab  <schwab@redhat.com>
84110
84111         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
84112         libc_nonshared.a from targets in modules-names.
84113
84114 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
84115
84116         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
84117         requires it.
84118
84119 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
84120
84121         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
84122         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
84123         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
84124         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
84125
84126 2010-06-02  Andreas Schwab  <schwab@redhat.com>
84127
84128         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
84129
84130 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
84131
84132         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
84133         and F_GETPIPE_SZ.
84134         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
84135         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
84136         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
84137         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
84138         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
84139         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
84140
84141 2010-06-14  Roland McGrath  <roland@redhat.com>
84142
84143         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
84144
84145 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
84146
84147         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
84148         __REDIRECT followed by __THROW.
84149         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
84150         * posix/getopt.h (getopt): Likewise.
84151
84152 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
84153
84154         * hurd/lookup-at.c (__file_name_lookup_at): Accept
84155         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
84156         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
84157         in AT_FLAGS.
84158         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
84159         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
84160
84161 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
84162
84163         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
84164
84165 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
84166
84167         [BZ #11640]
84168         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
84169         Properly check family and model.
84170
84171 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
84172
84173         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
84174
84175 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
84176
84177         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
84178
84179 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
84180
84181         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
84182         symbol reference.
84183
84184 2010-05-19  Andreas Schwab  <schwab@redhat.com>
84185
84186         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
84187         symbol reference.
84188
84189 2010-05-21  Andreas Schwab  <schwab@redhat.com>
84190
84191         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
84192         and internal_recvmmsg.
84193         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
84194         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
84195         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
84196         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
84197
84198         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
84199         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
84200         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
84201
84202 2010-05-20  Andreas Schwab  <schwab@redhat.com>
84203
84204         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
84205
84206 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
84207
84208         POWER7 optimizations.
84209         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
84210         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
84211
84212 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
84213
84214         * version.h: Update for 2.13 development version.
84215
84216 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
84217
84218         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
84219         exceptions.  Return 0.
84220
84221 2010-05-07  Roland McGrath  <roland@redhat.com>
84222
84223         * elf/ldconfig.c (main): Add a const.
84224
84225 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
84226
84227         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
84228         (args_options): Add no-idn option.
84229         (ahosts_keys_int): Add idn_flags to ai_flags.
84230         (parse_option): Handle 'i' option to clear idn_flags.
84231
84232         * malloc/malloc.c (_int_free): Possible race in the most recently
84233         added check.  Only act on the data if no current modification
84234         happened.
84235
84236 See ChangeLog.17 for earlier changes.